fipaos.mts.rmi.internal.ns
Class RMIAgentNamingServiceImpl
java.lang.Object
|
+--java.rmi.server.RemoteObject
|
+--java.rmi.server.RemoteServer
|
+--java.rmi.server.UnicastRemoteObject
|
+--fipaos.mts.rmi.internal.ns.RMIAgentNamingServiceImpl
- All Implemented Interfaces:
- java.rmi.Remote, RMIAgentNamingService, java.io.Serializable
- public class RMIAgentNamingServiceImpl
- extends java.rmi.server.UnicastRemoteObject
- implements RMIAgentNamingService
This class provides a NamingService implementation for RMIComms
- See Also:
- Serialized Form
Fields inherited from class java.rmi.server.RemoteObject |
ref |
Method Summary |
void |
bind(java.lang.String name,
MTS server)
Attempts to (re)bind the given name against the given
FIPA_Agent_97 RMI "server" |
MTS |
lookup(java.lang.String name)
Attempts to lookup the given AgentGUID & return the corresponding
MTS RMI "server" |
static void |
main(java.lang.String[] args)
|
void |
unbind(java.lang.String name)
Attempts to unbind the given name from its
MTS RMI "server" |
Methods inherited from class java.rmi.server.UnicastRemoteObject |
clone, exportObject, exportObject, exportObject, unexportObject |
Methods inherited from class java.rmi.server.RemoteServer |
getClientHost, getLog, setLog |
Methods inherited from class java.rmi.server.RemoteObject |
equals, getRef, hashCode, toString, toStub |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
RMIREGISTRY_NAME
public static final java.lang.String RMIREGISTRY_NAME
RMIAgentNamingServiceImpl
public RMIAgentNamingServiceImpl(URL url)
throws java.rmi.RemoteException
- Constructs the NS
- Parameters:
URL
- to be used to locate RMIRegistry
lookup
public MTS lookup(java.lang.String name)
throws java.rmi.RemoteException
- Attempts to lookup the given AgentGUID & return the corresponding
MTS RMI "server"
- Specified by:
lookup
in interface RMIAgentNamingService
- Parameters:
name
- Name to resolve- Returns:
- MTS object registered against the name, or null
bind
public void bind(java.lang.String name,
MTS server)
throws java.rmi.RemoteException
- Attempts to (re)bind the given name against the given
FIPA_Agent_97 RMI "server"
- Specified by:
bind
in interface RMIAgentNamingService
- Parameters:
name
- Name to bind againstserver
- FIPA_Agent_97 to bind
unbind
public void unbind(java.lang.String name)
throws java.rmi.RemoteException
- Attempts to unbind the given name from its
MTS RMI "server"
- Specified by:
unbind
in interface RMIAgentNamingService
- Parameters:
name
- Name to unbind
main
public static void main(java.lang.String[] args)
throws java.lang.Exception