|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.dna.repository.services.AbstractServiceAdministrator
@ThreadSafe public abstract class AbstractServiceAdministrator
Simple abstract implementation of the service administrator interface that can be easily subclassed by services that require an administrative interface.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.jboss.dna.repository.services.ServiceAdministrator |
|---|
ServiceAdministrator.State |
| Method Summary | |
|---|---|
ServiceAdministrator.State |
getState()
Return the current state of this service. |
boolean |
isPaused()
Return whether this service is currently paused. |
boolean |
isShutdown()
Return whether this service is stopped and unable to be restarted. |
boolean |
isStarted()
Return whether this service has been started and is currently running. |
ServiceAdministrator |
pause()
Temporarily stop monitoring and sequencing events. |
ServiceAdministrator |
setState(ServiceAdministrator.State state)
Set the state of the service. |
ServiceAdministrator |
setState(java.lang.String state)
Set the state of the service. |
ServiceAdministrator |
shutdown()
Permanently stop monitoring and sequencing events. |
ServiceAdministrator |
start()
Start monitoring and sequence the events. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.jboss.dna.repository.services.ServiceAdministrator |
|---|
awaitTermination |
| Method Detail |
|---|
public ServiceAdministrator.State getState()
getState in interface ServiceAdministratorpublic ServiceAdministrator setState(ServiceAdministrator.State state)
setState in interface ServiceAdministratorstate - the desired state
setState(String),
start(),
pause(),
shutdown()public ServiceAdministrator setState(java.lang.String state)
setState in interface ServiceAdministratorstate - the desired state in string form
java.lang.IllegalArgumentException - if the specified state string is null or does not match one of the predefined
predefined enumerated valuesServiceAdministrator.setState(State),
start(),
pause(),
shutdown()public ServiceAdministrator start()
paused. However, once the service is shutdown, it cannot be started or paused.
start in interface ServiceAdministratorjava.lang.IllegalStateException - if called when the service has been shutdown.pause(),
shutdown(),
isStarted()public ServiceAdministrator pause()
started. However, once the service is shutdown, it cannot be started or paused.
pause in interface ServiceAdministratorjava.lang.IllegalStateException - if called when the service has been shutdown.start(),
shutdown(),
isPaused()public ServiceAdministrator shutdown()
restarted or paused.
shutdown in interface ServiceAdministratorstart(),
pause(),
isShutdown()public boolean isStarted()
isStarted in interface ServiceAdministratorstart(),
pause(),
isPaused(),
isShutdown()public boolean isPaused()
isPaused in interface ServiceAdministratorpause(),
start(),
isStarted(),
isShutdown()public boolean isShutdown()
isShutdown in interface ServiceAdministratorshutdown(),
isPaused(),
isStarted()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||