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
-
NetDB(File)
- Creates a new RPC service name database and initializes it
from a local file.
-
NetDB(URL)
- Creates a new RPC service name database and initializes it
from a URL.
-
getrpcbyname(String)
- Returns an RPCEntry describing the service identified by a given name.
-
getrpcbynumber(int)
- Returns an RPCEntry describing the service identified by a given number.
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.
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.
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).
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