All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class distinct.rpc.NetDB

java.lang.Object
   |
   +----distinct.rpc.NetDB

public class NetDB
extends Object
Database for RPC service names.

See Also:
RPCEntry

Constructor Index

 o NetDB(File)
Creates a new RPC service name database and initializes it from a local file.
 o NetDB(URL)
Creates a new RPC service name database and initializes it from a URL.

Method Index

 o getrpcbyname(String)
Returns an RPCEntry describing the service identified by a given name.
 o getrpcbynumber(int)
Returns an RPCEntry describing the service identified by a given number.

Constructors

 o NetDB
 public NetDB(File file) throws IOException
Creates a new RPC service name database and initializes it from a local file. The file has the format of the UNIX "rpc" file.

Parameters:
file - The file that is used for initialization.
 o NetDB
 public NetDB(URL url) throws IOException
Creates a new RPC service name database and initializes it from a URL. The content of the URL has the format of the UNIX "rpc" file.

Parameters:
url - The URL that is used for initialization.

Methods

 o getrpcbynumber
 public RPCEntry getrpcbynumber(int number)
Returns an RPCEntry describing the service identified by a given number.

Parameters:
number - The number of the requested RPC service.
Returns:
The RPCEntry describing the service identified by the given number (null if no info is avaliable).
 o getrpcbyname
 public RPCEntry getrpcbyname(String name)
Returns an RPCEntry describing the service identified by a given name.

Parameters:
name - The name of the requested RPC service.
Returns:
The RPCEntry describing the service identified by the given name (null if no info is avaliable).

All Packages  Class Hierarchy  This Package  Previous  Next  Index