org.gcube.smartgears.lifecycle.container
Class ContainerLifecycle

java.lang.Object
  extended by org.gcube.smartgears.lifecycle.DefaultLifecycle<ContainerState>
      extended by org.gcube.smartgears.lifecycle.container.ContainerLifecycle
All Implemented Interfaces:
Lifecycle<ContainerState>

public class ContainerLifecycle
extends DefaultLifecycle<ContainerState>

The Lifecycle of the application container.

Author:
Fabio Simeoni

Field Summary
static String activation
          The event qualifier that correspond to the ContainerState.partActive state of the container lifecycle.
static String failure
          The event qualifier that correspond to the ContainerState#fa state of the container lifecycle.
static String part_activation
          The event qualifier that correspond to the ContainerState.active state of the container lifecycle.
static String start
          The event qualifier that correspond to the ContainerState.started state of the container lifecycle.
static String stop
          The event qualifier that correspond to the ContainerState.stopped state of the container lifecycle.
 
Constructor Summary
ContainerLifecycle(org.gcube.common.events.Hub hub)
          Creates an instance with an event Hub.
 
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 ContainerState.started state of the container lifecycle.

See Also:
Constant Field Values

activation

public static final String activation
The event qualifier that correspond to the ContainerState.partActive state of the container lifecycle.

See Also:
Constant Field Values

part_activation

public static final String part_activation
The event qualifier that correspond to the ContainerState.active state of the container lifecycle.

See Also:
Constant Field Values

stop

public static final String stop
The event qualifier that correspond to the ContainerState.stopped state of the container lifecycle.

See Also:
Constant Field Values

failure

public static final String failure
The event qualifier that correspond to the ContainerState#fa state of the container lifecycle.

See Also:
Constant Field Values
Constructor Detail

ContainerLifecycle

public ContainerLifecycle(org.gcube.common.events.Hub hub)
Creates an instance with an event Hub.

Parameters:
hub - the event hub


Copyright © 2014. All Rights Reserved.