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
-
RPCB_PORT
-
-
RPCBPROC_BCAST
-
-
RPCBPROC_CALLIT
-
-
RPCBPROC_DUMP
-
-
RPCBPROC_GETADDR
-
-
RPCBPROC_GETADDRLIST
-
-
RPCBPROC_GETSTAT
-
-
RPCBPROC_GETTIME
-
-
RPCBPROC_GETVERSADDR
-
-
RPCBPROC_INDIRECT
-
-
RPCBPROC_SET
-
-
RPCBPROC_TADDR2UADDR
-
-
RPCBPROC_UADDR2TADDR
-
-
RPCBPROC_UNSET
-
-
RPCBPROG
- Program ID of the interface.
-
RPCBSTAT_HIGHPROC
-
-
RPCBVERS
- Version ID of the interface.
-
RPCBVERS4
- Version ID of the interface.
-
RPCBVERS_2_STAT
-
-
RPCBVERS_3_STAT
-
-
RPCBVERS_4_STAT
-
-
RPCBVERS_STAT
-
-
RPCBind()
- Constructor that creates and starts the RPCBind service.
-
DoAuth(int, Auth, Auth)
- Overwrite this method only if you want your server to check authentication (Default are no checks).
-
DoCall(int, XDRStream, XDRStream)
- Dispatcher Routine that interpretes the call requests.
-
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).
-
IsBatched(int)
- Overwrite this method only if you want to implement batched RPCs.
-
main(String[])
- Starts a stand-alone RPCBind service (no parameters).
RPCB_PORT
public static final int RPCB_PORT
RPCBSTAT_HIGHPROC
public static final int RPCBSTAT_HIGHPROC
RPCBVERS_STAT
public static final int RPCBVERS_STAT
RPCBVERS_4_STAT
public static final int RPCBVERS_4_STAT
RPCBVERS_3_STAT
public static final int RPCBVERS_3_STAT
RPCBVERS_2_STAT
public static final int RPCBVERS_2_STAT
RPCBPROG
public static final int RPCBPROG
- Program ID of the interface.
RPCBVERS
public static final int RPCBVERS
- Version ID of the interface.
RPCBPROC_SET
public static final int RPCBPROC_SET
RPCBPROC_UNSET
public static final int RPCBPROC_UNSET
RPCBPROC_GETADDR
public static final int RPCBPROC_GETADDR
RPCBPROC_DUMP
public static final int RPCBPROC_DUMP
RPCBPROC_CALLIT
public static final int RPCBPROC_CALLIT
RPCBPROC_GETTIME
public static final int RPCBPROC_GETTIME
RPCBPROC_UADDR2TADDR
public static final int RPCBPROC_UADDR2TADDR
RPCBPROC_TADDR2UADDR
public static final int RPCBPROC_TADDR2UADDR
RPCBVERS4
public static final int RPCBVERS4
- Version ID of the interface.
RPCBPROC_BCAST
public static final int RPCBPROC_BCAST
RPCBPROC_GETVERSADDR
public static final int RPCBPROC_GETVERSADDR
RPCBPROC_INDIRECT
public static final int RPCBPROC_INDIRECT
RPCBPROC_GETADDRLIST
public static final int RPCBPROC_GETADDRLIST
RPCBPROC_GETSTAT
public static final int RPCBPROC_GETSTAT
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.
main
public static void main(String args[])
- Starts a stand-alone RPCBind service (no parameters).
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
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
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
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