|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.wpi.prc.templates.java.common.Client
edu.wpi.prc.templates.java.validator.ValidatorClient
public class ValidatorClient
The ValidatorClient is an XML-RPC client with added functionality that is needed by the result validator.
Field Summary | |
---|---|
private static ValidatorClient |
client
|
private static java.lang.String |
DEFAULT_SERVER_ADDRESS
|
private static java.lang.String |
GET_ASSOCIATED_WU_RPC_NAME
|
private static java.lang.String |
GET_RESULT_RPC_NAME
|
private static java.lang.String |
MARK_INVALID_RPC_NAME
|
private static java.lang.String |
MARK_VALID_RPC_NAME
|
private static java.lang.String |
SELECT_CANONICAL_RPC_NAME
|
(package private) ResultValidator |
validator
|
Constructor Summary | |
---|---|
private |
ValidatorClient()
Private constructor because the ValidatorClient is a singleton. |
Method Summary | |
---|---|
byte[] |
getAssociatedWorkUnit(java.lang.String resultID)
Gets the associated work unit for the given result. |
static ValidatorClient |
instance()
|
boolean |
markResultInvalid(java.lang.String resultID)
Marks the result with the given ID as valid. |
boolean |
markResultValid(java.lang.String resultID)
Marks the result with the given ID as valid. |
boolean |
selectCanonicalResult(java.lang.String resultID)
Selects the result with the given ID as the canonical result for a work unit. |
void |
validateNextResult()
Gets the next result to be validated from the server, then invokes the appropriate method of the ResultValidator, depending on what type of result needed to be validated. |
Methods inherited from class edu.wpi.prc.templates.java.common.Client |
---|
executeRPC, executeRPCUntilSuccess, setServerAddress |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final java.lang.String GET_RESULT_RPC_NAME
private static final java.lang.String MARK_VALID_RPC_NAME
private static final java.lang.String MARK_INVALID_RPC_NAME
private static final java.lang.String SELECT_CANONICAL_RPC_NAME
private static final java.lang.String GET_ASSOCIATED_WU_RPC_NAME
private static final java.lang.String DEFAULT_SERVER_ADDRESS
private static ValidatorClient client
ResultValidator validator
Constructor Detail |
---|
private ValidatorClient()
Method Detail |
---|
public void validateNextResult() throws RPCHandlerException
RPCHandlerException
public boolean markResultValid(java.lang.String resultID)
resultID
- The ID of the result to mark valid.
public boolean markResultInvalid(java.lang.String resultID)
resultID
- The ID of the result to mark valid.
public boolean selectCanonicalResult(java.lang.String resultID)
resultID
- The ID of the result to select.
public byte[] getAssociatedWorkUnit(java.lang.String resultID)
resultID
- The result for which to get the associated work unit.
public static ValidatorClient instance()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |