net.sourceforge.esw.transport
Class RMINamespaceDelegate
java.lang.Object
|
+--net.sourceforge.esw.transport.RMINamespaceDelegate
- All Implemented Interfaces:
- INamespaceDelegate
- public class RMINamespaceDelegate
- extends java.lang.Object
- implements INamespaceDelegate
This class is delegate for the namepace system. Implement is to provide
a different transport layer.
This implementation is responsible for RMI transport.
Method Summary |
void |
bind(java.lang.String aName,
java.lang.Object aObject)
Binds the specified Object to the Specified name in this VM's Namespace. |
void |
bind(java.lang.String aName,
java.lang.Object aObject,
java.lang.String aHost,
java.lang.String aPort)
Binds the specified Object to the Specified name in the specified hosts
VM's Namespace. |
java.lang.Object |
lookup(java.lang.String aHost,
java.lang.String aPort,
java.lang.String aName)
Performs a Peer to Peer lookup of a Object at the speicied host, the
port on that host, and the name the object is bound to on that host. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RMINamespaceDelegate
public RMINamespaceDelegate()
bind
public void bind(java.lang.String aName,
java.lang.Object aObject)
throws java.lang.Exception
- Binds the specified Object to the Specified name in this VM's Namespace.
- Specified by:
bind
in interface INamespaceDelegate
- Parameters:
aName
- the name with which to bind the specified object.aObject
- the Object to bind to the specified name.- Throws:
java.lang.Exception
- if there is an error during the binding of the specified
object.
bind
public void bind(java.lang.String aName,
java.lang.Object aObject,
java.lang.String aHost,
java.lang.String aPort)
throws java.lang.Exception
- Binds the specified Object to the Specified name in the specified hosts
VM's Namespace.
- Specified by:
bind
in interface INamespaceDelegate
- Parameters:
aName
- the name with which to bind the specified object.aObject
- the Object to bind to the specified name.aHost
- the name of the host with which to bind the specified object.aPort
- the port of the host with which to bind the specified object.- Throws:
java.lang.Exception
- if there is an error during the binding of the specified
object.
lookup
public java.lang.Object lookup(java.lang.String aHost,
java.lang.String aPort,
java.lang.String aName)
throws java.lang.Exception
- Performs a Peer to Peer lookup of a Object at the speicied host, the
port on that host, and the name the object is bound to on that host.
- Specified by:
lookup
in interface INamespaceDelegate
- Parameters:
aHost
- the name of the host with which to find the specified object.aPort
- the port of the host with which to find the specified object.aName
- the name with which to find the specified object.- Throws:
java.lang.Exception
- id there is an error during the lookup of the object.
Copyright 2002 Free Software Foundation. All Rights Reserved.