All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class distinct.rpc.Portmapper

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

public class Portmapper
extends JRPCServer
The RPC Portmapper


Constructor Index

 o Portmapper()
Constructor that creates and starts the portmapper 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 handles the call requests.
 o IsBatched(int)
Overwrite this method only if you want to implement batched RPCs.
 o main(String[])
Starts a stand-alone portmapper service (no parameters).

Constructors

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

Throws: RPCError
If the portmapper could not be started.

Methods

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

 o DoCall
 public synchronized boolean DoCall(int proc,
                                    XDRStream in,
                                    XDRStream out)
Dispatcher Routine that handles the call requests.

Parameters:
proc - The index of the requested function.
in - read the input-parameter from this XDR stream.
out - 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 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