|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuk.ac.ncl.cs.instantsoap.wsapi.NonBlockingInvocationResponse
public class NonBlockingInvocationResponse
The return value for a non-blocking, synchronous invocation.
A fully-populated non-blocking response can be in one of two modes - pending or completed. If it is in the pending mode, then theStatus
property will have the value JobPending and the wait
and unit properties will be populated.
If it is in JobCompleted mode,
results properties will be populated.
Regardless, the uuid property will always be populated, to indicate
which job this response pertains to.
| Constructor Summary | |
|---|---|
NonBlockingInvocationResponse()
Create a new instance with all fields set to null. |
|
NonBlockingInvocationResponse(UUID uuid,
int wait,
TimeUnit unit)
Create a new instance in the JobPending state. |
|
NonBlockingInvocationResponse(UUID uuid,
Map<String,String> results)
Create a new instance in the JobCompleted state. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
|
JobStatus |
getJobStatus()
Get the job status. |
Map<String,String> |
getResults()
Get the results for this response. |
TimeUnit |
getUnit()
Get the time unit specifying how to interpret the wait. |
UUID |
getUuid()
Get the uuid of the job assicoated with this response. |
int |
getWait()
Get the new wait time. |
int |
hashCode()
|
void |
setJobStatus(JobStatus status)
Set the job status. |
void |
setResults(Map<String,String> results)
Set the results for this response. |
void |
setUnit(TimeUnit unit)
Set the time unit specifying how to interpret the wait. |
void |
setUuid(UUID uuid)
Set the uuid of the job associated with this response. |
void |
setWait(int wait)
Set the wait time. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public NonBlockingInvocationResponse()
public NonBlockingInvocationResponse(UUID uuid,
int wait,
TimeUnit unit)
JobPending state.
uuid - the UUID of the jobwait - how long to waitunit - a TimeUnit that should be used to interpret wait
public NonBlockingInvocationResponse(UUID uuid,
Map<String,String> results)
JobCompleted state.
This takes ownership of the results. Do not modify it.
uuid - the UUID of the jobresults - a Map containing the results| Method Detail |
|---|
public UUID getUuid()
UUIDpublic void setUuid(UUID uuid)
uuid - the new UUIDpublic int getWait()
public void setWait(int wait)
the - new wait timepublic TimeUnit getUnit()
TimeUnitpublic void setUnit(TimeUnit unit)
unit - the TimeUnit to usepublic Map<String,String> getResults()
public void setResults(Map<String,String> results)
results - a Map containing result valuespublic JobStatus getJobStatus()
JobStatuspublic void setJobStatus(JobStatus status)
status - the new JobStatuspublic boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||