use of alma.acsdaemon.ServicesDaemon in project ACS by ACS-Community.
the class ServicesDaemonTest method getServicesDaemon.
private ServicesDaemon getServicesDaemon(String host) {
String daemonLoc = AcsLocations.convertToServicesDaemonLocation(host);
assertNotNull("corbaloc for service daemon must not be null", daemonLoc);
logger.fine("Using services daemon corbaloc " + daemonLoc);
ORB orb = acsCorba.getORB();
assertNotNull("ORB provided by inherited acsCorba must not be null", daemonLoc);
org.omg.CORBA.Object obj = orb.string_to_object(daemonLoc);
ServicesDaemon ret = null;
try {
ret = ServicesDaemonHelper.narrow(obj);
} catch (TRANSIENT ex) {
fail("Failed to get reference to services daemon '" + daemonLoc + "' because of TRANSIENT ex");
}
assertNotNull("Corba ref to services daemon must not be null", ret);
return ret;
}
Aggregations