|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
This interface provides functions to initialize, finalize and get/set methods for GridRPC.
It keeps information(servers, functions...) for GridRPC,
And has functions for process of GridRPC.
Use GrpcClientFactory.getClient(java.lang.String)
to create object which implements this interface.
| Method Summary | |
void |
activate(java.util.Properties prop)
Initialize GrpcClient with Properties object which contains information for server. |
void |
activate(java.lang.String configFilename)
Initialize GrpcClient with a name of configuration file. |
void |
deactivate()
Finalize GrpcClient. |
GrpcFunctionHandle |
getFunctionHandle(java.lang.String functionName)
Create GrpcFunctionHandle without server information.Default server(it depends on implementation) will be used. |
GrpcFunctionHandle |
getFunctionHandle(java.lang.String functionName,
java.util.Properties prop)
Create GrpcFunctionHandle for the specified function on the server. |
GrpcFunctionHandle[] |
getFunctionHandles(java.lang.String functionName,
int nHandles)
Create GrpcFunctionHandle without server information.Default server(it depends on implementation) will be used. |
GrpcFunctionHandle[] |
getFunctionHandles(java.lang.String functionName,
java.util.Properties prop,
int nHandles)
Create specified number of GrpcFunctionHandle for the specified function on the server. |
GrpcObjectHandle |
getObjectHandle(java.lang.String objectName)
Create GrpcObjectHandle without server information.Default server(it depends on implementation) will be used. |
GrpcObjectHandle |
getObjectHandle(java.lang.String objectName,
java.util.Properties prop)
Create GrpcObjectHandle for the specified object on the server. |
GrpcObjectHandle[] |
getObjectHandles(java.lang.String objectName,
int nHandles)
Create GrpcObjectHandle without server information.Default server(it depends on implementation) will be used. |
GrpcObjectHandle[] |
getObjectHandles(java.lang.String objectName,
java.util.Properties prop,
int nHandles)
Create specified number of GrpcObjectHandle for the specified function on the server. |
| Method Detail |
public void activate(java.lang.String configFilename)
throws GrpcException
configFilename - a name of configuration file.
GrpcException - it it failed to initialize.
public void activate(java.util.Properties prop)
throws GrpcException
prop - information of server.
GrpcException - if it failed to initialize.
public GrpcFunctionHandle getFunctionHandle(java.lang.String functionName,
java.util.Properties prop)
throws GrpcException
GrpcFunctionHandle for the specified function on the server.
functionName - a name of function.prop - information of server.
GrpcFunctionHandle.
GrpcException - if it failed to create FunctionHandle.
public GrpcFunctionHandle getFunctionHandle(java.lang.String functionName)
throws GrpcException
GrpcFunctionHandle without server information.
functionName - a name of function.
GrpcFunctionHandle.
GrpcException - if it failed to create FunctionHandle.
public GrpcFunctionHandle[] getFunctionHandles(java.lang.String functionName,
java.util.Properties prop,
int nHandles)
throws GrpcException
GrpcFunctionHandle for the specified function on the server.
functionName - a name of function.prop - information of server.nHandles - a number of FunctionHandle.
GrpcFunctionHandle.
GrpcException - if it failed to create FunctionHandle.
public GrpcFunctionHandle[] getFunctionHandles(java.lang.String functionName,
int nHandles)
throws GrpcException
GrpcFunctionHandle without server information.
functionName - a name of function.nHandles - a number of FunctionHandle.
GrpcFunctionHandle.
GrpcException - if it failed to create FunctionHandle.
public GrpcObjectHandle getObjectHandle(java.lang.String objectName,
java.util.Properties prop)
throws GrpcException
GrpcObjectHandle for the specified object on the server.
objectName - a name of object.prop - information of server.
GrpcObjectHandle.
GrpcException - if it failed to create ObjectHandle.
public GrpcObjectHandle getObjectHandle(java.lang.String objectName)
throws GrpcException
GrpcObjectHandle without server information.
objectName - a name of object.
GrpcObjectHandle.
GrpcException - if it failed to create ObjectHandle.
public GrpcObjectHandle[] getObjectHandles(java.lang.String objectName,
java.util.Properties prop,
int nHandles)
throws GrpcException
GrpcObjectHandle for the specified function on the server.
objectName - a name of object.prop - information of server.nHandles - a number of FunctionHandle.
GrpcObjectHandle.
GrpcException - if it failed to create ObjectHandle.
public GrpcObjectHandle[] getObjectHandles(java.lang.String objectName,
int nHandles)
throws GrpcException
GrpcObjectHandle without server information.
objectName - a name of object.nHandles - a number of FunctionHandle.
GrpcObjectHandle.
GrpcException - if it failed to create ObjectHandle.
public void deactivate()
throws GrpcException
GrpcException - if it failed to finalize.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||