com.novell.admin.ns.nds
Class NDSReplicaState

java.lang.Object
  |
  +--com.novell.admin.ns.nds.NDSReplicaState

public class NDSReplicaState
extends java.lang.Object

This class stores the state key pair (String and int representation) of the NDS replica state.


Field Summary
static NDSReplicaState BEGIN_ADD
           
static NDSReplicaState COUNT
           
static NDSReplicaState DEAD
           
static NDSReplicaState DYING
           
static NDSReplicaState FEDERATED
           
static NDSReplicaState JOIN
           
static NDSReplicaState LOCKED
           
static NDSReplicaState MASTER_DONE
           
static NDSReplicaState MASTER_START
           
static NDSReplicaState MOVE
           
static NDSReplicaState NEW
           
static NDSReplicaState ON
           
static NDSReplicaState SPLIT
           
static int STATE_BEGIN_ADD
           
static int STATE_COUNT
           
static int STATE_CRT1
           
static int STATE_CRT2
           
static int STATE_DEAD
           
static int STATE_DYING
           
static int STATE_FEDERATED
           
static int STATE_JOIN1
           
static int STATE_JOIN2
           
static int STATE_JOIN3
           
static int STATE_LOCKED
           
static int STATE_MASTER_DONE
           
static int STATE_MASTER_START
           
static int STATE_MOVE1
           
static int STATE_MOVE2
           
static int STATE_MOVE3
           
static int STATE_NEW
           
static int STATE_ON
           
static int STATE_SPLIT1
           
static int STATE_SPLIT2
           
static int STATE_TRANS_MOVE
           
static int STATE_TRANS_ON
           
static int STATE_TRANS_SPLIT
           
static int STATE_UNKNOWN
           
static NDSReplicaState TRANS_ON
           
static NDSReplicaState UNKNOWN
           
 
Constructor Summary
protected NDSReplicaState(java.lang.String stateName, int state)
          Constructs an NDSReplicaState.
 
Method Summary
static NDSReplicaState getNDSReplicaState(int type)
          Returns NDSReplicaState based on input type.
 int getState()
          Returns the NDS replica state in numeral form.
 java.lang.String getStateName()
          Returns the NDS replica state in a String representation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STATE_ON

public static final int STATE_ON

STATE_NEW

public static final int STATE_NEW

STATE_DYING

public static final int STATE_DYING

STATE_LOCKED

public static final int STATE_LOCKED

STATE_CRT1

public static final int STATE_CRT1

STATE_CRT2

public static final int STATE_CRT2

STATE_TRANS_ON

public static final int STATE_TRANS_ON

STATE_TRANS_MOVE

public static final int STATE_TRANS_MOVE

STATE_TRANS_SPLIT

public static final int STATE_TRANS_SPLIT

STATE_DEAD

public static final int STATE_DEAD

STATE_BEGIN_ADD

public static final int STATE_BEGIN_ADD

STATE_MASTER_START

public static final int STATE_MASTER_START

STATE_MASTER_DONE

public static final int STATE_MASTER_DONE

STATE_FEDERATED

public static final int STATE_FEDERATED

STATE_SPLIT1

public static final int STATE_SPLIT1

STATE_SPLIT2

public static final int STATE_SPLIT2

STATE_JOIN1

public static final int STATE_JOIN1

STATE_JOIN2

public static final int STATE_JOIN2

STATE_JOIN3

public static final int STATE_JOIN3

STATE_MOVE1

public static final int STATE_MOVE1

STATE_MOVE2

public static final int STATE_MOVE2

STATE_MOVE3

public static final int STATE_MOVE3

STATE_COUNT

public static final int STATE_COUNT

STATE_UNKNOWN

public static final int STATE_UNKNOWN

ON

public static final NDSReplicaState ON

NEW

public static final NDSReplicaState NEW

DYING

public static final NDSReplicaState DYING

LOCKED

public static final NDSReplicaState LOCKED

TRANS_ON

public static final NDSReplicaState TRANS_ON

DEAD

public static final NDSReplicaState DEAD

BEGIN_ADD

public static final NDSReplicaState BEGIN_ADD

SPLIT

public static final NDSReplicaState SPLIT

MASTER_START

public static final NDSReplicaState MASTER_START

MASTER_DONE

public static final NDSReplicaState MASTER_DONE

FEDERATED

public static final NDSReplicaState FEDERATED

JOIN

public static final NDSReplicaState JOIN

MOVE

public static final NDSReplicaState MOVE

COUNT

public static final NDSReplicaState COUNT

UNKNOWN

public static final NDSReplicaState UNKNOWN
Constructor Detail

NDSReplicaState

protected NDSReplicaState(java.lang.String stateName,
                          int state)
Constructs an NDSReplicaState.
Parameters:
stateName - A String representing the state. The strings are defined in ndsResourceBundle class.
state - An int representation of the state. The ints are defined in this class.
Method Detail

getStateName

public java.lang.String getStateName()
Returns the NDS replica state in a String representation.
Returns:
The String representation of the state.

getState

public int getState()
Returns the NDS replica state in numeral form.
Returns:
The int representation of the state.

getNDSReplicaState

public static NDSReplicaState getNDSReplicaState(int type)
Returns NDSReplicaState based on input type.

Use this method to convert int type to its corresponding NDSReplicaState.

Parameters:
type - The int representation of the NDS replica state.
Returns:
The corresponding NDSReplicaState.


API Documentation Copyright © 1998-2003 Novell, Inc. All rights reserved.
ConsoleOne is a registered trademark of Novell Inc.
Generated December 9 2003 1727.