
Public Member Functions | |
| ManagerEngine (ManagerShutdown shutdownImplementation) | |
| void | destroy () |
| void | initialize () |
| int | getNumberOfPendingRequests () |
| Logger | getLogger () |
Private Member Functions | |
| void | initializeManager () throws Throwable |
| void | destroyManager () throws Exception |
| void | initializeShutdownHook () |
Private Attributes | |
| ManagerImpl | manager = null |
| ManagerProxyImpl | managerProxy = null |
| POA | managerPOA = null |
| si.ijs.maci.Manager | managerReference = null |
| ManagerShutdown | shutdownImplementation = null |
| String | recoveryLocation = null |
| Logger | logger = Logger.global |
| DefaultCORBAService | corbaService = null |
Static Private Attributes | |
| static final String | MANAGER_DOMAIN = "" |
| static final byte[] | MANAGER_ID = { 'M', 'a', 'n', 'a', 'g', 'e', 'r' } |
| static final String | RECOVERY_DIR_NAME = "Manager_Recovery" |
Engine of the Manager GUI application.
| com::cosylab::acs::maci::manager::app::ManagerEngine::ManagerEngine | ( | ManagerShutdown | shutdownImplementation | ) | [inline] |
Constructor for ManagerEngine.
| shutdownImplementation | implementation of the shutdown method. |
| void com::cosylab::acs::maci::manager::app::ManagerEngine::destroy | ( | ) | [inline] |
Destroy.
References destroyManager(), and logger.
Referenced by com::cosylab::acs::maci::manager::gui::Manager::destroy(), initializeManager(), and com::cosylab::acs::maci::manager::app::Manager::internalDestroy().
| void com::cosylab::acs::maci::manager::app::ManagerEngine::destroyManager | ( | ) | throws Exception [inline, private] |
Destroy the Manager.
References corbaService, com::cosylab::acs::maci::plug::DefaultCORBAService::destroy(), com::cosylab::acs::maci::manager::ManagerImpl::isShuttingDown(), logger, manager, MANAGER_ID, managerPOA, managerReference, recoveryLocation, and com::cosylab::acs::maci::manager::ManagerImpl::shutdown.
Referenced by destroy().
| Logger com::cosylab::acs::maci::manager::app::ManagerEngine::getLogger | ( | ) | [inline] |
| int com::cosylab::acs::maci::manager::app::ManagerEngine::getNumberOfPendingRequests | ( | ) | [inline] |
Returns number of pending requests.
References com::cosylab::acs::maci::plug::ManagerProxyImpl::getNumberOfPendingRequests(), and managerProxy.
Referenced by com::cosylab::acs::maci::manager::gui::Manager::GUIUpdater::actionPerformed().
| void com::cosylab::acs::maci::manager::app::ManagerEngine::initialize | ( | ) | [inline] |
Initialize manager.
References initializeManager(), initializeShutdownHook(), and logger.
Referenced by com::cosylab::acs::maci::manager::gui::Manager::initialize(), and com::cosylab::acs::maci::manager::app::Manager::Manager().
| void com::cosylab::acs::maci::manager::app::ManagerEngine::initializeManager | ( | ) | throws Throwable [inline, private] |
Initialize and activate Manager.
References com::cosylab::cdb::client::CDBAccess::connectAndGetDAL(), corbaService, destroy(), com::cosylab::acs::maci::plug::NamingServiceRemoteDirectory::getContext(), com::cosylab::cdb::client::CDBAccess::getDAL(), com::cosylab::acs::maci::manager::ManagerImpl::getHandle(), com::cosylab::acs::maci::plug::DefaultCORBAService::getORB(), com::cosylab::acs::maci::plug::NamingServiceRemoteDirectory::getReference(), com::cosylab::acs::maci::plug::DefaultCORBAService::getRootPOA(), com::cosylab::acs::maci::manager::ManagerImpl::initializationDone(), com::cosylab::acs::maci::manager::ManagerImpl::initialize(), alma::acs::logging::config::LogConfig::initialize(), com::cosylab::acs::maci::manager::ManagerImpl::initializeFederation(), logger, manager, MANAGER_DOMAIN, MANAGER_ID, managerPOA, managerProxy, managerReference, RECOVERY_DIR_NAME, recoveryLocation, alma::acs::logging::config::LogConfig::setCDB(), alma::acs::logging::config::LogConfig::setCDBLoggingConfigPath(), com::cosylab::acs::maci::manager::ManagerImpl::setDomain(), com::cosylab::acs::maci::manager::ManagerImpl::setManagerComponentReference(), com::cosylab::acs::maci::manager::ManagerImpl::setRemoteDirectoryComponentReference(), com::cosylab::acs::maci::manager::ManagerImpl::setShutdownImplementation(), com::cosylab::acs::maci::manager::ManagerImpl::setTransport(), and shutdownImplementation.
Referenced by initialize().
| void com::cosylab::acs::maci::manager::app::ManagerEngine::initializeShutdownHook | ( | ) | [inline, private] |
Initialize shutdown hook (CTRL-C signal).
Manager shitdown hook thread implementation.
References com::cosylab::acs::maci::manager::ManagerShutdown::isShutdownInProgress(), com::cosylab::acs::maci::manager::ManagerShutdown::shutdown(), and shutdownImplementation.
Referenced by initialize().
DefaultCORBAService com::cosylab::acs::maci::manager::app::ManagerEngine::corbaService = null [private] |
CORBA service.
Referenced by destroyManager(), and initializeManager().
Logger com::cosylab::acs::maci::manager::app::ManagerEngine::logger = Logger.global [private] |
Logger. Default logger is global logger.
Referenced by destroy(), destroyManager(), getLogger(), initialize(), and initializeManager().
ManagerImpl com::cosylab::acs::maci::manager::app::ManagerEngine::manager = null [private] |
Implementation of the Manager.
Referenced by destroyManager(), and initializeManager().
final String com::cosylab::acs::maci::manager::app::ManagerEngine::MANAGER_DOMAIN = "" [static, private] |
Manager domain (empty until manager federation is implemented).
Referenced by initializeManager().
final byte [] com::cosylab::acs::maci::manager::app::ManagerEngine::MANAGER_ID = { 'M', 'a', 'n', 'a', 'g', 'e', 'r' } [static, private] |
CORBA Manager Servant ID.
Referenced by destroyManager(), and initializeManager().
POA com::cosylab::acs::maci::manager::app::ManagerEngine::managerPOA = null [private] |
Manager POA.
Referenced by destroyManager(), and initializeManager().
ManagerProxyImpl com::cosylab::acs::maci::manager::app::ManagerEngine::managerProxy = null [private] |
Manager CORBA Proxy implementation.
Referenced by getNumberOfPendingRequests(), and initializeManager().
si.ijs.maci.Manager com::cosylab::acs::maci::manager::app::ManagerEngine::managerReference = null [private] |
Manager reference.
Referenced by destroyManager(), and initializeManager().
final String com::cosylab::acs::maci::manager::app::ManagerEngine::RECOVERY_DIR_NAME = "Manager_Recovery" [static, private] |
Directory name under ACS.temp where recovery fieles are stored
Referenced by initializeManager().
String com::cosylab::acs::maci::manager::app::ManagerEngine::recoveryLocation = null [private] |
Recovery files directory.
Referenced by destroyManager(), and initializeManager().
ManagerShutdown com::cosylab::acs::maci::manager::app::ManagerEngine::shutdownImplementation = null [private] |
Implementation of the shutdown method.
Referenced by initializeManager(), and initializeShutdownHook().
1.6.2