|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.newsclub.net.unix.rmi.AFUNIXNaming
public final class AFUNIXNaming
The AFUNIXSocket
-compatible equivalent of Naming
. Use this
class for accessing RMI registries that are reachable by AFUNIXSocket
s.
Method Summary | |
---|---|
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static AFUNIXNaming getInstance() throws java.io.IOException
AFUNIXNaming
. Sockets are stored
in java.io.tmpdir
.
java.io.IOException
public 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.IOException
public static AFUNIXNaming getInstance(java.io.File socketDir) throws java.rmi.RemoteException
socketDir
-
java.rmi.RemoteException
public static AFUNIXNaming getInstance(java.io.File socketDir, int registryPort) throws java.rmi.RemoteException
java.rmi.RemoteException
public AFUNIXRMISocketFactory getSocketFactory()
public java.io.File getRegistrySocketDir()
public int getRegistryPort()
public PortAssigner getPortAssigner() throws java.rmi.RemoteException, java.rmi.NotBoundException
java.rmi.RemoteException
java.rmi.NotBoundException
public java.rmi.registry.Registry getRegistry() throws java.rmi.RemoteException
java.rmi.RemoteException
public java.rmi.Remote lookup(java.lang.String name) throws java.rmi.NotBoundException, java.net.MalformedURLException, java.rmi.RemoteException
java.rmi.NotBoundException
java.net.MalformedURLException
java.rmi.RemoteException
public void unbind(java.lang.String name) throws java.rmi.RemoteException, java.rmi.NotBoundException, java.net.MalformedURLException
java.rmi.RemoteException
java.rmi.NotBoundException
java.net.MalformedURLException
public void bind(java.lang.String name, java.rmi.Remote obj) throws java.rmi.AlreadyBoundException, java.net.MalformedURLException, java.rmi.RemoteException
java.rmi.AlreadyBoundException
java.net.MalformedURLException
java.rmi.RemoteException
public void rebind(java.lang.String name, java.rmi.Remote obj) throws java.net.MalformedURLException, java.rmi.RemoteException
java.net.MalformedURLException
java.rmi.RemoteException
public void shutdownRegistry() throws java.rmi.AccessException, java.rmi.RemoteException, java.io.IOException
java.rmi.AccessException
java.rmi.RemoteException
java.io.IOException
public java.rmi.registry.Registry createRegistry() throws java.rmi.RemoteException
java.rmi.RemoteException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |