com.novell.admin.ns.nds
Class NDSPartitionOperationStatus

java.lang.Object
  extended bycom.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.


Field Summary
 
Fields inherited from interface com.novell.admin.ns.OperationStatus
ABORTED, BUSY, NOT_STARTED, SUCCESSFUL
 
Constructor Summary
NDSPartitionOperationStatus(ObjectEntry partObjEntry, NDSPartitionService partitionService, java.lang.Thread operationT)
          Constructs an NDSPartitionOperationStatus object.
 
Method Summary
 int getStatus()
          Returns the status of NDS partition operation.
 void waitForOperation(int length)
          This method will wait for the specified length of time then return.
 void waitForOperation(int length, PartitionOperationCallBack cb)
          This method will wait for the specified length of time(in millisecond) and call the callback class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NDSPartitionOperationStatus

public NDSPartitionOperationStatus(ObjectEntry partObjEntry,
                                   NDSPartitionService partitionService,
                                   java.lang.Thread operationT)
Constructs an NDSPartitionOperationStatus object.

Parameters:
partObjEntry - The partition object with partition operation going on.
partitionService -
operationT -
Method Detail

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.

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.

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.


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 September 2 2004 0111.