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, unregisterSelfclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetObjectName, getTypepublic DeployControllerAdmin(C controller)
protected C getController()
protected void register()
protected void unregister()
public java.lang.String getId()
getId in interface DeployControllerMXBeanpublic java.lang.String getName()
AbstractManagedObjectgetName in interface ManagedObjectMXBeangetName in class AbstractManagedObjectpublic java.lang.String getStartupMode()
DeployControllerMXBeangetStartupMode in interface DeployControllerMXBeanpublic java.lang.String getRedeployMode()
DeployControllerMXBeangetRedeployMode in interface DeployControllerMXBeanpublic long getRedeployCheckInterval()
DeployControllerMXBeangetRedeployCheckInterval in interface DeployControllerMXBeanpublic java.lang.String getState()
DeployControllerMXBeangetState in interface DeployControllerMXBeanpublic java.lang.String getErrorMessage()
DeployControllerMXBeangetErrorMessage in interface DeployControllerMXBeanpublic java.util.Date getStartTime()
DeployControllerMXBeangetStartTime in interface DeployControllerMXBeanpublic java.util.Map<java.lang.String,java.lang.String> getRepositoryMetaData()
DeployControllerMXBeangetRepositoryMetaData in interface DeployControllerMXBeanpublic java.lang.String[] getClassPath()
DeployControllerMXBeangetClassPath in interface DeployControllerMXBeanpublic void start()
throws java.lang.Exception
start in interface DeployControllerMXBeanjava.lang.Exceptionpublic void stop()
throws java.lang.Exception
DeployControllerMXBeanstop in interface DeployControllerMXBeanjava.lang.Exceptionpublic void restart()
throws java.lang.Exception
DeployControllerMXBeanrestart in interface DeployControllerMXBeanjava.lang.Exceptionpublic void update()
throws java.lang.Exception
DeployControllerMXBeanupdate in interface DeployControllerMXBeanjava.lang.Exceptionpublic boolean destroy()
throws java.lang.Exception
destroy in interface DeployControllerMXBeanjava.lang.Exceptionpublic java.lang.String getRootDirectory()
getRootDirectory in interface DeployControllerMXBeanpublic void addNotificationListener(javax.management.NotificationListener listener,
javax.management.NotificationFilter filter,
java.lang.Object handback)
throws java.lang.IllegalArgumentException
addNotificationListener in interface javax.management.NotificationBroadcasterjava.lang.IllegalArgumentExceptionpublic void removeNotificationListener(javax.management.NotificationListener listener)
throws javax.management.ListenerNotFoundException
removeNotificationListener in interface javax.management.NotificationBroadcasterjavax.management.ListenerNotFoundExceptionpublic void removeNotificationListener(javax.management.NotificationListener listener,
javax.management.NotificationFilter filter,
java.lang.Object handback)
throws javax.management.ListenerNotFoundException
removeNotificationListener in interface javax.management.NotificationEmitterjavax.management.ListenerNotFoundExceptionpublic javax.management.MBeanNotificationInfo[] getNotificationInfo()
getNotificationInfo in interface javax.management.NotificationBroadcasterpublic void lifecycleEvent(LifecycleState oldState, LifecycleState newState)
lifecycleEvent in interface LifecycleListenerpublic java.lang.String toString()
toString in class AbstractManagedObject