org.apgrid.grpc.ng
Class NgGrpcFunctionHandle

java.lang.Object
  extended byorg.gridforum.gridrpc.GrpcFunctionHandle
      extended byorg.apgrid.grpc.ng.NgGrpcFunctionHandle
All Implemented Interfaces:
java.lang.Cloneable

public class NgGrpcFunctionHandle
extends GrpcFunctionHandle
implements java.lang.Cloneable

Ninf-G implementation of GrpcFunctionHandle class.
Provides functions defined in standard interfaces and also provides Ninf-G special functions.


Method Summary
 GrpcExecInfo callWith(java.util.Properties sessionAttr, java.util.List args)
          Calls a RemoteFunction with specified arguments.
 void cancel()
          Cancels a current session.
 void dispose()
          Disposes this handle.
This method must be called when you don't need this handle any more.
 int getLocalStatus()
          Gets a status code of this handle.
A status code is defined in NgGrpcHandle.
 boolean isIdle()
          Checks if this handle doesn't handle any jobs.
 
Methods inherited from class org.gridforum.gridrpc.GrpcFunctionHandle
call, call, call, call, call, call, call, call, call, call, call, call, call, call, call, call, call, call, call, call, call, call, call, call, call, call, call, call, call, call, call, call, call, call, call, call, call, call, call, call, call, call, call, call, call, call, call, call, call, call, call, call, call, call, call, call, call, call, call, call, call, call
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

callWith

public GrpcExecInfo callWith(java.util.Properties sessionAttr,
                             java.util.List args)
                      throws GrpcException
Description copied from class: GrpcFunctionHandle
Calls a RemoteFunction with specified arguments.

Specified by:
callWith in class GrpcFunctionHandle
Parameters:
args - List of arguments for a RemoteFunction.
Returns:
GrpcExecInfo
Throws:
GrpcException - if it failed to call a RemoteFunction.

cancel

public void cancel()
            throws GrpcException
Description copied from class: GrpcFunctionHandle
Cancels a current session.

Specified by:
cancel in class GrpcFunctionHandle
Throws:
GrpcException - if it failed to cancel.

dispose

public void dispose()
             throws GrpcException
Description copied from class: GrpcFunctionHandle
Disposes this handle.
This method must be called when you don't need this handle any more.

Specified by:
dispose in class GrpcFunctionHandle
Throws:
GrpcException - if it failed to dispose.

isIdle

public boolean isIdle()
Checks if this handle doesn't handle any jobs.

Returns:
true if it's idle, false otherwise.

getLocalStatus

public int getLocalStatus()
Gets a status code of this handle.
A status code is defined in NgGrpcHandle.

Returns:
a status code of this handle.
See Also:
NgGrpcHandle