org.codehaus.cargo.container
Class State

java.lang.Object
  extended by org.codehaus.cargo.container.State

public final class State
extends java.lang.Object

Represent the container states (started, starting, stopped, etc).

Version:
$Id: State.java 862 2006-02-15 10:40:19Z vmassol $

Field Summary
static State STARTED
          State when container is started.
static State STARTING
          State when container is starting.
static State STOPPED
          State when container is stopped.
static State STOPPING
          State when container is stopping.
static State UNKNOWN
          Unknown state.
 
Method Summary
 boolean isStarted()
           
 boolean isStarting()
           
 boolean isStopped()
           
 boolean isStopping()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

STARTED

public static final State STARTED
State when container is started.


STOPPED

public static final State STOPPED
State when container is stopped.


STARTING

public static final State STARTING
State when container is starting.


STOPPING

public static final State STOPPING
State when container is stopping.


UNKNOWN

public static final State UNKNOWN
Unknown state.

Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
Returns:
the textual representation of the state

isStarted

public boolean isStarted()
Returns:
true if the container is started

isStopped

public boolean isStopped()
Returns:
true if the container is stopped

isStarting

public boolean isStarting()
Returns:
true if the container is starting

isStopping

public boolean isStopping()
Returns:
true if the container is stopping


Copyright © 2004-2010 Codehaus. All Rights Reserved.