|
LDAP Classes Implements Java LDAP |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.novell.ldap.LDAPExtendedOperation com.novell.ldap.extensions.ChangeReplicaTypeRequest
Changes the type of the replica that resides on the specified directory server.
To change a replica's type, you must create an instance of this class and then call the extendedOperation method with this object as the required LDAPExtendedOperation parameter.
The changeReplicaTypeRequest extension uses the following OID:
2.16.840.1.113719.1.27.100.15
The requestValue has the following format:
requestValue ::=
flags INTEGER
replicaType INTEGER
serverName LDAPDN
dn LDAPDN
Constructor Summary | |
ChangeReplicaTypeRequest(java.lang.String dn,
java.lang.String serverDN,
int replicaType,
int flags)
Constructs a new extended operation object for changing a replica's type. |
Methods inherited from class com.novell.ldap.LDAPExtendedOperation |
clone, getID, getValue, readDSML, readExternal, setID, setValue, toString, writeDSML, writeExternal |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ChangeReplicaTypeRequest(java.lang.String dn, java.lang.String serverDN, int replicaType, int flags) throws LDAPException
dn
- The distinguished name of the replica's
partition root.
serverDN
- The server on which the replica resides.
replicaType
- The new replica type. The replica types are defined
in the ReplicationConstants class.
flags
- Specifies whether all servers in the replica ring must be up
before proceeding. When set to zero, the status of the servers is
not checked. When set to LDAP_ENSURE_SERVERS_UP, all servers must be
up for the operation to proceed.
LDAPException
- A general exception which includes an error message
and an LDAP error code.ReplicationConstants.LDAP_RT_MASTER
,
ReplicationConstants.LDAP_RT_SECONDARY
,
ReplicationConstants.LDAP_RT_READONLY
,
ReplicationConstants.LDAP_RT_SUBREF
,
ReplicationConstants.LDAP_RT_SPARSE_WRITE
,
ReplicationConstants.LDAP_RT_SPARSE_READ
|
LDAP Classes Implements Java LDAP |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |