public abstract class DeployControllerAdmin<C extends EnvironmentDeployController> extends AbstractManagedObject implements DeployControllerMXBean, javax.management.NotificationEmitter, LifecycleListener, java.io.Serializable
Constructor and Description |
---|
DeployControllerAdmin(C controller) |
Modifier and Type | Method and Description |
---|---|
void |
addNotificationListener(javax.management.NotificationListener listener,
javax.management.NotificationFilter filter,
java.lang.Object handback) |
boolean |
destroy() |
java.lang.String[] |
getClassPath()
Returns the classpath
|
protected C |
getController()
Returns the controller.
|
java.lang.String |
getErrorMessage()
Returns any error message
|
java.lang.String |
getId() |
java.lang.String |
getName()
The JMX name property of the mbean.
|
javax.management.MBeanNotificationInfo[] |
getNotificationInfo() |
long |
getRedeployCheckInterval()
Returns the interval between redeploy checks.
|
java.lang.String |
getRedeployMode()
Returns the redeploy mode, one of "default", "automatic", "lazy", or "manual".
|
java.util.Map<java.lang.String,java.lang.String> |
getRepositoryMetaData()
Returns the repository metadata for the entry.
|
java.lang.String |
getRootDirectory()
Returns the root directory
|
java.util.Date |
getStartTime()
Returns the time the controller was last started.
|
java.lang.String |
getStartupMode()
Returns the startup mode, one of "default", "automatic", "lazy", or "manual".
|
java.lang.String |
getState()
Returns the controller's state.
|
void |
lifecycleEvent(LifecycleState oldState,
LifecycleState newState) |
protected void |
register() |
void |
removeNotificationListener(javax.management.NotificationListener listener) |
void |
removeNotificationListener(javax.management.NotificationListener listener,
javax.management.NotificationFilter filter,
java.lang.Object handback) |
void |
restart()
Restarts the instance.
|
void |
start()
Starts the controller.
|
void |
stop()
Stops the instance.
|
java.lang.String |
toString() |
protected void |
unregister() |
void |
update()
Restarts the instance if any changes are detected.
|
addObjectNameProperties, getObjectName, getType, registerSelf, unregisterSelf
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getObjectName, getType
public DeployControllerAdmin(C controller)
protected C getController()
protected void register()
protected void unregister()
public java.lang.String getId()
getId
in interface DeployControllerMXBean
public java.lang.String getName()
AbstractManagedObject
getName
in interface ManagedObjectMXBean
getName
in class AbstractManagedObject
public java.lang.String getStartupMode()
DeployControllerMXBean
getStartupMode
in interface DeployControllerMXBean
public java.lang.String getRedeployMode()
DeployControllerMXBean
getRedeployMode
in interface DeployControllerMXBean
public long getRedeployCheckInterval()
DeployControllerMXBean
getRedeployCheckInterval
in interface DeployControllerMXBean
public java.lang.String getState()
DeployControllerMXBean
getState
in interface DeployControllerMXBean
public java.lang.String getErrorMessage()
DeployControllerMXBean
getErrorMessage
in interface DeployControllerMXBean
public java.util.Date getStartTime()
DeployControllerMXBean
getStartTime
in interface DeployControllerMXBean
public java.util.Map<java.lang.String,java.lang.String> getRepositoryMetaData()
DeployControllerMXBean
getRepositoryMetaData
in interface DeployControllerMXBean
public java.lang.String[] getClassPath()
DeployControllerMXBean
getClassPath
in interface DeployControllerMXBean
public void start() throws java.lang.Exception
start
in interface DeployControllerMXBean
java.lang.Exception
public void stop() throws java.lang.Exception
DeployControllerMXBean
stop
in interface DeployControllerMXBean
java.lang.Exception
public void restart() throws java.lang.Exception
DeployControllerMXBean
restart
in interface DeployControllerMXBean
java.lang.Exception
public void update() throws java.lang.Exception
DeployControllerMXBean
update
in interface DeployControllerMXBean
java.lang.Exception
public boolean destroy() throws java.lang.Exception
destroy
in interface DeployControllerMXBean
java.lang.Exception
public java.lang.String getRootDirectory()
getRootDirectory
in interface DeployControllerMXBean
public void addNotificationListener(javax.management.NotificationListener listener, javax.management.NotificationFilter filter, java.lang.Object handback) throws java.lang.IllegalArgumentException
addNotificationListener
in interface javax.management.NotificationBroadcaster
java.lang.IllegalArgumentException
public void removeNotificationListener(javax.management.NotificationListener listener) throws javax.management.ListenerNotFoundException
removeNotificationListener
in interface javax.management.NotificationBroadcaster
javax.management.ListenerNotFoundException
public void removeNotificationListener(javax.management.NotificationListener listener, javax.management.NotificationFilter filter, java.lang.Object handback) throws javax.management.ListenerNotFoundException
removeNotificationListener
in interface javax.management.NotificationEmitter
javax.management.ListenerNotFoundException
public javax.management.MBeanNotificationInfo[] getNotificationInfo()
getNotificationInfo
in interface javax.management.NotificationBroadcaster
public void lifecycleEvent(LifecycleState oldState, LifecycleState newState)
lifecycleEvent
in interface LifecycleListener
public java.lang.String toString()
toString
in class AbstractManagedObject