Class Overview
A Registry that consists of a single entry that never changes.
Summary
Public Methods |
void
|
bind(String name, Remote obj)
Binds the name to the specified remote object.
|
String[]
|
list()
Returns an enumeration of the names in the registry.
|
Remote
|
lookup(String name)
Returns the remote object for specified name in the registry.
|
void
|
rebind(String name, Remote obj)
Rebind the name to a new object, replaces any existing binding.
|
void
|
unbind(String name)
Unbind the name.
|
[Expand]
Inherited Methods |
From class
sun.rmi.registry.RegistryImpl
|
From class
java.rmi.server.RemoteServer
static
String
|
getClientHost()
Returns a string representation of the client host for the
remote method invocation being processed in the current thread.
|
static
PrintStream
|
getLog()
Returns stream for the RMI call log.
|
static
void
|
setLog(OutputStream out)
Log RMI calls to the output stream out .
|
|
From class
java.rmi.server.RemoteObject
boolean
|
equals(Object obj)
Compares two remote objects for equality.
|
RemoteRef
|
getRef()
Returns the remote reference for the remote object.
|
int
|
hashCode()
Returns a hashcode for a remote object.
|
String
|
toString()
Returns a String that represents the value of this remote object.
|
static
Remote
|
toStub(Remote obj)
Returns the stub for the remote object obj passed
as a parameter.
|
|
From class
java.lang.Object
Object
|
clone()
Creates and returns a copy of this object.
|
boolean
|
equals(Object obj)
Indicates whether some other object is "equal to" this one.
|
void
|
finalize()
Called by the garbage collector on an object when garbage collection
determines that there are no more references to the object.
|
final
Class<?>
|
getClass()
Returns the runtime class of this Object .
|
int
|
hashCode()
Returns a hash code value for the object.
|
final
void
|
notify()
Wakes up a single thread that is waiting on this object's
monitor.
|
final
void
|
notifyAll()
Wakes up all threads that are waiting on this object's monitor.
|
String
|
toString()
Returns a string representation of the object.
|
final
void
|
wait()
Causes the current thread to wait until another thread invokes the
notify() method or the
notifyAll() method for this object.
|
final
void
|
wait(long timeout, int nanos)
Causes the current thread to wait until another thread invokes the
notify() method or the
notifyAll() method for this object, or
some other thread interrupts the current thread, or a certain
amount of real time has elapsed.
|
final
void
|
wait(long timeout)
Causes the current thread to wait until either another thread invokes the
notify() method or the
notifyAll() method for this object, or a
specified amount of time has elapsed.
|
|
From interface
java.rmi.registry.Registry
abstract
void
|
bind(String name, Remote obj)
Binds a remote reference to the specified name in
this registry.
|
abstract
String[]
|
list()
Returns an array of the names bound in this registry.
|
abstract
Remote
|
lookup(String name)
Returns the remote reference bound to the specified
name in this registry.
|
abstract
void
|
rebind(String name, Remote obj)
Replaces the binding for the specified name in
this registry with the supplied remote reference.
|
abstract
void
|
unbind(String name)
Removes the binding for the specified name in
this registry.
|
|
Public Methods
public
void
bind
(String name, Remote obj)
Binds the name to the specified remote object.
Parameters
name
| the name to associate with the remote reference |
obj
| a reference to a remote object (usually a stub) |
Returns an enumeration of the names in the registry.
Returns
- an array of the names bound in this registry
Returns the remote object for specified name in the registry.
Parameters
name
| the name for the remote reference to look up |
Returns
- a reference to a remote object
public
void
rebind
(String name, Remote obj)
Rebind the name to a new object, replaces any existing binding.
Parameters
name
| the name to associate with the remote reference |
obj
| a reference to a remote object (usually a stub) |
public
void
unbind
(String name)
Parameters
name
| the name of the binding to remove |