public class LifecycleServiceImpl extends Object implements LifecycleService
| Constructor and Description |
|---|
LifecycleServiceImpl(com.google.inject.Injector injector,
ninja.lifecycle.LifecycleRegister lifecycleRegister,
LifecycleSupport lifecycleSupport) |
| Modifier and Type | Method and Description |
|---|---|
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
|
@Inject
public LifecycleServiceImpl(com.google.inject.Injector injector,
ninja.lifecycle.LifecycleRegister lifecycleRegister,
LifecycleSupport lifecycleSupport)
public void start()
LifecycleServicestart in interface LifecycleServicepublic void stop()
LifecycleServicestop in interface LifecycleServicepublic boolean isStarted()
LifecycleServiceisStarted in interface LifecycleServicepublic State getState()
LifecycleServicegetState in interface LifecycleServicepublic long getUpTime()
LifecycleServicegetUpTime in interface LifecycleServiceCopyright © 2019 ninjaframework. All rights reserved.