|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Defines variables and methods for replica operations.
Field Summary | |
static int |
REPLICATYPE_MASTER
Master replica created when the partition is defined and used to perform partition operations. |
static int |
REPLICATYPE_READONLY
Read-only replica, which will not receive client updates and can only be updated from master or read-write replicas. |
static int |
REPLICATYPE_SECONDARY
Secondary or read/write replica, which is created for a specific partition receiving client updates. |
static int |
SF_DO_IMMEDIATE
Synchronization flag that sets the Action Flag to the On state causing the action to be performed immediately. |
static int |
SF_SEND_ALL
Synchronization flag for sending all replica updates at the time of the next scheduled synchronization. |
static int |
SF_TRANSITION
Synchronization flag that sets the Transition Action Flag to the ON state. |
Method Summary | |
void |
receiveUpdates()
This replica receives updates from the master replica. |
void |
sendUpdates()
This replica sends updates to all other replicas. |
void |
setReplicaType(int type)
Sets the replica type for the partition. |
void |
syncReplica(int delay)
Synchronizes replicas, restricted by the specified time delay. |
void |
syncReplica(java.lang.String destServer,
int flags,
int delay)
Synchronizes replicas to the specified server, restricted by the specified flags and time delay. |
Field Detail |
public static final int REPLICATYPE_MASTER
(REPLICATYPE_MASTER = 0)
public static final int REPLICATYPE_SECONDARY
(REPLICATYPE_SECONDARY = 1)
public static final int REPLICATYPE_READONLY
(REPLICATYPE_READONLY = 2)
public static final int SF_DO_IMMEDIATE
If the Action Flag is not set to ON the synchronization is queued to be performed after a delay of a specified number of seconds.
(SF_DO_IMMEDIATE = 1)
public static final int SF_TRANSITION
If the replica is in a New, Dying, or Transition On state, the request is ignored and SUCCESS is returned.
(SF_TRANSITION = 2)
public static final int SF_SEND_ALL
(SF_SEND_ALL = 4)
Method Detail |
public void setReplicaType(int type) throws NdsPartitionOperationException
type
- Replica type defined as: REPLICATYPE_MASTER,
REPLICATYPE_SECONDARY, or REPLICATYPE_READONLY.public void syncReplica(java.lang.String destServer, int flags, int delay) throws NdsPartitionOperationException
This syncReplica() method updates each replica of a partition after an addition, deletion, or modification to NDS by providing a wrapper for the NWDSSyncReplicaToServer function.
destServer
- Server with which to synchronize the replica.flags
- Synchronization flags (SF_DO_IMMEDIATE, SF_
TRANSITION, SF_SEND_ALL).delay
- Time delay after which to start the
synchronization process.public void syncReplica(int delay) throws NdsPartitionOperationException
This syncReplica() method updates each replica of a partition after an addition, deletion, or modification to NDS by providing a wrapper for the NWDSSyncPartition function.
delay
- Time delay after which to start the synchronization
process.public void receiveUpdates() throws com.novell.service.jncp.NSIException
public void sendUpdates() throws com.novell.service.jncp.NSIException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |