|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gridforum.gridrpc.GrpcObjectHandle
public abstract class GrpcObjectHandle
Provides interfaces to control RemoteObjects.
This class keeps information about a server and a RemoteObject,
can call a RemoteObject with arguments and receive a result of it.
RemoteObjects have several methods, so you have to specify which method to call.
If an error occurred in this class, then it will be notified by throwing
GrpcException.
| Constructor Summary | |
|---|---|
GrpcObjectHandle()
|
|
| Method Summary | |
|---|---|
abstract void |
cancel()
Cancels a current session. |
abstract void |
dispose()
Dispose this handle. This method must be called when you don't need this handle any more. |
GrpcExecInfo |
invoke(java.lang.String methodName)
Calls a RemoteMethod without any arguments. |
GrpcExecInfo |
invoke(java.lang.String methodName,
java.lang.Object... args)
Calls a RemoteMethod with a specified argument. |
GrpcExecInfo |
invoke(java.lang.String methodName,
java.util.Properties sessionAttr)
Calls a RemoteMethod with attributes and no arguments. |
GrpcExecInfo |
invoke(java.lang.String methodName,
java.util.Properties sessionAttr,
java.lang.Object... args)
Calls a RemoteMethod with attributes and a specified argument. |
abstract GrpcExecInfo |
invokeWith(java.lang.String methodName,
java.util.Properties sessionAttr,
java.util.List args)
Calls a RemoteMethod with specified arguments. You have to specify a name of method. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GrpcObjectHandle()
| Method Detail |
|---|
public abstract GrpcExecInfo invokeWith(java.lang.String methodName,
java.util.Properties sessionAttr,
java.util.List args)
throws GrpcException
args - List of arguments for a RemoteMethod.
GrpcExecInfo
GrpcException - if it failed to call a RemoteMethod.
public abstract void cancel()
throws GrpcException
GrpcException - if it failed to cancel.
public abstract void dispose()
throws GrpcException
GrpcException - if it failed to dispose.
public GrpcExecInfo invoke(java.lang.String methodName)
throws GrpcException
methodName - a name of a RemoteMethod.
GrpcExecInfo
GrpcException - if it failed to call a RemoteMethod.
public GrpcExecInfo invoke(java.lang.String methodName,
java.lang.Object... args)
throws GrpcException
methodName - a name of a RemoteMethod.args - arguments for a RemoteMethod.
GrpcExecInfo
GrpcException - if it failed to call a RemoteMethod.
public GrpcExecInfo invoke(java.lang.String methodName,
java.util.Properties sessionAttr)
throws GrpcException
methodName - a name of a RemoteMethod.sessionAttr - attributes for the session
GrpcExecInfo
GrpcException - if it failed to call a RemoteMethod.
public GrpcExecInfo invoke(java.lang.String methodName,
java.util.Properties sessionAttr,
java.lang.Object... args)
throws GrpcException
methodName - a name of a RemoteMethod.sessionAttr - attributes for the sessionargs - arguments for a RemoteMethod.
GrpcExecInfo
GrpcException - if it failed to call a RemoteMethod.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||