public final class AFUNIXNaming
extends java.lang.Object
AFUNIXSocket-compatible equivalent of Naming. Use this
class for accessing RMI registries that are reachable by AFUNIXSocket
s.| Modifier and Type | Method and Description |
|---|---|
void |
bind(java.lang.String name,
java.rmi.Remote obj) |
java.rmi.registry.Registry |
createRegistry() |
static AFUNIXNaming |
getInstance()
Returns the default instance of
AFUNIXNaming. |
static AFUNIXNaming |
getInstance(java.io.File socketDir)
Returns the
|
static AFUNIXNaming |
getInstance(java.io.File socketDir,
int registryPort) |
PortAssigner |
getPortAssigner() |
java.rmi.registry.Registry |
getRegistry() |
int |
getRegistryPort() |
java.io.File |
getRegistrySocketDir() |
static AFUNIXNaming |
getSingleFileInstance(java.io.File socketFile)
Returns an
AFUNIXNaming instance which only supports one file. |
AFUNIXRMISocketFactory |
getSocketFactory() |
java.rmi.Remote |
lookup(java.lang.String name) |
void |
rebind(java.lang.String name,
java.rmi.Remote obj) |
void |
shutdownRegistry()
Shuts this RMI Registry down.
|
void |
unbind(java.lang.String name) |
public static AFUNIXNaming getInstance() throws java.io.IOException
AFUNIXNaming. Sockets are stored
in java.io.tmpdir.java.io.IOExceptionpublic static AFUNIXNaming getSingleFileInstance(java.io.File socketFile) throws java.io.IOException
AFUNIXNaming instance which only supports one file.
(Probably only useful when you want/can access the exported
UnicastRemoteObject directly)socketFile - java.io.IOExceptionpublic static AFUNIXNaming getInstance(java.io.File socketDir) throws java.rmi.RemoteException
socketDir - java.rmi.RemoteExceptionpublic static AFUNIXNaming getInstance(java.io.File socketDir, int registryPort) throws java.rmi.RemoteException
java.rmi.RemoteExceptionpublic AFUNIXRMISocketFactory getSocketFactory()
public java.io.File getRegistrySocketDir()
public int getRegistryPort()
public PortAssigner getPortAssigner() throws java.rmi.RemoteException, java.rmi.NotBoundException
java.rmi.RemoteExceptionjava.rmi.NotBoundExceptionpublic java.rmi.registry.Registry getRegistry()
throws java.rmi.RemoteException
java.rmi.RemoteExceptionpublic java.rmi.Remote lookup(java.lang.String name)
throws java.rmi.NotBoundException,
java.net.MalformedURLException,
java.rmi.RemoteException
java.rmi.NotBoundExceptionjava.net.MalformedURLExceptionjava.rmi.RemoteExceptionpublic void unbind(java.lang.String name)
throws java.rmi.RemoteException,
java.rmi.NotBoundException,
java.net.MalformedURLException
java.rmi.RemoteExceptionjava.rmi.NotBoundExceptionjava.net.MalformedURLExceptionpublic void bind(java.lang.String name,
java.rmi.Remote obj)
throws java.rmi.AlreadyBoundException,
java.net.MalformedURLException,
java.rmi.RemoteException
java.rmi.AlreadyBoundExceptionjava.net.MalformedURLExceptionjava.rmi.RemoteExceptionpublic void rebind(java.lang.String name,
java.rmi.Remote obj)
throws java.net.MalformedURLException,
java.rmi.RemoteException
java.net.MalformedURLExceptionjava.rmi.RemoteExceptionpublic void shutdownRegistry()
throws java.rmi.AccessException,
java.rmi.RemoteException,
java.io.IOException
java.rmi.AccessExceptionjava.rmi.RemoteExceptionjava.io.IOExceptionpublic java.rmi.registry.Registry createRegistry()
throws java.rmi.RemoteException
java.rmi.RemoteException