use of alma.acs.container.CleaningDaemonThreadFactory in project ACS by ACS-Community.
the class ComponentClient method initAcs.
private void initAcs(String managerLoc, POA rootPOA) throws Exception {
try {
ManagerClient clImpl = new ManagerClient(m_clientName, m_logger) {
public void disconnect() {
m_logger.info("disconnected from manager");
m_acsManagerProxy.logoutFromManager();
m_acsManagerProxy = null;
throw new RuntimeException("disconnected from the manager");
}
};
m_managerClient = clImpl._this(acsCorba.getORB());
m_acsManagerProxy = new AcsManagerProxy(managerLoc, acsCorba.getORB(), m_logger);
m_acsManagerProxy.loginToManager(m_managerClient, 1);
DAL cdb = DALHelper.narrow(m_acsManagerProxy.get_service("CDB", false));
m_threadFactory = new CleaningDaemonThreadFactory(m_clientName, m_logger);
m_containerServices = new ContainerServicesImpl(m_acsManagerProxy, cdb, rootPOA, acsCorba, m_logger, 0, m_clientName, null, m_threadFactory);
clImpl.setContainerServices(m_containerServices);
initAlarmSystem();
} catch (Exception ex) {
// "or to set up the container services.", ex);
if (acsCorba.getORB() != null) {
acsCorba.getORB().destroy();
}
throw ex;
}
}
Aggregations