|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.management.NotificationBroadcasterSupport org.ow2.jonas.lib.reconfig.ReconfigEmitter org.ow2.jonas.lib.service.AbsServiceImpl org.ow2.jonas.deployablemonitor.DeployableMonitorService
public class DeployableMonitorService
Service that will launch the Deployable Monitor.
Field Summary | |
---|---|
static String |
DEVELOPMENT_MODE_PROPERTY
Property for the development mode. |
static String |
DIRECTORIES_LIST_PROPERTY
Property for the list of extra directories to analyze. |
protected static String |
JONAS_BASE
The name of the JONAS_BASE directory. |
Fields inherited from class org.ow2.jonas.lib.reconfig.ReconfigEmitter |
---|
RECONFIG_TYPE, SAVE_RECONFIG_TYPE |
Constructor Summary | |
---|---|
DeployableMonitorService()
Default constructor. |
Method Summary | |
---|---|
protected void |
doStart()
Start the Deployable Monitor service. |
protected void |
doStop()
Stop the Deployable Monitor service. |
void |
firstCheckEnded()
Called when the DeploymentMonitor has finished its first round of deployment (all that was under deploy/ at startup time). |
String[] |
getDirectoryNames()
The list of the directory names. |
int |
getMonitorInterval()
Returns the monitor interval between each directory scan. |
boolean |
isDepmonitorDir(String dir)
|
boolean |
isDevelopmentMode()
|
void |
setDeployerManager(org.ow2.util.ee.deploy.api.deployer.IDeployerManager deployerManager)
|
void |
setDevelopmentMode(boolean mode)
Set developmentMode value to true (enable), or to false (disable). |
void |
setDevelopmentMode(String mode)
Set developmentMode value to true (enable), or to false (disable). |
void |
setDirectories(String dirs)
|
void |
setExclusions(String exclusionList)
|
void |
setJ2EEServer(J2EEServerService j2eeServer)
|
void |
setJmxService(JmxService jmxService)
|
void |
setMonitorInterval(int monitorInterval)
Set the monitor interval between each directory scan. |
void |
startMonitoring()
Starts the DeployableMonitor instance. |
Methods inherited from class org.ow2.jonas.lib.service.AbsServiceImpl |
---|
convertToList, doInit, getDomainName, getJonasServerName, getName, getServerProperties, init, isStarted, setName, setServerProperties, start, stop, throwRequirementException, toString |
Methods inherited from class org.ow2.jonas.lib.reconfig.ReconfigEmitter |
---|
initLogger, sendReconfigNotification, sendSaveNotification |
Methods inherited from class javax.management.NotificationBroadcasterSupport |
---|
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.ow2.jonas.service.Service |
---|
getName, init, isStarted, setName, start, stop |
Field Detail |
---|
public static final String DEVELOPMENT_MODE_PROPERTY
public static final String DIRECTORIES_LIST_PROPERTY
protected static final String JONAS_BASE
Constructor Detail |
---|
public DeployableMonitorService()
Method Detail |
---|
protected void doStart() throws ServiceException
doStart
in class AbsServiceImpl
ServiceException
- if the startup failed.public void startMonitoring()
DeployableMonitor
instance.
startMonitoring
in interface MonitoringService
protected void doStop() throws ServiceException
doStop
in class AbsServiceImpl
ServiceException
- if the stop failed.public void setDirectories(String dirs)
dirs
- List of deployment directories to observe.public String[] getDirectoryNames()
public boolean isDepmonitorDir(String dir)
public void setExclusions(String exclusionList)
exclusionList
- The list of exclusion patterns.public void setDeployerManager(org.ow2.util.ee.deploy.api.deployer.IDeployerManager deployerManager)
deployerManager
- the IDeployerManager
to setpublic void setJmxService(JmxService jmxService)
jmxService
- the jmxService to setpublic void setJ2EEServer(J2EEServerService j2eeServer)
j2eeServer
- the j2eeServer to setpublic void firstCheckEnded()
public boolean isDevelopmentMode()
public void setDevelopmentMode(String mode)
mode
- value to setpublic void setDevelopmentMode(boolean mode)
mode
- value to setpublic void setMonitorInterval(int monitorInterval)
monitorInterval
- value to setpublic int getMonitorInterval()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |