com.sun.jini.mahout
Interface RegistryAdmin
- public abstract interface RegistryAdmin
Administrative interface for controlling whether or not a service will
bind itself into the RMI registry and how.
Method Summary |
void |
enableRegistryBinding(java.lang.String name,
int port)
Enable binding of the service into the RMI registry. |
enableRegistryBinding
public void enableRegistryBinding(java.lang.String name,
int port)
throws java.io.IOException
- Enable binding of the service into the RMI registry. If the
service is persistent it should also rebind itself into
registry when restarted.
This method will typically spawn a separate thread to do the
actual work asynchronously, so a successful return from this
method usually does not mean the service has finished the
process of binding itself RMI registry, just that it will in
the future if an appropriate registry exists.
- Parameters:
name
- The name bind itself underport
- The port to look for the registry on.- Throws:
- java.lang.IllegalArgumentException - if name is
null
- java.lang.IllegalStateException - if binding into
RMI registry has already been enabled.
Copyright © 1999 Sun Microsystems, Inc. All rights reserved