org.eclipse.ecf.remoteservice
Class RemoteCall

java.lang.Object
  extended by org.eclipse.ecf.remoteservice.RemoteCall
All Implemented Interfaces:
IRemoteCall
Direct Known Subclasses:
RemoteCallMethod, RestCall

public class RemoteCall
extends java.lang.Object
implements IRemoteCall

Since:
4.0

Field Summary
protected  java.lang.String method
           
protected  java.lang.Object[] parameters
           
protected  long timeout
           
 
Fields inherited from interface org.eclipse.ecf.remoteservice.IRemoteCall
DEFAULT_TIMEOUT
 
Constructor Summary
RemoteCall(java.lang.String method)
           
RemoteCall(java.lang.String method, java.lang.Object[] parameters)
           
RemoteCall(java.lang.String method, java.lang.Object[] parameters, long timeout)
           
 
Method Summary
 java.lang.String getMethod()
          Get the method name to call on the remote.
 java.lang.Object[] getParameters()
          Get the method parameters of the method to call on the remote.
 long getTimeout()
          Get timeout (in ms) for the remote call.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

method

protected java.lang.String method

parameters

protected java.lang.Object[] parameters

timeout

protected long timeout
Constructor Detail

RemoteCall

public RemoteCall(java.lang.String method,
                  java.lang.Object[] parameters,
                  long timeout)

RemoteCall

public RemoteCall(java.lang.String method,
                  java.lang.Object[] parameters)

RemoteCall

public RemoteCall(java.lang.String method)
Method Detail

getMethod

public java.lang.String getMethod()
Description copied from interface: IRemoteCall
Get the method name to call on the remote. Must return a non-null and non-empty string

Specified by:
getMethod in interface IRemoteCall
Returns:
String name of method to call on the remote

getParameters

public java.lang.Object[] getParameters()
Description copied from interface: IRemoteCall
Get the method parameters of the method to call on the remote. Will return a non-null array of Object parameters. The given Objects in the array must be be Serializable so that they may be serialized to deliver to remote.

Specified by:
getParameters in interface IRemoteCall
Returns:
Object [] the parameters to be provided for this call. Will not be null, but may be empty array.

getTimeout

public long getTimeout()
Description copied from interface: IRemoteCall
Get timeout (in ms) for the remote call.

Specified by:
getTimeout in interface IRemoteCall
Returns:
long timeout in ms

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object