ninja.lifecycle
Interface LifecycleService

All Known Implementing Classes:
LifecycleServiceImpl

public interface LifecycleService

Responsible for starting/stopping the application

Author:
James Roper

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
 

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


Copyright © 2012. All Rights Reserved.