Package com.github.fungal.impl
Class HotDeployer
java.lang.Object
com.github.fungal.impl.HotDeployer
- All Implemented Interfaces:
HotDeployerMBean,Runnable
The hot deployer for Fungal
- Author:
- Jesper Pedersen
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintGet the interval in secondsbooleanIs runningvoidRegister deploymentvoidrun()RunvoidsetInterval(int value) Set the intervalvoidstart()Startvoidstop()Stopvoidunregister(URL deployment) Unregister deployment
-
Constructor Details
-
HotDeployer
Constructor- Parameters:
interval- The scan interval in secondsdirectory- The directory that should be scannedkernel- The kernel
-
-
Method Details
-
register
Register deployment- Parameters:
deployment- The deployment
-
unregister
Unregister deployment- Parameters:
deployment- The deployment
-
isRunning
public boolean isRunning()Is running- Specified by:
isRunningin interfaceHotDeployerMBean- Returns:
- The value
-
getInterval
public int getInterval()Get the interval in seconds- Specified by:
getIntervalin interfaceHotDeployerMBean- Returns:
- The value
-
setInterval
public void setInterval(int value) Set the interval- Specified by:
setIntervalin interfaceHotDeployerMBean- Parameters:
value- The value in seconds
-
start
public void start()Start- Specified by:
startin interfaceHotDeployerMBean
-
stop
public void stop()Stop- Specified by:
stopin interfaceHotDeployerMBean
-
run
public void run()Run
-