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()
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
Copyright © 2019 ninjaframework. All rights reserved.