|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectvoldemort.common.service.AbstractService
voldemort.server.protocol.admin.AsyncOperationService
public class AsyncOperationService
Asynchronous job scheduler for admin service operations. TODO: requesting a unique id, then creating an operation with that id seems like a bad API design.
Constructor Summary | |
---|---|
AsyncOperationService(SchedulerService scheduler,
int cacheSize)
|
Method Summary | |
---|---|
java.lang.String |
getAllAsyncOperations()
|
java.util.List<java.lang.Integer> |
getAsyncOperationList(boolean showCompleted)
Get list of asynchronous operations on this node. |
java.util.List<java.lang.Integer> |
getMatchingAsyncOperationList(java.lang.String jobDescPattern,
boolean showCompleted)
|
AsyncOperationStatus |
getOperationStatus(int requestId)
|
java.lang.String |
getStatus(int id)
|
int |
getUniqueRequestId()
Generate a unique request id |
boolean |
isComplete(int requestId)
Is a request complete? If so, forget the operations |
protected void |
startInner()
|
java.lang.String |
stopAsyncOperation(int requestId)
|
protected void |
stopInner()
|
void |
stopOperation(int requestId)
|
void |
submitOperation(int requestId,
AsyncOperation operation)
Submit a operations. |
Methods inherited from class voldemort.common.service.AbstractService |
---|
getType, isStarted, start, stop |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AsyncOperationService(SchedulerService scheduler, int cacheSize)
Method Detail |
---|
public void submitOperation(int requestId, AsyncOperation operation)
operation
- The asynchronous operations to submitrequestId
- Id of the requestpublic boolean isComplete(int requestId)
requestId
- Id of the request
public java.lang.String getStatus(int id)
public java.util.List<java.lang.Integer> getMatchingAsyncOperationList(java.lang.String jobDescPattern, boolean showCompleted)
public java.lang.String getAllAsyncOperations()
public java.util.List<java.lang.Integer> getAsyncOperationList(boolean showCompleted)
showCompleted
- Show completed operations
public AsyncOperationStatus getOperationStatus(int requestId)
public java.lang.String stopAsyncOperation(int requestId)
public void stopOperation(int requestId)
public int getUniqueRequestId()
protected void startInner()
startInner
in class AbstractService
protected void stopInner()
stopInner
in class AbstractService
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |