|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectninja.lifecycle.LifecycleServiceImpl
public class LifecycleServiceImpl
Implementation of the lifecycle service
Constructor Summary | |
---|---|
LifecycleServiceImpl(com.google.inject.Injector injector,
ninja.lifecycle.LifecycleRegister lifecycleRegister,
LifecycleSupport lifecycleSupport)
|
Method Summary | |
---|---|
State |
getState()
Get the state of the lifecycle |
long |
getUpTime()
Get the time that the service has been up for |
boolean |
isStarted()
Whether the application is started |
void |
start()
Start the application |
void |
stop()
Stop the application |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
@Inject public LifecycleServiceImpl(com.google.inject.Injector injector, ninja.lifecycle.LifecycleRegister lifecycleRegister, LifecycleSupport lifecycleSupport)
Method Detail |
---|
public void start()
LifecycleService
start
in interface LifecycleService
public void stop()
LifecycleService
stop
in interface LifecycleService
public boolean isStarted()
LifecycleService
isStarted
in interface LifecycleService
public State getState()
LifecycleService
getState
in interface LifecycleService
public long getUpTime()
LifecycleService
getUpTime
in interface LifecycleService
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |