|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tuscany.sca.host.corba.naming.TransientNameService
public class TransientNameService
A transient name service attached to an ORB. This class manages all of the housekeeping for creating a TransientNamingContext and a exposing it using an ORB.
Field Summary | |
---|---|
protected org.omg.CORBA.ORB |
createdOrb
|
static java.lang.String |
DEFAULT_SERVICE_HOST
|
static java.lang.String |
DEFAULT_SERVICE_NAME
|
static int |
DEFAULT_SERVICE_PORT
|
protected java.lang.String |
host
|
protected TransientNamingContext |
initialContext
|
protected int |
port
|
protected java.lang.String |
serviceName
|
Constructor Summary | |
---|---|
TransientNameService()
Create a new TransientNameService, using all default attributes. |
|
TransientNameService(java.lang.String host,
int port)
Create a default-named name service using the specified host and port parameters. |
|
TransientNameService(java.lang.String host,
int port,
java.lang.String name)
Create a specifically-named name service using the specified host and port parameters. |
Method Summary | |
---|---|
void |
destroy()
Destroy the created service. |
org.omg.CORBA.ORB |
getORB()
|
void |
initialize(org.omg.CORBA.ORB orb)
Initialize a transient name service on a specific ORB. |
void |
run()
Start up the name service, including creating an ORB instance to expose it under. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String DEFAULT_SERVICE_NAME
public static final int DEFAULT_SERVICE_PORT
public static final java.lang.String DEFAULT_SERVICE_HOST
protected TransientNamingContext initialContext
protected int port
protected java.lang.String host
protected java.lang.String serviceName
protected org.omg.CORBA.ORB createdOrb
Constructor Detail |
---|
public TransientNameService()
public TransientNameService(java.lang.String host, int port)
host
- The host to expose this under.port
- The initial listening port.public TransientNameService(java.lang.String host, int port, java.lang.String name)
host
- The host to expose this under.port
- The initial listening port.name
- The name to register this service under using the
BootManager.Method Detail |
---|
public void run() throws TransientServiceException
TransientServiceException
public void initialize(org.omg.CORBA.ORB orb) throws TransientServiceException
orb
- The ORB hosting the service.
TransientServiceException
public void destroy()
public org.omg.CORBA.ORB getORB()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |