All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class distinct.rpc.RPCBind

java.lang.Object
   |
   +----distinct.rpc.JRPCServer
           |
           +----distinct.rpc.RPCBind

public class RPCBind
extends JRPCServer
The RPCBind server


Variable Index

 o RPCB_PORT
 o RPCBPROC_BCAST
 o RPCBPROC_CALLIT
 o RPCBPROC_DUMP
 o RPCBPROC_GETADDR
 o RPCBPROC_GETADDRLIST
 o RPCBPROC_GETSTAT
 o RPCBPROC_GETTIME
 o RPCBPROC_GETVERSADDR
 o RPCBPROC_INDIRECT
 o RPCBPROC_SET
 o RPCBPROC_TADDR2UADDR
 o RPCBPROC_UADDR2TADDR
 o RPCBPROC_UNSET
 o RPCBPROG
Program ID of the interface.
 o RPCBSTAT_HIGHPROC
 o RPCBVERS
Version ID of the interface.
 o RPCBVERS4
Version ID of the interface.
 o RPCBVERS_2_STAT
 o RPCBVERS_3_STAT
 o RPCBVERS_4_STAT
 o RPCBVERS_STAT

Constructor Index

 o RPCBind()
Constructor that creates and starts the RPCBind service.

Method Index

 o DoAuth(int, Auth, Auth)
Overwrite this method only if you want your server to check authentication (Default are no checks).
 o DoCall(int, XDRStream, XDRStream)
Dispatcher Routine that interpretes the call requests.
 o DoVersionCheck(int)
Overwrite this method only if you want your server to handle versions explicitly (by default the version of server and request have to be identical).
 o IsBatched(int)
Overwrite this method only if you want to implement batched RPCs.
 o main(String[])
Starts a stand-alone RPCBind service (no parameters).

Variables

 o RPCB_PORT
 public static final int RPCB_PORT
 o RPCBSTAT_HIGHPROC
 public static final int RPCBSTAT_HIGHPROC
 o RPCBVERS_STAT
 public static final int RPCBVERS_STAT
 o RPCBVERS_4_STAT
 public static final int RPCBVERS_4_STAT
 o RPCBVERS_3_STAT
 public static final int RPCBVERS_3_STAT
 o RPCBVERS_2_STAT
 public static final int RPCBVERS_2_STAT
 o RPCBPROG
 public static final int RPCBPROG
Program ID of the interface.

 o RPCBVERS
 public static final int RPCBVERS
Version ID of the interface.

 o RPCBPROC_SET
 public static final int RPCBPROC_SET
 o RPCBPROC_UNSET
 public static final int RPCBPROC_UNSET
 o RPCBPROC_GETADDR
 public static final int RPCBPROC_GETADDR
 o RPCBPROC_DUMP
 public static final int RPCBPROC_DUMP
 o RPCBPROC_CALLIT
 public static final int RPCBPROC_CALLIT
 o RPCBPROC_GETTIME
 public static final int RPCBPROC_GETTIME
 o RPCBPROC_UADDR2TADDR
 public static final int RPCBPROC_UADDR2TADDR
 o RPCBPROC_TADDR2UADDR
 public static final int RPCBPROC_TADDR2UADDR
 o RPCBVERS4
 public static final int RPCBVERS4
Version ID of the interface.

 o RPCBPROC_BCAST
 public static final int RPCBPROC_BCAST
 o RPCBPROC_GETVERSADDR
 public static final int RPCBPROC_GETVERSADDR
 o RPCBPROC_INDIRECT
 public static final int RPCBPROC_INDIRECT
 o RPCBPROC_GETADDRLIST
 public static final int RPCBPROC_GETADDRLIST
 o RPCBPROC_GETSTAT
 public static final int RPCBPROC_GETSTAT

Constructors

 o RPCBind
 public RPCBind() throws RPCError
Constructor that creates and starts the RPCBind service. If another already running RPCBind is detected on the local host, creation is aborted.

Throws: RPCError
If the RPCBBind could not be started.

Methods

 o main
 public static void main(String args[])
Starts a stand-alone RPCBind service (no parameters).

 o DoCall
 public synchronized boolean DoCall(int proc,
                                    XDRStream xin,
                                    XDRStream xout)
Dispatcher Routine that interpretes the call requests.

Parameters:
proc - The index of the requested function.
xin - read the input-parameter from this XDR stream.
xout - write the return-parameter to this XDR stream.
Returns:
true, if the function with the index proc can be served, false otherwise.
Overrides:
DoCall in class JRPCServer
 o DoVersionCheck
 public synchronized boolean DoVersionCheck(int vers)
Overwrite this method only if you want your server to handle versions explicitly (by default the version of server and request have to be identical).

Parameters:
vers - Version of the server requested by the call.
Returns:
True if the call is accepted, else false.
Overrides:
DoVersionCheck in class JRPCServer
 o DoAuth
 public synchronized Auth DoAuth(int proc,
                                 Auth cred,
                                 Auth verf) throws RPCError
Overwrite this method only if you want your server to check authentication (Default are no checks). Throw an RPCAuthError exception to indicate an authentication failure.

Parameters:
proc - The ID of the requested function.
cred - Authentication parameter provided by the client.
verf - Verifier parameter provided by the client.
Returns:
Verifier to send back to the client with the response ("null" means AuthNull).
Throws: RPCError
If the authentication fails.
Overrides:
DoAuth in class JRPCServer
 o IsBatched
 public boolean IsBatched(int proc)
Overwrite this method only if you want to implement batched RPCs. Return true for all procedures that are called in batched mode (i.e. no reply message).

Parameters:
proc - The ID of the executed function.
Returns:
true if the procedure is called in batched mode.
Overrides:
IsBatched in class JRPCServer

All Packages  Class Hierarchy  This Package  Previous  Next  Index