|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gridforum.gridrpc.GrpcFunctionHandle
public abstract class GrpcFunctionHandle
Provides interfaces to control RemoteFunctions.
This class keeps information about a server and a RemoteFunction,
can call a RemoteFunction with arguments and receive a result of it.
If an error occurred in this class, then it will be notified by throwing
GrpcException.
| Constructor Summary | |
|---|---|
GrpcFunctionHandle()
|
|
| Method Summary | |
|---|---|
GrpcExecInfo |
call()
Calls a RemoteFunction without any arguments. |
GrpcExecInfo |
call(java.lang.Object... args)
Calls a RemoteFunction with a specified argument. |
GrpcExecInfo |
call(java.util.Properties sessionAttr)
Calls a RemoteFunction with attributes and no arguments. |
GrpcExecInfo |
call(java.util.Properties sessionAttr,
java.lang.Object... args)
Calls a RemoteFunction with attributes and a specified argument. |
abstract GrpcExecInfo |
callWith(java.util.Properties sessionAttr,
java.util.List args)
Calls a RemoteFunction with specified arguments. |
abstract void |
cancel()
Cancels a current session. |
abstract void |
dispose()
Disposes this handle. This method must be called when you don't need this handle any more. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GrpcFunctionHandle()
| Method Detail |
|---|
public abstract GrpcExecInfo callWith(java.util.Properties sessionAttr,
java.util.List args)
throws GrpcException
args - List of arguments for a RemoteFunction.
GrpcExecInfo
GrpcException - if it failed to call a RemoteFunction.
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 call()
throws GrpcException
GrpcExecInfo
GrpcException - if it failed to call a RemoteFunction.
public GrpcExecInfo call(java.lang.Object... args)
throws GrpcException
args - arguments for a RemoteFunction.
GrpcExecInfo
GrpcException - if it failed to call a RemoteFunction.
public GrpcExecInfo call(java.util.Properties sessionAttr)
throws GrpcException
sessionAttr - attributes for the session
GrpcExecInfo
GrpcException - if it failed to call a RemoteFunction.
public GrpcExecInfo call(java.util.Properties sessionAttr,
java.lang.Object... args)
throws GrpcException
sessionAttr - attributes for the sessionargs - arguments for a RemoteFunction.
GrpcExecInfo
GrpcException - if it failed to call a RemoteFunction.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||