org.ow2.jonas.deployablemonitor
Class DeployableMonitorService

java.lang.Object
  extended by javax.management.NotificationBroadcasterSupport
      extended by org.objectweb.jonas.management.reconfig.emitter.ReconfigEmitter
          extended by org.objectweb.jonas.service.AbsServiceImpl
              extended by org.ow2.jonas.deployablemonitor.DeployableMonitorService
All Implemented Interfaces:
NotificationBroadcaster, NotificationEmitter, Service

public class DeployableMonitorService
extends AbsServiceImpl
implements Service

Service that will launch the Deployable Monitor.

Author:
Florent BENOIT

Field Summary
static String DEFAULT_DIRECTORY
          Default directory to analyze.
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.objectweb.jonas.management.reconfig.emitter.ReconfigEmitter
RECONFIG_TYPE, SAVE_RECONFIG_TYPE
 
Constructor Summary
DeployableMonitorService()
          Default constructor.
 
Method Summary
protected  void doInit(Context ctx)
          Init the Deployable Monitor service.
protected  void doStart()
          Start the Deployable Monitor service.
protected  void doStop()
          Stop the Deployable Monitor service.
 
Methods inherited from class org.objectweb.jonas.service.AbsServiceImpl
getDomainName, getJonasServerName, getName, init, isStarted, setName, start, stop
 
Methods inherited from class org.objectweb.jonas.management.reconfig.emitter.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, toString, wait, wait, wait
 
Methods inherited from interface org.objectweb.jonas.service.Service
getName, init, isStarted, setName, start, stop
 

Field Detail

DEVELOPMENT_MODE_PROPERTY

public static final String DEVELOPMENT_MODE_PROPERTY
Property for the development mode.

See Also:
Constant Field Values

DIRECTORIES_LIST_PROPERTY

public static final String DIRECTORIES_LIST_PROPERTY
Property for the list of extra directories to analyze.

See Also:
Constant Field Values

JONAS_BASE

protected static final String JONAS_BASE
The name of the JONAS_BASE directory.


DEFAULT_DIRECTORY

public static final String DEFAULT_DIRECTORY
Default directory to analyze.

Constructor Detail

DeployableMonitorService

public DeployableMonitorService()
Default constructor.

Method Detail

doInit

protected void doInit(Context ctx)
               throws ServiceException
Init the Deployable Monitor service.

Specified by:
doInit in class AbsServiceImpl
Parameters:
ctx - the configuration of the Deployable Monitor service.
Throws:
ServiceException - if the initialization failed.

doStart

protected void doStart()
                throws ServiceException
Start the Deployable Monitor service.

Specified by:
doStart in class AbsServiceImpl
Throws:
ServiceException - if the startup failed.

doStop

protected void doStop()
               throws ServiceException
Stop the Deployable Monitor service.

Specified by:
doStop in class AbsServiceImpl
Throws:
ServiceException - if the stop failed.


Copyright © 2007 OW2 Consortium. All Rights Reserved.