cern.cmw.rda.corba
Class Util

java.lang.Object
  extended by cern.cmw.rda.corba.Util

public final class Util
extends Object

Provides a set of static utility functions that encapsulate CORBA-specific operations, in particular, the ORB and POA initialization and name binding/resolution with the COS Naming Service.


Field Summary
static String DEFAULT_NAME_SERVER
           
 
Method Summary
static void bind(String objName, Object obj)
          Binds the name to the object in the root naming context.
static String configFile()
           
static String[] getKeys()
           
static String[] getKeys(String prefix)
           
static String getProperty(String key)
           
static void init(String[] args)
          Initializes the basic CORBA facilities.
static ORB orb()
           
static POA poa()
           
static Object resolve(String objName)
          Resolves the specified name in the root naming context.
static Object setTimeout(Object obj, int timeout)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_NAME_SERVER

public static final String DEFAULT_NAME_SERVER
See Also:
Constant Field Values
Method Detail

orb

public static ORB orb()

poa

public static POA poa()

init

public static void init(String[] args)
                 throws InternalException
Initializes the basic CORBA facilities. Should be called only once, though multiple calls are safe.

Throws:
InternalException

resolve

public static Object resolve(String objName)
                      throws InternalException
Resolves the specified name in the root naming context.

Throws:
InternalException

bind

public static void bind(String objName,
                        Object obj)
                 throws InternalException
Binds the name to the object in the root naming context.

Throws:
InternalException

setTimeout

public static Object setTimeout(Object obj,
                                int timeout)

configFile

public static String configFile()

getProperty

public static String getProperty(String key)

getKeys

public static String[] getKeys()

getKeys

public static String[] getKeys(String prefix)


Copyright © 2007 CERN. All Rights Reserved.