|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
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 |
public static final int ABORTED
public static final int BUSY
public static final int NOT_STARTED
public static final int SUCCESSFUL
| Method Detail |
public int getStatus()
throws SPIException
SPIException - Thrown when the service provider returns an error.public void waitForOperation(int length)
length - The time length this method will wait.
public void waitForOperation(int length,
PartitionOperationCallBack cb)
throws SPIException
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.
SPIException - Thrown when the service provider returns an error.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||