org.apgrid.grpc.ng
Class NgGrpcObjectHandle

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

public class NgGrpcObjectHandle
extends GrpcObjectHandle
implements java.lang.Cloneable

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


Method Summary
 void cancel()
          Cancels a current session.
 void dispose()
          Dispose 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.
 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.
 boolean isIdle()
          Checks if this handle doesn't handle any jobs.
 
Methods inherited from class org.gridforum.gridrpc.GrpcObjectHandle
invoke, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invoke
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

invokeWith

public GrpcExecInfo invokeWith(java.lang.String methodName,
                               java.util.Properties sessionAttr,
                               java.util.List args)
                        throws GrpcException
Description copied from class: GrpcObjectHandle
Calls a RemoteMethod with specified arguments.
You have to specify a name of method.

Specified by:
invokeWith in class GrpcObjectHandle
Parameters:
args - List of arguments for a RemoteMethod.
Returns:
GrpcExecInfo
Throws:
GrpcException - if it failed to call a RemoteMethod.

cancel

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

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

dispose

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

Specified by:
dispose in class GrpcObjectHandle
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