Package ninja.lifecycle
Interface LifecycleService
-
- All Known Implementing Classes:
LifecycleServiceImpl
public interface LifecycleServiceResponsible for starting/stopping the application- Author:
- James Roper
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StategetState()Get the state of the lifecyclelonggetUpTime()Get the time that the service has been up forbooleanisStarted()Whether the application is startedvoidstart()Start the applicationvoidstop()Stop the application
-
-
-
Method Detail
-
start
void start()
Start the application
-
stop
void stop()
Stop the application
-
isStarted
boolean isStarted()
Whether the application is started- Returns:
- True if the application is started
-
getState
State getState()
Get the state of the lifecycle- Returns:
- The state
-
getUpTime
long getUpTime()
Get the time that the service has been up for- Returns:
- The time that the service has been up for
-
-