org.ikasan.framework.initiator
Class InitiatorState

java.lang.Object
  extended by org.ikasan.framework.initiator.InitiatorState

public class InitiatorState
extends Object

Simple initiator state implementation.

Author:
Ikasan Development Team

Field Summary
static InitiatorState ERROR
          Error State - stopped, but in error
static InitiatorState RECOVERING
          Recovering State = running, but in recovery
static InitiatorState RUNNING
          Running State - just running
static InitiatorState STOPPED
          Stopped State - just stopped
 
Constructor Summary
protected InitiatorState(String name, boolean stopped, boolean running, boolean recovering, boolean error)
          Constructor
 
Method Summary
 String getName()
          Get the state name
 boolean isError()
          Is this a stopped in 'error' state
 boolean isRecovering()
          Is this a running but in 'recovery' state
 boolean isRunning()
          Is this a running normally state
 boolean isStopped()
          Is this a stopped normally state
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

STOPPED

public static final InitiatorState STOPPED
Stopped State - just stopped


RUNNING

public static final InitiatorState RUNNING
Running State - just running


RECOVERING

public static final InitiatorState RECOVERING
Recovering State = running, but in recovery


ERROR

public static final InitiatorState ERROR
Error State - stopped, but in error

Constructor Detail

InitiatorState

protected InitiatorState(String name,
                         boolean stopped,
                         boolean running,
                         boolean recovering,
                         boolean error)
Constructor

Parameters:
name -
stopped -
running -
recovering -
error -
Method Detail

isStopped

public boolean isStopped()
Is this a stopped normally state

Returns:
boolean

isRunning

public boolean isRunning()
Is this a running normally state

Returns:
boolean

isRecovering

public boolean isRecovering()
Is this a running but in 'recovery' state

Returns:
boolean

isError

public boolean isError()
Is this a stopped in 'error' state

Returns:
boolean

getName

public String getName()
Get the state name

Returns:
name

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2007-2012 Ikasan. All Rights Reserved.