|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectvoldemort.client.protocol.admin.AdminClient.RPCOperations
public class AdminClient.RPCOperations
Encapsulates all the RPC helper methods
Constructor Summary | |
---|---|
AdminClient.RPCOperations()
|
Method Summary | |
---|---|
java.util.List<java.lang.Integer> |
getAsyncRequestList(int nodeId)
Retrieves a list of asynchronous request ids on the server. |
java.util.List<java.lang.Integer> |
getAsyncRequestList(int nodeId,
boolean showComplete)
Retrieves a list of asynchronous request ids on the server. |
AsyncOperationStatus |
getAsyncRequestStatus(int nodeId,
int requestId)
Get the status of an Async Operation running at (remote) node. |
void |
stopAsyncRequest(int nodeId,
int requestId)
To stop an asynchronous request on the particular node |
java.lang.String |
waitForCompletion(int nodeId,
int requestId)
Wait for async task at (remote) nodeId to finish completion, using exponential backoff to poll the task completion status. |
java.lang.String |
waitForCompletion(int nodeId,
int requestId,
long maxWait,
java.util.concurrent.TimeUnit timeUnit)
Wait for async task at (remote) nodeId to finish completion, using exponential backoff to poll the task completion status. |
java.lang.String |
waitForCompletion(int nodeId,
int requestId,
long maxWait,
java.util.concurrent.TimeUnit timeUnit,
AsyncOperationStatus higherStatus)
Wait for async task at (remote) nodeId to finish completion, using exponential backoff to poll the task completion status. |
void |
waitForCompletion(int nodeId,
java.lang.String key,
java.lang.String value)
Wait till the passed value matches with the metadata value returned by the remote node for the passed key. |
void |
waitForCompletion(int nodeId,
java.lang.String key,
java.lang.String value,
long maxWait,
java.util.concurrent.TimeUnit timeUnit)
Wait till the passed value matches with the metadata value returned by the remote node for the passed key. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AdminClient.RPCOperations()
Method Detail |
---|
public AsyncOperationStatus getAsyncRequestStatus(int nodeId, int requestId)
nodeId
- Id on which the operation is runningrequestId
- Id of the operation itself
public java.util.List<java.lang.Integer> getAsyncRequestList(int nodeId)
nodeId
- The id of the node whose request ids we want
public java.util.List<java.lang.Integer> getAsyncRequestList(int nodeId, boolean showComplete)
nodeId
- The id of the node whose request ids we wantshowComplete
- Boolean to indicate if we want to include the
completed requests as well
public void stopAsyncRequest(int nodeId, int requestId)
nodeId
- The id of the node on which the request is runningrequestId
- The id of the request to terminatepublic java.lang.String waitForCompletion(int nodeId, int requestId, long maxWait, java.util.concurrent.TimeUnit timeUnit, AsyncOperationStatus higherStatus)
Logs the status at each status check if debug is enabled.
nodeId
- Id of the node to pollrequestId
- Id of the request to checkmaxWait
- Maximum time we'll keep checking a request until we
give up. Pass in 0 or less to wait "forever".timeUnit
- Unit in which maxWait is expressed.higherStatus
- A higher level async operation object. If this
waiting is being run another async operation this helps us
propagate the status all the way up.
VoldemortException
- if task failed to finish in specified
maxWait time.public java.lang.String waitForCompletion(int nodeId, int requestId, long maxWait, java.util.concurrent.TimeUnit timeUnit)
Logs the status at each status check if debug is enabled.
nodeId
- Id of the node to pollrequestId
- Id of the request to checkmaxWait
- Maximum time we'll keep checking a request until we
give uptimeUnit
- Unit in which maxWait is expressed.
VoldemortException
- if task failed to finish in specified
maxWait time.public java.lang.String waitForCompletion(int nodeId, int requestId)
Logs the status at each status check if debug is enabled.
nodeId
- Id of the node to pollrequestId
- Id of the request to check
VoldemortException
- if task failed to finish in specified
maxWait time.public void waitForCompletion(int nodeId, java.lang.String key, java.lang.String value, long maxWait, java.util.concurrent.TimeUnit timeUnit)
Logs the status at each status check if debug is enabled.
nodeId
- Id of the node to pollkey
- metadata key to keep checking for current valuevalue
- metadata value should match for exit criteria.maxWait
- Maximum time we'll keep checking a request until we
give up. Pass in 0 or less to wait "forever".timeUnit
- Unit in which maxWait is expressed.public void waitForCompletion(int nodeId, java.lang.String key, java.lang.String value)
Logs the status at each status check if debug is enabled.
nodeId
- Id of the node to pollkey
- metadata key to keep checking for current valuevalue
- metadata value should match for exit criteria.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |