|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object pt.digitalis.iss.ServiceRequest
public class ServiceRequest
This class holds information about a service request made to the ISS. It stores the process to execute, it's state, start and end times and results.
Constructor Summary | |
---|---|
ServiceRequest(IProcess aProcess,
String id)
Constructor. |
Method Summary | |
---|---|
long |
getArrivalTime()
Arrival time inspector. |
long |
getBeginExecutionTime()
Returns the time when the request was made. |
long |
getFinishExecutionTime()
Returns the time when the request finished it's execution. |
IProcess |
getProcess()
Returns the process associated with this request. |
String |
getRequestID()
Returns the request ID. |
Map<String,Object> |
getResults()
Returns the Process execution results |
ProcessState |
getState()
Returns the request's state. |
boolean |
isAsynchronousRequest()
Asynchronous request flag inspector. |
void |
setArrivalTime(long arrivalTime)
Arrival time modifier. |
void |
setBeginExecutionTime(long beginExecutionTime)
Sets the time when the request was made. |
void |
setFinishExecutionTime(long endTime)
Sets the time when the request finished it's execution. |
void |
setResults(Map<String,Object> newResults)
Sets the Process execution results |
void |
setState(ProcessState state)
Set the request's state. |
String |
toString()
Returns the Service Request representation as a String. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ServiceRequest(IProcess aProcess, String id)
aProcess
- the process associated with this requestid
- the passed request id or a generated if it's nullMethod Detail |
---|
public long getFinishExecutionTime()
public void setFinishExecutionTime(long endTime)
endTime
- the endTime to setpublic long getBeginExecutionTime()
public void setBeginExecutionTime(long beginExecutionTime)
beginExecutionTime
- the new value to setpublic ProcessState getState()
public void setState(ProcessState state)
state
- the state to setpublic IProcess getProcess()
public String getRequestID()
public Map<String,Object> getResults()
public void setResults(Map<String,Object> newResults)
newResults
- the results to setpublic String toString()
toString
in class Object
public long getArrivalTime()
public void setArrivalTime(long arrivalTime)
arrivalTime
- the arrivalTime value to setpublic boolean isAsynchronousRequest()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |