com.novell.admin.ns
Interface OperationStatus
- All Known Implementing Classes:
- NDSReplicaOperationStatus, NDSPartitionOperationStatus
- public interface OperationStatus
This interface describes the operation status class returned by the partition and replica
operations defined in PartitionService.
SUCCESSFUL
public static final int SUCCESSFUL
ABORTED
public static final int ABORTED
BUSY
public static final int BUSY
NOT_STARTED
public static final int NOT_STARTED
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.
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.
abortOperation
public void abortOperation()
throws SPIException
- Aborts an operation.
- Throws:
- SPIException - Thrown when the service provider returns an error.
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.
API Documentation Copyright © 1998-2003 Novell, Inc. All rights reserved.
ConsoleOne is a registered trademark of Novell Inc.
Generated December 9 2003 1727.