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.


Constructor Index

 o RPCClient()
 o RPCClient(InetAddress, int, int, int, int)
Construct an RPC client binding to a server specified by the parameters.
 o RPCClient(String, int, int, int, int)
Construct an RPC client binding to a server specified by the parameters.

Method Index

 o call(int, XDT, XDT)
Call an RPC procedure.
 o call_proc0()
Ping the server by calling procedure 0
 o close()
Close the connection to the RPC server.
 o connect()
Connect to the RPC server.
 o finalize()
 o getAuth()
Get the authenticator for this RPC connection
 o getServerPort()
Get server's port number.
 o setAuth(Auth)
Set the authenticator for this RPC connection
 o setServer(String, int)
Closes existing connection and connect to another server.
 o setTimeout(int)
Set the timeout value for the RPC calls

Constructors

 o RPCClient
 public RPCClient()
 o 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
 o 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

Methods

 o setAuth
 public void setAuth(Auth au)
Set the authenticator for this RPC connection

See Also:
Auth
 o getAuth
 public Auth getAuth()
Get the authenticator for this RPC connection

See Also:
Auth
 o connect
 public abstract boolean connect() throws rpc_err
Connect to the RPC server.

 o close
 public abstract boolean close()
Close the connection to the RPC server.

 o 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
 o getServerPort
 public int getServerPort()
Get server's port number. Call this function on a connected client object only.

Returns:
Server's port
 o call_proc0
 public void call_proc0() throws rpc_err
Ping the server by calling procedure 0

 o 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
 o setTimeout
 public int setTimeout(int timeout)
Set the timeout value for the RPC calls

Parameters:
timeout - Timeout value in milliseconds.
 o finalize
 protected void finalize()
Overrides:
finalize in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index