org.sapia.ubik.rmi.server.invocation
Class CallBackInvokeCommand

java.lang.Object
  extended by org.sapia.ubik.rmi.server.command.Command
      extended by org.sapia.ubik.rmi.server.RMICommand
          extended by org.sapia.ubik.rmi.server.invocation.InvokeCommand
              extended by org.sapia.ubik.rmi.server.invocation.CallBackInvokeCommand
All Implemented Interfaces:
java.io.Externalizable, java.io.Serializable, Executable

public class CallBackInvokeCommand
extends InvokeCommand
implements java.io.Externalizable

A method invocation command that handles call backs.

Author:
Yanick Duchesne
Copyright:
Copyright © 2002-2003 Sapia Open Source Software. All Rights Reserved.
License:
Read the license.txt file of the jar or visit the license page at the Sapia OSS web site
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.sapia.ubik.rmi.server.RMICommand
_config, _vmId
 
Constructor Summary
CallBackInvokeCommand()
          Do not call; used for externalization only.
CallBackInvokeCommand(OID oid, java.lang.String methodName, java.lang.Object[] params, java.lang.Class[] paramClasses, java.lang.String transportType)
          Constructor for CallBackInvokeCommand.
 
Method Summary
 java.lang.Object execute()
          Executes this command.
 void readExternal(java.io.ObjectInput in)
           
 void writeExternal(java.io.ObjectOutput out)
           
 
Methods inherited from class org.sapia.ubik.rmi.server.invocation.InvokeCommand
convertParams, getMethodName, getOID, getParameterTypes, getParams, setParams, usesMarshalledObjects
 
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

CallBackInvokeCommand

public CallBackInvokeCommand()
Do not call; used for externalization only.


CallBackInvokeCommand

public CallBackInvokeCommand(OID oid,
                             java.lang.String methodName,
                             java.lang.Object[] params,
                             java.lang.Class[] paramClasses,
                             java.lang.String transportType)
Constructor for CallBackInvokeCommand.

Parameters:
oid - the object identifier of the object on which to perform the invocation.
methodName - the name of the method to call on the target object.
params - the parameters of the method.
paramClasses - the classes of the method's parameters (representing the method's signature).
Method Detail

execute

public java.lang.Object execute()
                         throws java.lang.Throwable
Description copied from class: RMICommand
Executes this command.

Specified by:
execute in interface Executable
Overrides:
execute in class InvokeCommand
Returns:
any value returned by this method.
Throws:
java.lang.Throwable - if an error occurs while executing this command
See Also:
RMICommand.execute()

readExternal

public void readExternal(java.io.ObjectInput in)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
Specified by:
readExternal in interface java.io.Externalizable
Overrides:
readExternal in class InvokeCommand
Throws:
java.io.IOException
java.lang.ClassNotFoundException
See Also:
Externalizable.readExternal(ObjectInput)

writeExternal

public void writeExternal(java.io.ObjectOutput out)
                   throws java.io.IOException
Specified by:
writeExternal in interface java.io.Externalizable
Overrides:
writeExternal in class InvokeCommand
Throws:
java.io.IOException
See Also:
Externalizable.writeExternal(ObjectOutput)


Copyright © 2010 Sapia OSS. All Rights Reserved.