com.novell.admin.ns.nds
Class NDSReplicaState

java.lang.Object
  extended bycom.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

BEGIN_ADD

public static final NDSReplicaState BEGIN_ADD

COUNT

public static final NDSReplicaState COUNT

DEAD

public static final NDSReplicaState DEAD

DYING

public static final NDSReplicaState DYING

FEDERATED

public static final NDSReplicaState FEDERATED

JOIN

public static final NDSReplicaState JOIN

LOCKED

public static final NDSReplicaState LOCKED

MASTER_DONE

public static final NDSReplicaState MASTER_DONE

MASTER_START

public static final NDSReplicaState MASTER_START

MOVE

public static final NDSReplicaState MOVE

NEW

public static final NDSReplicaState NEW

ON

public static final NDSReplicaState ON

SPLIT

public static final NDSReplicaState SPLIT

STATE_BEGIN_ADD

public static final int STATE_BEGIN_ADD
See Also:
Constant Field Values

STATE_COUNT

public static final int STATE_COUNT
See Also:
Constant Field Values

STATE_CRT1

public static final int STATE_CRT1
See Also:
Constant Field Values

STATE_CRT2

public static final int STATE_CRT2
See Also:
Constant Field Values

STATE_DEAD

public static final int STATE_DEAD
See Also:
Constant Field Values

STATE_DYING

public static final int STATE_DYING
See Also:
Constant Field Values

STATE_FEDERATED

public static final int STATE_FEDERATED
See Also:
Constant Field Values

STATE_JOIN1

public static final int STATE_JOIN1
See Also:
Constant Field Values

STATE_JOIN2

public static final int STATE_JOIN2
See Also:
Constant Field Values

STATE_JOIN3

public static final int STATE_JOIN3
See Also:
Constant Field Values

STATE_LOCKED

public static final int STATE_LOCKED
See Also:
Constant Field Values

STATE_MASTER_DONE

public static final int STATE_MASTER_DONE
See Also:
Constant Field Values

STATE_MASTER_START

public static final int STATE_MASTER_START
See Also:
Constant Field Values

STATE_MOVE1

public static final int STATE_MOVE1
See Also:
Constant Field Values

STATE_MOVE2

public static final int STATE_MOVE2
See Also:
Constant Field Values

STATE_MOVE3

public static final int STATE_MOVE3
See Also:
Constant Field Values

STATE_NEW

public static final int STATE_NEW
See Also:
Constant Field Values

STATE_ON

public static final int STATE_ON
See Also:
Constant Field Values

STATE_SPLIT1

public static final int STATE_SPLIT1
See Also:
Constant Field Values

STATE_SPLIT2

public static final int STATE_SPLIT2
See Also:
Constant Field Values

STATE_TRANS_MOVE

public static final int STATE_TRANS_MOVE
See Also:
Constant Field Values

STATE_TRANS_ON

public static final int STATE_TRANS_ON
See Also:
Constant Field Values

STATE_TRANS_SPLIT

public static final int STATE_TRANS_SPLIT
See Also:
Constant Field Values

STATE_UNKNOWN

public static final int STATE_UNKNOWN
See Also:
Constant Field Values

TRANS_ON

public static final NDSReplicaState TRANS_ON

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

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.

getState

public int getState()
Returns the NDS replica state in numeral form.

Returns:
The int representation of the state.

getStateName

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

Returns:
The String representation of the state.


API Documentation Copyright © 1998-2004 Novell, Inc. All rights reserved.
NDS is a registered trademark of Novell, Inc. in the United States and other countries.
Generated September 2 2004 0111.