|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.objectweb.fractal.rmi.registry.Registry
public class Registry
Provides static methods to launch and get access to a Fractal registry.
| Field Summary | |
|---|---|
static int |
DEFAULT_PORT
The default port used to export the naming service interface. |
| Method Summary | |
|---|---|
static org.objectweb.fractal.api.Component |
createRegistry(int port)
Creates NamingService component and exports its server interface. |
static org.objectweb.fractal.api.Component |
createRegistry(int port,
java.lang.ClassLoader cl)
Returns a reference to the NamingService on the given host and
port. |
static org.objectweb.fractal.api.Component |
createRegistry(int port,
java.util.Map hints)
Creates NamingService component, using the provided
context/hints, and exports its server interface. |
static NamingService |
getRegistry()
Returns a reference to the NamingService on the local host, for
the default port. |
static NamingService |
getRegistry(java.lang.String host)
Returns a reference to the NamingService on the given host, for
the default port. |
static NamingService |
getRegistry(java.lang.String host,
int port)
Returns a reference to the NamingService on the given host and
port. |
static NamingService |
getRegistry(java.lang.String host,
int port,
java.lang.ClassLoader cl)
Returns a reference to the NamingService on the given host and
port. |
static NamingService |
getRegistry(java.lang.String host,
int port,
java.util.Map hints)
Returns a reference to the NamingService on the given host and
port. |
static NamingService |
getRegistry(java.lang.String host,
int port,
NamingContext binder)
Returns a reference to the NamingService on the given host and
port. |
static NamingService |
getRegistry(java.lang.String host,
NamingContext binder)
Returns a reference to the NamingService on the given host, for
the default port. |
static org.objectweb.fractal.api.Component |
getRegistryComponent(java.lang.String host,
int port,
java.lang.ClassLoader cl)
|
static org.objectweb.fractal.api.Component |
getRegistryComponent(java.lang.String host,
int port,
java.util.Map hints)
|
static void |
main(java.lang.String[] args)
Launches a Fractal registry on the local host. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int DEFAULT_PORT
| Method Detail |
|---|
public static void main(java.lang.String[] args)
throws java.lang.Exception
args - a single argument setting the port number where to pick the
naming service interface.
java.lang.Exception - if something goes wrong.
public static org.objectweb.fractal.api.Component createRegistry(int port)
throws java.lang.Exception
NamingService component and exports its server interface.
port - the port number to be used to export the naming service
interface.
java.lang.Exception - if something goes wrong.
public static org.objectweb.fractal.api.Component createRegistry(int port,
java.util.Map hints)
throws java.lang.Exception
NamingService component, using the provided
context/hints, and exports its server interface.
port - the port number to be used to export the naming service
interface.hints - context/hints used when getting the factory, creating the ORB
component and getting the bootstrap component
java.lang.Exception - if something goes wrong.FactoryFactory.getFactory(java.lang.String, java.util.Map),
Factory.newComponent(java.lang.String, java.util.Map),
Fractal.getBootstrapComponent(java.util.Map)
public static org.objectweb.fractal.api.Component createRegistry(int port,
java.lang.ClassLoader cl)
throws java.lang.Exception
NamingService on the given host and
port.
host - the host where the naming service is located.port - the port that was used to export the naming service on the
given host.cl - a class loader
NamingService on the given host and
port.
java.lang.Exception - if something goes wrong.
public static NamingService getRegistry()
throws java.lang.Exception
NamingService on the local host, for
the default port.
NamingService on the local host, for
the default port.
java.lang.Exception - if something goes wrong.
public static NamingService getRegistry(java.lang.String host)
throws java.lang.Exception
NamingService on the given host, for
the default port.
host - the host where the naming service is located.
NamingService on the given host, for
the default port.
java.lang.Exception - if something goes wrong.
public static NamingService getRegistry(java.lang.String host,
int port)
throws java.lang.Exception
NamingService on the given host and
port.
host - the host where the naming service is located.port - the port that was used to export the naming service on the
given host.
NamingService on the given host and
port.
java.lang.Exception - if something goes wrong.
public static NamingService getRegistry(java.lang.String host,
int port,
java.lang.ClassLoader cl)
throws java.lang.Exception
NamingService on the given host and
port.
host - the host where the naming service is located.port - the port that was used to export the naming service on the
given host.class - loader a class loader used by this ORB
NamingService on the given host and
port.
java.lang.Exception - if something goes wrong.
public static NamingService getRegistry(java.lang.String host,
int port,
java.util.Map hints)
throws java.lang.Exception
NamingService on the given host and
port.
host - the host where the naming service is located.port - the port that was used to export the naming service on the
given host.hints - hints
NamingService on the given host and
port.
java.lang.Exception - if something goes wrong.
public static NamingService getRegistry(java.lang.String host,
NamingContext binder)
throws JonathanException
NamingService on the given host, for
the default port.
host - the host where the naming service is located.binder - the binder to be used to create the binding to the naming
service interface.
NamingService on the given host, for
the default port.
JonathanException - if something goes wrong.
public static NamingService getRegistry(java.lang.String host,
int port,
NamingContext binder)
throws JonathanException
NamingService on the given host and
port.
host - the host where the naming service is located.port - the port that was used to export the naming service on the
given host.binder - the binder to be used to create the binding to the naming
service interface.
NamingService on the given host and
port.
JonathanException - if something goes wrong.
public static org.objectweb.fractal.api.Component getRegistryComponent(java.lang.String host,
int port,
java.lang.ClassLoader cl)
throws java.lang.Exception
java.lang.Exception
public static org.objectweb.fractal.api.Component getRegistryComponent(java.lang.String host,
int port,
java.util.Map hints)
throws java.lang.Exception
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||