com.novell.admin.ns.nds
Class NDSPartitionOperationStatus
java.lang.Object
|
+--com.novell.admin.ns.nds.NDSPartitionOperationStatus
- All Implemented Interfaces:
- OperationStatus
- public class NDSPartitionOperationStatus
- extends java.lang.Object
- implements OperationStatus
NDSPartitionOperationStatus provides methods for the caller to check the create/merge partition
operation status, also it allows the caller to wait or abort these operations.
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
NDSPartitionOperationStatus
public NDSPartitionOperationStatus(ObjectEntry partObjEntry,
NDSPartitionService partitionService,
java.lang.Thread operationT)
- Constructor
- Parameters:
I-partObjEntry - The partition object with partition operation going on.I-ctx - NDS Namespace context.I-ns - A NDS Namespace.
waitForOperation
public void waitForOperation(int length,
PartitionOperationCallBack cb)
throws SPIException
- This method will wait for the specified length of time(in millisecond) and call
the callback class. Depending on the result of the callback, this method will abort,
don't wait or continue to wait.
- Specified by:
- waitForOperation in interface OperationStatus
- Parameters:
length - The time length this method will wait before calling the callback class.cb - The callback class to be called after waiting for "length" time.- Throws:
- SPIException - See SPIException for more information.
waitForOperation
public void waitForOperation(int length)
- This method will wait for the specified length of time then return.
- Specified by:
- waitForOperation in interface OperationStatus
- Parameters:
length - The time length this method will wait.
abortOperation
public void abortOperation()
throws SPIException
- Abort partition operation. If there is no operation to abort, JNDI will return without
any throws. The status flag is set to ABORTED if the abort operation is issued. This
method will return right away if the partition operation thread does not exist, no throw.
- Specified by:
- abortOperation in interface OperationStatus
- Throws:
- SPIException - See SPIException for more information.
getStatus
public int getStatus()
throws SPIException
- Returns the status of NDS partition operation. See OperationStatus for the possible
status being returned.
- Specified by:
- getStatus in interface OperationStatus
- Returns:
- The status of the NDS partition operation.
- Throws:
- SPIException - See SPIException for more information.
API Documentation Copyright © 1998-2003 Novell, Inc. All rights reserved.
ConsoleOne is a registered trademark of Novell Inc.
Generated December 9 2003 1727.