public class NDSReplicaType
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
COUNT |
static NDSReplicaType |
MASTER |
static NDSReplicaType |
RO |
static NDSReplicaType |
RW |
static NDSReplicaType |
SUBREF |
static int |
TYPE_MASTER |
static int |
TYPE_RO |
static int |
TYPE_RW |
static int |
TYPE_SUBREF |
static int |
TYPE_UNKNOWN |
static int |
TYPE_VIR_RO |
static int |
TYPE_VIR_RW |
static NDSReplicaType |
UNKNOWN |
static NDSReplicaType |
VIRRO |
static NDSReplicaType |
VIRRW |
| Modifier | Constructor and Description |
|---|---|
protected |
NDSReplicaType(java.lang.String typeName,
int type)
Constructs an NDSReplicaType.
|
| Modifier and Type | Method and Description |
|---|---|
static NDSReplicaType |
getNDSReplicaType(int type)
Returns NDSReplicaType based on the input type.
|
int |
getType()
Returns the NDS replica type in numeric form.
|
java.lang.String |
getTypeName()
Returns the NDS replica type in String form.
|
public static final int TYPE_UNKNOWN
public static final int TYPE_MASTER
public static final int TYPE_RW
public static final int TYPE_RO
public static final int TYPE_SUBREF
public static final int TYPE_VIR_RW
public static final int TYPE_VIR_RO
public static final int COUNT
public static final NDSReplicaType MASTER
public static final NDSReplicaType RW
public static final NDSReplicaType RO
public static final NDSReplicaType SUBREF
public static final NDSReplicaType VIRRW
public static final NDSReplicaType VIRRO
public static final NDSReplicaType UNKNOWN
protected NDSReplicaType(java.lang.String typeName,
int type)
typeName - A String representing the replica type. The strings are defined in
ndsResourceBundle class.type - An int representation of the replica type. The ints are defined in this class.public java.lang.String getTypeName()
public int getType()
public static NDSReplicaType getNDSReplicaType(int type)
Use this method to convert int type to its corresponding NDSReplicaType.
type - The int representation of the NDS replica type.
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 ${TODAY} ${TSTAMP}.