All Packages Class Hierarchy This Package Previous Next Index
Class netbula.ORPC.RPCClient
java.lang.Object
|
+----netbula.ORPC.RPCClient
- public abstract class RPCClient
- extends Object
Abstract base class of all RPC client classes.
-
RPCClient()
-
-
RPCClient(InetAddress, int, int, int, int)
- Construct an RPC client binding to a server specified by the parameters.
-
RPCClient(String, int, int, int, int)
- Construct an RPC client binding to a server specified by the parameters.
-
call(int, XDT, XDT)
- Call an RPC procedure.
-
call_proc0()
- Ping the server by calling procedure 0
-
close()
- Close the connection to the RPC server.
-
connect()
- Connect to the RPC server.
-
finalize()
-
-
getAuth()
- Get the authenticator for this RPC connection
-
getServerPort()
- Get server's port number.
-
setAuth(Auth)
- Set the authenticator for this RPC connection
-
setServer(String, int)
- Closes existing connection and connect to another server.
-
setTimeout(int)
- Set the timeout value for the RPC calls
RPCClient
public RPCClient()
RPCClient
public RPCClient(InetAddress servAdd,
int proto,
int port,
int prog,
int ver) throws rpc_err
- Construct an RPC client binding to a server specified by the parameters.
- Parameters:
- servAdd - RPC server's internet address
- proto - Protocol
- port - Server port
- prog - Server program number
- ver - Server version number
RPCClient
public RPCClient(String host,
int proto,
int port,
int prog,
int ver) throws rpc_err
- Construct an RPC client binding to a server specified by the parameters.
- Parameters:
- string - RPC server's hostname
- proto - Protocol
- port - Server port
- prog - Server program number
- ver - Server version number
setAuth
public void setAuth(Auth au)
- Set the authenticator for this RPC connection
- See Also:
- Auth
getAuth
public Auth getAuth()
- Get the authenticator for this RPC connection
- See Also:
- Auth
connect
public abstract boolean connect() throws rpc_err
- Connect to the RPC server.
close
public abstract boolean close()
- Close the connection to the RPC server.
setServer
public void setServer(String host,
int proto) throws rpc_err
- Closes existing connection and connect to another server.
- Parameters:
- host - Server hostname
- proto - Protocol
getServerPort
public int getServerPort()
- Get server's port number.
Call this function on a connected client object only.
- Returns:
- Server's port
call_proc0
public void call_proc0() throws rpc_err
- Ping the server by calling procedure 0
call
public abstract void call(int proc,
XDT inarg,
XDT outarg) throws rpc_err
- Call an RPC procedure.
- Parameters:
- proc - Procedure number
- inarg - Input argument to be sent over
- outarg - Output argument to hold results from server
setTimeout
public int setTimeout(int timeout)
- Set the timeout value for the RPC calls
- Parameters:
- timeout - Timeout value in milliseconds.
finalize
protected void finalize()
- Overrides:
- finalize in class Object
All Packages Class Hierarchy This Package Previous Next Index