|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--com.resilientedge.jockey.appcomm.AbstractMarshallable
|
+--com.resilientedge.jockey.appcomm.Request
A request object to be sent to the jockey engine.
| Fields inherited from interface com.resilientedge.jockey.appcomm.Marshallable |
FAILED, SUCCESS, TYPE_FIXED_STRING, TYPE_OBJECT, TYPE_UINT_32 |
| Constructor Summary | |
Request()
Basic constructor. |
|
Request(java.lang.Class toCall,
java.lang.String howToCall,
java.lang.String methodName,
java.lang.Object[] args)
Useful constructor for void calls. |
|
Request(java.lang.Class toCall,
java.lang.String howToCall,
java.lang.String methodName,
java.lang.Object[] args,
java.lang.Class returnType)
Useful constructor. |
|
Request(java.lang.String nameToCall,
java.lang.String howToCall,
java.lang.String methodName,
java.lang.Object[] args,
java.lang.Class returnType)
Useful constructor. |
|
| Method Summary | |
int |
fromBytes(byte[] buffer,
int offset)
Reinitialize this object from the contents of an array of bytes. |
java.lang.Object[] |
getArgs()
Return the arguments to the request |
java.lang.String |
getHowToCall()
Return the call method used to obtain the object that must satisfy this request. |
java.lang.String |
getMarshalName()
Return an identifier for this object. |
int |
getMarshalSize()
Return the number of bytes that this object would require to marshal itself. |
java.lang.String |
getMethodName()
Return the method name to be called on the object that must satisfy this request. |
java.lang.String |
getNameToCall()
Return the name of the object that must satisfy this request. |
java.lang.String |
getReturnType()
Return the return type expected for this request. |
int |
toBytes(byte[] buffer,
int offset)
Marshal this object to a language independent array of bytes. |
| Methods inherited from class com.resilientedge.jockey.appcomm.AbstractMarshallable |
getRealMarshalSize |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Request()
public Request(java.lang.Class toCall,
java.lang.String howToCall,
java.lang.String methodName,
java.lang.Object[] args,
java.lang.Class returnType)
toCall - the object on which a method will be calledhowToCall - the mechanism to find the object to be calledmethodName - the operation to invokeargs - arguments to the remote callreturnType - class of the return value expected
public Request(java.lang.Class toCall,
java.lang.String howToCall,
java.lang.String methodName,
java.lang.Object[] args)
toCall - the object on which a method will be calledhowToCall - the mechanism to find the object to be calledmethodName - the operation to invokeargs - arguments to the remote call
public Request(java.lang.String nameToCall,
java.lang.String howToCall,
java.lang.String methodName,
java.lang.Object[] args,
java.lang.Class returnType)
nameToCall - name of the object on which a method will be calledhowToCall - the mechanism to find the object to be calledmethodName - the operation to invokeargs - arguments to the remote callreturnType - class of the return value expected| Method Detail |
public java.lang.String getMarshalName()
public int toBytes(byte[] buffer,
int offset)
toBytes in class AbstractMarshallablebuffer - a destination buffer to receive this object.offset - begin marshalling at this offset from buffer start
public int fromBytes(byte[] buffer,
int offset)
fromBytes in class AbstractMarshallablebuffer - a buffer containing the marshalled object.offset - begin unmarshalling at this offset from buffer startpublic int getMarshalSize()
getMarshalSize in class AbstractMarshallablepublic java.lang.String getNameToCall()
public java.lang.String getHowToCall()
public java.lang.String getMethodName()
public java.lang.Object[] getArgs()
public java.lang.String getReturnType()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||