management package insteadpublic interface ManagedEntity
ManagedEntityConfig| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getLog()
Deprecated.
Returns the tail of this manage entity's log file.
|
boolean |
isRunning()
Deprecated.
Returns whether or not this managed entity is running.
|
void |
start()
Deprecated.
Starts this managed entity.
|
void |
stop()
Deprecated.
Stops this managed entity.
|
boolean |
waitToStart(long timeout)
Deprecated.
Waits for up to a given number of milliseconds for this managed
entity to start.
|
boolean |
waitToStop(long timeout)
Deprecated.
Waits for up to a given number of milliseconds for this managed
entity to stop.
|
void start()
throws AdminException
AdminException - If a problem is encountered while starting this managed
entity.java.lang.IllegalStateException - If this managed entity resides on a remote machine and a
null or empty ("") remote command has
been specified.waitToStart(long)void stop() throws AdminException
AdminException - If a problem is encountered while stopping this managed
entity.java.lang.IllegalStateException - If this managed entity resides on a remote machine and a
null or empty ("") remote command has
been specified.waitToStop(long)boolean waitToStart(long timeout)
throws java.lang.InterruptedException
timeout - The number of milliseconds to wait for this managed entity
to start.false, if the method times out.java.lang.InterruptedException - If the thread invoking this method is interrupted while
waiting.boolean waitToStop(long timeout)
throws java.lang.InterruptedException
timeout - The number of milliseconds to wait for this managed entity
to stop.false, if the method times out.java.lang.InterruptedException - If the thread invoking this method is interrupted while
waiting.boolean isRunning()
java.lang.IllegalStateException - If this managed entity resides on a remote machine and a
null or empty ("") remote command has
been specified.java.lang.String getLog()
throws AdminException
AdminException - If a problem is encountered while getting the log of this
managed entity.java.lang.UnsupportedOperationException - If this managed entity does not support retrieving its
log.