Package ninja.lifecycle
Interface LifecycleService
-
- All Known Implementing Classes:
LifecycleServiceImpl
public interface LifecycleService
Responsible for starting/stopping the application- Author:
- James Roper
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description State
getState()
Get the state of the lifecyclelong
getUpTime()
Get the time that the service has been up forboolean
isStarted()
Whether the application is startedvoid
start()
Start the applicationvoid
stop()
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
-
-