|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.fractal.rmi.registry.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 void |
createRegistry(int port)
Creates NamingService component 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(String host)
Returns a reference to the NamingService on the given host, for the
default port . |
static NamingService |
getRegistry(String host,
int port)
Returns a reference to the NamingService on the given host and
port. |
static NamingService |
getRegistry(String host,
int port,
NamingContext binder)
Returns a reference to the NamingService on the given host and
port. |
static NamingService |
getRegistry(String host,
NamingContext binder)
Returns a reference to the NamingService on the given host, for the
default port . |
static void |
main(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(String[] args) throws Exception
args
- a single argument setting the port number where to pick the
naming service interface.
Exception
- if something goes wrong.public static void createRegistry(int port) throws Exception
NamingService
component and exports its server interface.
port
- the port number to be used to export the naming service
interface.
Exception
- if something goes wrong.public static NamingService getRegistry() throws Exception
NamingService
on the local host, for the
default port
.
NamingService
on the local host, for the
default port
.
Exception
- if something goes wrong.public static NamingService getRegistry(String host) throws 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
.
Exception
- if something goes wrong.public static NamingService getRegistry(String host, int port) throws 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.
Exception
- if something goes wrong.public static NamingService getRegistry(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(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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |