|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.novell.service.nds.NdsReplicaPointer
Provides access to values of the Replica Pointer attribute. It is used for attributes whose values represent partition replicas.
Each value of this syntax is composed of five parts:
The matching rules for values of Replica Pointer are based on the replica server name field only, and are the same as those for Distinguished Name.
Matching Rules: Equality
NdsSyntaxId
Constructor Summary | |
NdsReplicaPointer(java.lang.String serverName,
int replicaType,
int replicaNumber,
NdsNetAddress[] replicaAddressHint)
Constructs an NdsReplicaPointer object based on the specified serverName, replicaType, replicaNumber, and replicaAddressHint parameters. |
Method Summary | |
boolean |
approximate(java.lang.Object anObject)
Compares two Objects using the approximate matching rule. |
java.lang.Object |
clone()
Creates a new object of the same class as this object. |
int |
compareTo(java.lang.Object anObject)
Compares two objects for ordering, or compares two strings lexicographically. |
int |
count()
Returns the number of elements in this sequence. |
boolean |
equals(java.lang.Object anObject)
Compares two Objects for equality. |
int |
getCount()
Returns the length of the replicaAddressHint as an int. |
int |
getNdsSyntaxId()
Returns the int that represents the NDS syntax ID. |
NdsNetAddress[] |
getReplicaAddressHint()
Returns the replicaAddressHint array as a Net Address array. |
int |
getReplicaNumber()
Returns the replica number as an int. |
int |
getReplicaType()
Returns the replica type as an int. |
java.lang.String |
getServerName()
Returns the server name as a String. |
|
getValue(java.lang.String compositeId)
Returns a SchemaValue object based on the given passed-in string containing the element value. |
java.util.Enumeration |
getValueIds()
Returns an enumeration of element IDs in this composite. |
java.util.Enumeration |
getValues()
Returns an enumeration of this sequence's values. |
boolean |
supportsMatchingRules(int matchingRules)
Checks to see if this object supports the specified matching rules. |
java.lang.String |
toString()
Generates a string representation of the object. |
Methods inherited from class java.lang.Object |
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public NdsReplicaPointer(java.lang.String serverName, int replicaType, int replicaNumber, NdsNetAddress[] replicaAddressHint)
serverName
- The name of the server storing the
replica stored as a String value.replicaType
- The replica type (master, secondary,
read-only, subordinate reference)
stored as an int.replicaNumber
- The replica number stored as an int.replicaAddressHint
- The referral to the replica address stored
as a NdsNetAddress object array.Method Detail |
public int compareTo(java.lang.Object anObject) throws java.lang.Exception
public boolean equals(java.lang.Object anObject)
The equals method implements the most discriminating possible equivalence relation on objects; that is, for any reference values X and Y, this method returns TRUE if and only if X and Y refer to the same object (X==Y has the value TRUE).
anObject
- The reference object with which to compare.public int count()
public getValue(java.lang.String compositeId)
compositeId
- The passed-in string containing the element
value.public java.util.Enumeration getValueIds()
public java.util.Enumeration getValues()
public boolean approximate(java.lang.Object anObject) throws java.lang.Exception
public int getNdsSyntaxId()
public boolean supportsMatchingRules(int matchingRules)
matchingRules
- The set of matching rules to check.public java.lang.Object clone()
public java.lang.String toString()
public java.lang.String getServerName()
public int getReplicaType()
public int getReplicaNumber()
public int getCount()
public NdsNetAddress[] getReplicaAddressHint()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |