org.gcube.smartgears.lifecycle.application
Class ApplicationLifecycle

java.lang.Object
  extended by org.gcube.smartgears.lifecycle.DefaultLifecycle<ApplicationState>
      extended by org.gcube.smartgears.lifecycle.application.ApplicationLifecycle
All Implemented Interfaces:
Lifecycle<ApplicationState>

public class ApplicationLifecycle
extends DefaultLifecycle<ApplicationState>

The Lifecycle of an application.

Author:
Fabio Simeoni

Field Summary
static String activation
          The event qualifier that correspond to the ApplicationState.active state of the service lifecycle.
static String failure
          The event qualifier that correspond to the ApplicationState.failed state of the service lifecycle.
static String start
          The event qualifier that correspond to the ApplicationState.started state of the service lifecycle.
static String stop
          The event qualifier that correspond to the ApplicationState#started#stopped state of the service lifecycle.
 
Constructor Summary
ApplicationLifecycle(org.gcube.common.events.Hub hub, String name)
           
 
Method Summary
 
Methods inherited from class org.gcube.smartgears.lifecycle.DefaultLifecycle
moveTo, previous, state, tryMoveTo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

start

public static final String start
The event qualifier that correspond to the ApplicationState.started state of the service lifecycle.

See Also:
Constant Field Values

activation

public static final String activation
The event qualifier that correspond to the ApplicationState.active state of the service lifecycle.

See Also:
Constant Field Values

stop

public static final String stop
The event qualifier that correspond to the ApplicationState#started#stopped state of the service lifecycle.

See Also:
Constant Field Values

failure

public static final String failure
The event qualifier that correspond to the ApplicationState.failed state of the service lifecycle.

See Also:
Constant Field Values
Constructor Detail

ApplicationLifecycle

public ApplicationLifecycle(org.gcube.common.events.Hub hub,
                            String name)


Copyright © 2014. All Rights Reserved.