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
- public class RMIAgentNamingServiceImpl
- extends UnicastRemoteObject
- implements RMIAgentNamingService
This class provides a NamingService implementation for RMIComms
Method Summary |
synchronized void | bind(String name, fipaos.mts.rmi.internal.MTS server) Attempts to (re)bind the given name against the given
FIPA_Agent_97 RMI "server" |
synchronized fipaos.mts.rmi.internal.MTS | lookup(String name) Attempts to lookup the given AgentGUID & return the corresponding
MTS RMI "server" |
static void | main(String[] args) |
synchronized void | unbind(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, setLog, getLog |
Methods inherited from class java.rmi.server.RemoteObject |
getRef, toStub, hashCode, equals, toString |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
RMIREGISTRY_NAME
public final static String RMIREGISTRY_NAME
RMIAgentNamingServiceImpl
public RMIAgentNamingServiceImpl(URL url)
throws java.rmi.RemoteException
- Constructs the NS
- Parameters:
- URL - to be used to locate RMIRegistry
bind
public synchronized void bind(String name, fipaos.mts.rmi.internal.MTS server)
throws java.rmi.RemoteException
- Attempts to (re)bind the given name against the given
FIPA_Agent_97 RMI "server"
- Parameters:
- name - Name to bind against
- server - FIPA_Agent_97 to bind
lookup
public synchronized fipaos.mts.rmi.internal.MTS lookup(String name)
throws java.rmi.RemoteException
- Attempts to lookup the given AgentGUID & return the corresponding
MTS RMI "server"
- Parameters:
- name - Name to resolve
- Returns: MTS object registered against the name, or null
main
public static void main(String[] args)
throws java.lang.Exception
unbind
public synchronized void unbind(String name)
throws java.rmi.RemoteException
- Attempts to unbind the given name from its
MTS RMI "server"
- Parameters:
- name - Name to unbind
to Class java.lang.String
to Class fipaos.skill.db.Database
- Database to hold Agent references