|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.wpi.prc.server.transitioner.RemoteTransitionerRPCHandler
public class RemoteTransitionerRPCHandler
Handles XML-RPC calls for the RemoteTransitioner.
Field Summary | |
---|---|
private RemoteTransitioner |
transitioner
|
Constructor Summary | |
---|---|
RemoteTransitionerRPCHandler(RemoteTransitioner transitioner)
Contructor that takes a reference to the remote transition that created this RPC handler. |
Method Summary | |
---|---|
boolean |
addIngressResult(java.lang.String taskID)
Enqueues a result in the ingress result queue. |
boolean |
addIngressWorkUnit(java.lang.String taskID)
Enqueues a work unit in the ingress work queue. |
java.util.Vector |
getAssociatedIngressResults(java.lang.String taskID)
Finds all ingress Results associated with a given WorkUnit. |
java.util.Vector |
getAssociatedPendingResults(java.lang.String taskID)
Finds all pending Results associated with a given WorkUnit. |
java.util.Vector |
getCanonicalWorkQueue()
|
java.lang.String |
getCanonicalWorkUnit()
Gets the first work unit that has enough Results. |
java.util.Vector |
getIngressResultQueue()
|
java.util.Vector |
getIngressWorkQueue()
|
java.util.Vector |
getPendingResultQueue()
|
java.util.Vector |
getPendingWorkQueue()
|
java.lang.String |
getResult()
Gets the first result that needs to be validated. |
java.util.Vector |
getRetiredWorkQueue()
|
java.util.Vector |
getValidResultQueue()
|
java.lang.String |
getWorkUnit(java.lang.String userID,
java.lang.String eMailAddr)
Gets the next work unit to be processed. |
boolean |
markResultInvalid(java.lang.String taskID)
Marks a result as invalid. |
boolean |
markResultValid(java.lang.String taskID)
Marks a Result as valid. |
boolean |
selectCanonicalResult(java.lang.String taskID)
Designates a canonical Result by removing all related results from the ingress and pending queues, adding the canonical result to the valid queue, and retiring the canonical result's work unit. |
boolean |
shutdown(java.lang.String password)
Performs any necessary tasks to safely shut down the Transitioner. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private RemoteTransitioner transitioner
Constructor Detail |
---|
public RemoteTransitionerRPCHandler(RemoteTransitioner transitioner)
transitioner
- The RemoteTransitioner object that instantiated the instance of this class.Method Detail |
---|
public java.util.Vector getIngressWorkQueue()
public java.util.Vector getPendingWorkQueue()
public java.util.Vector getCanonicalWorkQueue()
public java.util.Vector getRetiredWorkQueue()
public java.util.Vector getIngressResultQueue()
public java.util.Vector getPendingResultQueue()
public java.util.Vector getValidResultQueue()
public boolean addIngressWorkUnit(java.lang.String taskID)
taskID
- The task ID of the work unit to add.public boolean addIngressResult(java.lang.String taskID)
taskID
- The task ID of the result to add.public java.util.Vector getAssociatedIngressResults(java.lang.String taskID)
taskID
- The task ID of the WorkUnit for which to find all associated ingress Results.
public java.util.Vector getAssociatedPendingResults(java.lang.String taskID)
taskID
- The task ID of the WorkUnit for which to find all associated pending Results.
public java.lang.String getWorkUnit(java.lang.String userID, java.lang.String eMailAddr) throws EmptyQueueException
userID
- The user ID of the volunteer who will receive it.eMailAddr
- The e-mail address of the volunteer who will receive it.
EmptyQueueException
public java.lang.String getCanonicalWorkUnit() throws EmptyQueueException
EmptyQueueException
public java.lang.String getResult() throws EmptyQueueException
EmptyQueueException
public boolean markResultValid(java.lang.String taskID)
taskID
- The task ID of the result from the ingress result queue to be marked valid.public boolean markResultInvalid(java.lang.String taskID)
taskID
- The task ID of the result to be marked invalid.public boolean selectCanonicalResult(java.lang.String taskID)
taskID
- The task ID of the canonical result to select.public boolean shutdown(java.lang.String password) throws InvalidPasswordException
InvalidPasswordException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |