org.jboss.messaging.core.distributed.util
Class ServerResponse
java.lang.Object
org.jboss.messaging.core.distributed.util.ServerResponse
- public class ServerResponse
- extends java.lang.Object
A wrapper around a response coming from a single server delegate registered with
a RpcServer. Returned by the rpcServerCalls.
- Version:
- $Revision: 437 $
- Author:
- Ovidiu Feodorov
Constructor Summary |
ServerResponse(Address address,
java.io.Serializable category,
java.io.Serializable subordinateID,
java.lang.Object result)
|
Method Summary |
Address |
getAddress()
Can be null. |
java.io.Serializable |
getCategory()
|
java.lang.Object |
getInvocationResult()
Return the result as it was returned by the remote sub-server (it can be null), or a
Throwable, if the remote invocation generated an exception. |
java.io.Serializable |
getSubordinateID()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
address
protected Address address
category
protected java.io.Serializable category
subordinateID
protected java.io.Serializable subordinateID
result
protected java.lang.Object result
ServerResponse
public ServerResponse(Address address,
java.io.Serializable category,
java.io.Serializable subordinateID,
java.lang.Object result)
getAddress
public Address getAddress()
- Can be null.
getCategory
public java.io.Serializable getCategory()
getSubordinateID
public java.io.Serializable getSubordinateID()
getInvocationResult
public java.lang.Object getInvocationResult()
- Return the result as it was returned by the remote sub-server (it can be null), or a
Throwable, if the remote invocation generated an exception.
- Returns:
- - the result, null or a Throwable.
toString
public java.lang.String toString()
Copyright © 2006 JBoss Inc. All Rights Reserved.