|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sapia.ubik.rmi.server.command.Command
org.sapia.ubik.rmi.server.RMICommand
org.sapia.ubik.rmi.server.invocation.InvokeCommand
public class InvokeCommand
This commands performs a remote method invocation.
| Field Summary |
|---|
| Fields inherited from class org.sapia.ubik.rmi.server.RMICommand |
|---|
_config, _vmId |
| Constructor Summary | |
|---|---|
InvokeCommand()
Do not call; used for externalization only. |
|
InvokeCommand(OID oid,
java.lang.String methodName,
java.lang.Object[] params,
java.lang.Class[] paramClasses,
java.lang.String transportType)
|
|
| Method Summary | |
|---|---|
protected void |
convertParams(java.lang.ClassLoader loader)
Internally converts the parameters of the method to call. |
java.lang.Object |
execute()
Executes this command. |
java.lang.String |
getMethodName()
Returns the name of the method to invoke. |
OID |
getOID()
Returns the object identifier of the object on which the invocation will be performed. |
java.lang.Class[] |
getParameterTypes()
Returns the signature (the types of the method's parameters) of the method to call. |
java.lang.Object[] |
getParams()
Returns the parameters of the method to call. |
void |
readExternal(java.io.ObjectInput in)
|
void |
setParams(java.lang.Object[] params)
|
boolean |
usesMarshalledObjects()
Returns true if this instance encapsulates method call parameters and return value in MarshalledObject instances. |
void |
writeExternal(java.io.ObjectOutput out)
|
| Methods inherited from class org.sapia.ubik.rmi.server.RMICommand |
|---|
getConnection, getServerAddress, getVmId, init |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InvokeCommand()
public InvokeCommand(OID oid,
java.lang.String methodName,
java.lang.Object[] params,
java.lang.Class[] paramClasses,
java.lang.String transportType)
oid - the OID (unique object identifier) of the
object on which the method call should be performed.methodName - the name of the method to call.params - the method's parameters.paramClasses - the method's signature, as a class array.| Method Detail |
|---|
public OID getOID()
OID.public java.lang.String getMethodName()
public java.lang.Class[] getParameterTypes()
Class instances.public void setParams(java.lang.Object[] params)
public boolean usesMarshalledObjects()
MarshalledObject instances.
true if this instance uses MarshalledObjects.MarshalledObjectpublic java.lang.Object[] getParams()
public java.lang.Object execute()
throws java.lang.Throwable
RMICommand
execute in interface Executableexecute in class RMICommandjava.lang.Throwable - if an error occurs while executing this commandRMICommand.execute()
public void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.ExternalizablereadExternal in class RMICommandjava.io.IOException
java.lang.ClassNotFoundExceptionExternalizable.readExternal(ObjectInput)
public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.ExternalizablewriteExternal in class RMICommandjava.io.IOExceptionExternalizable.writeExternal(ObjectOutput)
protected void convertParams(java.lang.ClassLoader loader)
throws java.io.IOException,
java.lang.ClassNotFoundException
MarshalledObject.
java.io.IOException
java.lang.ClassNotFoundExceptionMarshalledObject
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||