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




Field Summary
 final static StringRMIREGISTRY_NAME
           

Constructor Summary
RMIAgentNamingServiceImpl(URL url)
          Constructs the NS

Method Summary
 synchronized voidbind(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.MTSlookup(String name)
          Attempts to lookup the given AgentGUID & return the corresponding
MTS RMI "server"
 static voidmain(String[] args)
           
 synchronized voidunbind(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

Field Detail

RMIREGISTRY_NAME

public final static String RMIREGISTRY_NAME
Constructor Detail

RMIAgentNamingServiceImpl

public RMIAgentNamingServiceImpl(URL url)
throws java.rmi.RemoteException
Constructs the NS
Parameters:
URL - to be used to locate RMIRegistry
Method Detail

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

Association Links

to Class java.lang.String

to Class fipaos.skill.db.Database

Database to hold Agent references