com.novell.admin.ns
Interface OperationStatus

All Known Implementing Classes:
NDSPartitionOperationStatus, NDSReplicaOperationStatus

public interface OperationStatus

This interface describes the operation status class returned by the partition and replica operations defined in PartitionService.


Field Summary
static int ABORTED
           
static int BUSY
           
static int NOT_STARTED
           
static int SUCCESSFUL
           
 
Method Summary
 int getStatus()
          Returns the status of the operations.
 void waitForOperation(int length)
          Waits for the specified length (in millisecond) of time and then returns.
 void waitForOperation(int length, PartitionOperationCallBack cb)
          This method waits for the specified length of time and calls the callback class.
 

Field Detail

ABORTED

public static final int ABORTED
See Also:
Constant Field Values

BUSY

public static final int BUSY
See Also:
Constant Field Values

NOT_STARTED

public static final int NOT_STARTED
See Also:
Constant Field Values

SUCCESSFUL

public static final int SUCCESSFUL
See Also:
Constant Field Values
Method Detail

getStatus

public int getStatus()
              throws SPIException
Returns the status of the operations. If the operation fails, an SPIException is thown.

Returns:
The status of the NDS operation.
Throws:
SPIException - Thrown when the service provider returns an error.

waitForOperation

public void waitForOperation(int length)
Waits for the specified length (in millisecond) of time and then returns.

Parameters:
length - The time length this method will wait.

waitForOperation

public void waitForOperation(int length,
                             PartitionOperationCallBack cb)
                      throws SPIException
This method waits for the specified length of time and calls the callback class. Depending on the result of the callback, this method will abort, not wait, or continue to wait.

Parameters:
length - The length of time (in milliseconds) this method will wait before calling the callback class.
cb - The callback class to be called after waiting for "length" time.
Throws:
SPIException - Thrown when the service provider returns an error.


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.