public abstract class RemoteApplicationResponse extends Object implements Serializable
EMPTY
, OBJECT
or STREAM
and it
will also contain the task resuts that were returned from the various TaskHandlers
that were executed durring the request.
The final piece that will be returned is an up-to-date RemoteApplicationInstance which can be used to make subsequent requests to this server for this instance.
Note: because of special stream handling that we have in place, just because an instance of a particular RemoteApplicationResponse is sent from the producer, it is not guarenteed that the same instance will be recieved on the consumer. Instead there will be a functional equivalent that complys with the contract of this interface but may not contain any additional methods or functions.
Modifier and Type | Class and Description |
---|---|
static class |
RemoteApplicationResponse.Status
The status of the execution result.
|
static class |
RemoteApplicationResponse.Type
This returns the type of response.
|
Constructor and Description |
---|
RemoteApplicationResponse() |
Modifier and Type | Method and Description |
---|---|
abstract RemoteApplicationInstance |
getRemoteApplicationInstance()
Returns the current RemoteAdfApplicationInstance.
|
abstract Object |
getResult()
Returns the result based on type.
|
abstract RemoteApplicationResponse.Status |
getResultStatus()
Returns the current Result Status
|
abstract RemoteApplicationResponse.Type |
getResultType()
Returns the current Result Type
|
Object |
getTaskResult(String returnId)
Returns the result of a particular Task invocation.
|
abstract Map<String,Serializable> |
getTaskResultMap()
Returns a unmodifiable map of TaskResults.
|
protected Object |
writeReplace()
To handle streaming requests and optimize the protocol, this method is implemented
to return response objects based on type.
|
public Object getTaskResult(String returnId)
RemoteApplicationRequest.addTask(java.lang.Class, java.io.Serializable...)
.returnId
- the return Id assigned by the addTask methodpublic abstract Map<String,Serializable> getTaskResultMap()
public abstract RemoteApplicationInstance getRemoteApplicationInstance()
public abstract RemoteApplicationResponse.Status getResultStatus()
public abstract RemoteApplicationResponse.Type getResultType()
public abstract Object getResult()
protected Object writeReplace()
Note: this method is used by the built-in java serialization system. Please do no refactor.