|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--gov.lanl.Utility.NameService
NameService utility class It locates and connects to the NameService and enables registration to the Name Service By default it uses NamingContextExt but can be recompiled to use the older NamingContext interface because it provides the extra utility classes internally. Additionally, it allows for connection to an insecure NameService from an SSL application using the locally developed ServiceInterface.
| Constructor Summary | |
NameService(org.omg.CORBA.ORB orb,
java.lang.String iorURL)
Build internal reference to the NameService from an ior or by default |
|
NameService(ServiceInterface service,
java.lang.String iorURL)
Build internal reference using SSL interface |
|
NameService(java.lang.String[] args,
java.util.Properties props,
java.lang.String iorURL)
Constructor without an orb (creates one internally) |
|
| Method Summary | |
org.omg.CORBA.Object |
connect(java.lang.String serverName)
Obtain Object reference from the NameService |
static NameService |
current()
return the current NameService or create a new onel, if possible |
void |
find(java.lang.String nameContext)
List all of the Names in the given NameContext |
void |
register(org.omg.CORBA.Object obj,
java.lang.String serviceName)
Register CORBA object to this NameService using serviceName |
org.omg.CosNaming.NameComponent[] |
to_name(java.lang.String serviceName)
function to turn string into a NameComponent array used when there is no NameContextExt implementation (also handles wild cards per spec) |
java.lang.String |
to_string(org.omg.CosNaming.NameComponent[] nameComponentList)
Convert NameComponent[] into a String It will quote any literal '.', '/', and '\' characters by adding a preceding '\' |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public NameService(ServiceInterface service,
java.lang.String iorURL)
service - ServiceInterfaceiorURL - URL ior of the NameService (if known)
public NameService(org.omg.CORBA.ORB orb,
java.lang.String iorURL)
orb - to connect to (overridden if the SSL service is presentiorURL - URL of ior of NameService (if known)
public NameService(java.lang.String[] args,
java.util.Properties props,
java.lang.String iorURL)
args - command line argumentsprops - Properties passed to Orb.iorURL - URLf IOR of NameService (if there is one)| Method Detail |
public static NameService current()
public void register(org.omg.CORBA.Object obj,
java.lang.String serviceName)
obj - serviceName - public org.omg.CosNaming.NameComponent[] to_name(java.lang.String serviceName)
serviceName - containing string to be converted to NameComponent[]
public java.lang.String to_string(org.omg.CosNaming.NameComponent[] nameComponentList)
nameComponentList - to be converted to String
public org.omg.CORBA.Object connect(java.lang.String serverName)
serverName -
public void find(java.lang.String nameContext)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||