|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.yoko.orb.CosNaming.tnaming.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 ORB |
createdOrb
|
static String |
DEFAULT_SERVICE_HOST
|
static String |
DEFAULT_SERVICE_NAME
|
static int |
DEFAULT_SERVICE_PORT
|
protected String |
host
|
protected TransientNamingContext |
initialContext
|
protected int |
port
|
protected String |
serviceName
|
Constructor Summary | |
---|---|
TransientNameService()
Create a new TransientNameService, using all default attributes. |
|
TransientNameService(String host,
int port)
Create a default-named name service using the specified host and port parameters. |
|
TransientNameService(String host,
int port,
String name)
Create a specifically-named name service using the specified host and port parameters. |
Method Summary | |
---|---|
void |
destroy()
Destroy the created service. |
void |
initialize(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 String DEFAULT_SERVICE_NAME
public static final int DEFAULT_SERVICE_PORT
public static final String DEFAULT_SERVICE_HOST
protected TransientNamingContext initialContext
protected int port
protected String host
protected String serviceName
protected ORB createdOrb
Constructor Detail |
---|
public TransientNameService()
public TransientNameService(String host, int port)
host
- The host to expose this under.port
- The initial listening port.public TransientNameService(String host, int port, 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(ORB orb) throws TransientServiceException
orb
- The ORB hosting the service.
TransientServiceException
public void destroy()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |