

Public Member Functions | |
| boolean | equals (Object obj) |
| int | hashCode () |
| org.omg.CORBA.Object | getReference () |
| int | getHandle () |
| String | getName () |
| String | getType () |
Protected Member Functions | |
| void | finalize () throws Throwable |
Package Functions | |
| ComponentAdapter (String compName, String type, String code, int compHandle, String containerName, ComponentLifecycle component, AcsManagerProxy managerProxy, ClassLoader componentClassLoader, AcsLogger logger, AcsCorba acsCorba) throws AcsJContainerEx | |
| ContainerServicesImpl | getContainerServices () |
| void | activateComponent (Servant servant) throws AcsJContainerEx |
| void | initializeComponent () throws ComponentLifecycleException |
| void | executeComponent () throws ComponentLifecycleException |
| void | deactivateComponent () throws AcsJContainerEx |
| Runnable | getComponentAbortionist (final boolean killComponentPOA) |
| ComponentInfo | getComponentInfo () |
| ComponentStateManagerImpl | getComponentStateManager () |
| void | setMethodsExcludedFromInvocationLogging (String[] excludedMethods) |
Private Member Functions | |
| String[] | _getInterfaces () |
Private Attributes | |
| String | m_type |
| String | m_code |
| org.omg.CORBA.Object | m_reference |
| String | m_compInstanceName |
| int[] | m_clients |
| String | m_containerName |
| int | m_compHandle |
| int | m_access |
| String[] | m_interfaces |
| AcsLogger | m_containerLogger |
| ComponentLifecycle | m_component |
| Servant | m_servant |
| POA | m_componentPOA |
| ComponentServantManager | compServantManager |
| final AcsCorba | acsCorba |
| final AcsManagerProxy | m_managerProxy |
| final ClassLoader | m_componentClassLoader |
| final ComponentStateManagerImpl | m_componentStateManager |
| final ContainerServicesImpl | m_containerServices |
| final CleaningDaemonThreadFactory | m_threadFactory |
Adapter between the container on the one side and a component with all its child objects on the other. For the component, ComponentAdapter is the container, since it calls the ComponentLifecycle methods. For the container, it represents the component with its meta data.
| alma::acs::container::ComponentAdapter::ComponentAdapter | ( | String | compName, | |
| String | type, | |||
| String | code, | |||
| int | compHandle, | |||
| String | containerName, | |||
| ComponentLifecycle | component, | |||
| AcsManagerProxy | managerProxy, | |||
| ClassLoader | componentClassLoader, | |||
| AcsLogger | logger, | |||
| AcsCorba | acsCorba | |||
| ) | throws AcsJContainerEx [inline, package] |
Method ComponentAdapter.
| compName | component instance name (curl) | |
| type | IDL type | |
| code | Java impl class of the component helper (subclass of ComponentHelper); | |
| compHandle | component handle assigned by the manager | |
| containerName | ||
| component | the instance of the component implementation class | |
| managerProxy | the shared manager proxy object | |
| componentClassLoader | the classloader to be used as the currentThread-ClassLoader when component lifecycle methods are invoked. | |
| logger | logger to be used by this class (not by the component though) | |
| acsCorba |
| AcsJContainerServicesEx |
References acsCorba, alma::acs::container::corba::AcsCorba::createPOAForComponent(), m_clients, m_code, m_compHandle, m_compInstanceName, m_component, m_componentClassLoader, m_componentPOA, m_componentStateManager, m_containerLogger, m_containerName, m_containerServices, m_interfaces, m_managerProxy, m_threadFactory, m_type, and alma::acs::container::CleaningDaemonThreadFactory::setNewThreadContextClassLoader().
| String [] alma::acs::container::ComponentAdapter::_getInterfaces | ( | ) | [inline, private] |
References m_compInstanceName, m_componentPOA, m_containerLogger, and m_servant.
Referenced by activateComponent().
| void alma::acs::container::ComponentAdapter::activateComponent | ( | Servant | servant | ) | throws AcsJContainerEx [inline, package] |
References _getInterfaces(), acsCorba, alma::acs::container::corba::AcsCorba::activateComponent(), compServantManager, m_compInstanceName, m_component, m_componentPOA, m_containerLogger, m_interfaces, m_reference, m_servant, alma::JavaContainerError::wrappers::AcsJContainerEx::setContextInfo(), and alma::acs::container::corba::AcsCorba::setServantManagerOnComponentPOA().
Referenced by alma::acs::container::AcsContainer::activate_component().
| void alma::acs::container::ComponentAdapter::deactivateComponent | ( | ) | throws AcsJContainerEx [inline, package] |
Deactivates a component.
| AcsJContainerServicesEx |
References acsCorba, alma::acs::container::CleaningDaemonThreadFactory::cleanUp(), alma::acs::container::ContainerServicesImpl::cleanUp(), alma::acs::component::ComponentLifecycle::cleanUp(), compServantManager, alma::acs::container::corba::AcsCorba::deactivateComponentPOAManager(), alma::acs::container::corba::AcsCorba::destroyComponentPOA(), alma::acs::logging::AcsLogger::log(), m_compInstanceName, m_component, m_componentClassLoader, m_componentPOA, m_componentStateManager, m_containerLogger, m_containerServices, m_threadFactory, alma::JavaContainerError::wrappers::AcsJContainerEx::setContextInfo(), and alma::acs::container::ComponentStateManagerImpl::setStateByContainer().
Referenced by alma::acs::container::AcsContainer::activate_component(), and alma::acs::container::AcsContainer::deactivate_components().
| boolean alma::acs::container::ComponentAdapter::equals | ( | Object | obj | ) | [inline] |
todo: check with rest of ACS which fields really make a component unique in the system. Seems kind of undefined.
References getHandle(), getName(), getType(), m_compHandle, m_compInstanceName, and m_type.
| void alma::acs::container::ComponentAdapter::executeComponent | ( | ) | throws ComponentLifecycleException [inline, package] |
| void alma::acs::container::ComponentAdapter::finalize | ( | ) | throws Throwable [inline, protected] |
References getHandle(), getName(), and m_containerLogger.
| Runnable alma::acs::container::ComponentAdapter::getComponentAbortionist | ( | final boolean | killComponentPOA | ) | [inline, package] |
Returns a Runnable that can abort the component in the following way.
ABORTING DEFUNCT killComponentPOA==true, destroys the POA for this component; This method returns immediately, so the caller can then run the returned Runnable in its own thread.
References alma::acs::component::ComponentLifecycle::aboutToAbort(), alma::acs::container::CleaningDaemonThreadFactory::cleanUp(), alma::acs::container::ContainerServicesImpl::cleanUp(), getName(), alma::acs::logging::AcsLogger::log(), m_component, m_componentClassLoader, m_componentPOA, m_componentStateManager, m_containerLogger, m_containerServices, m_threadFactory, and alma::acs::container::ComponentStateManagerImpl::setStateByContainer().
Referenced by alma::acs::container::AcsContainer::abortAllComponents().
| ComponentInfo alma::acs::container::ComponentAdapter::getComponentInfo | ( | ) | [inline, package] |
References alma::acs::container::AcsManagerProxy::getManagerHandle(), m_access, m_clients, m_code, m_compHandle, m_compInstanceName, m_containerName, m_interfaces, m_managerProxy, m_reference, and m_type.
Referenced by alma::acs::container::AcsContainer::activate_component(), and alma::acs::container::AcsContainer::get_component_info().
| ComponentStateManagerImpl alma::acs::container::ComponentAdapter::getComponentStateManager | ( | ) | [inline, package] |
To be called by the container to change the component state. In some cases, the state will be changed by this ComponentAdapter though.
ComponentStateManager that gives acces to the state. References m_componentStateManager.
Referenced by alma::acs::container::AcsContainer::abortAllComponents(), and alma::acs::container::AcsContainer::markAndFilterForDeactivation().
| ContainerServicesImpl alma::acs::container::ComponentAdapter::getContainerServices | ( | ) | [inline, package] |
References m_containerServices.
| int alma::acs::container::ComponentAdapter::getHandle | ( | ) | [inline] |
Returns the handle.
References m_compHandle.
Referenced by alma::acs::container::AcsContainer::deactivate_components(), equals(), finalize(), alma::acs::container::AcsContainer::getExistingComponent(), alma::acs::container::ComponentMapTest::testInsertionOrderOutput(), and alma::acs::container::ComponentMapTest::testSorting().
| String alma::acs::container::ComponentAdapter::getName | ( | ) | [inline] |
| handle | Returns the name. |
References m_compInstanceName.
Referenced by alma::acs::container::AcsContainer::abortAllComponents(), alma::acs::container::AcsContainer::deactivate_components(), equals(), finalize(), getComponentAbortionist(), alma::acs::container::ComponentMap::getComponentByNameAndType(), alma::acs::container::AcsContainer::getExistingComponent(), alma::acs::container::AcsContainer::markAndFilterForDeactivation(), and alma::acs::container::AcsContainer::restart_component().
| org.omg.CORBA.Object alma::acs::container::ComponentAdapter::getReference | ( | ) | [inline] |
| String alma::acs::container::ComponentAdapter::getType | ( | ) | [inline] |
Returns the type.
References m_type.
Referenced by equals(), alma::acs::container::ComponentMap::getComponentByNameAndType(), and alma::acs::container::AcsContainer::getExistingComponent().
| int alma::acs::container::ComponentAdapter::hashCode | ( | ) | [inline] |
References m_compInstanceName.
| void alma::acs::container::ComponentAdapter::initializeComponent | ( | ) | throws ComponentLifecycleException [inline, package] |
| void alma::acs::container::ComponentAdapter::setMethodsExcludedFromInvocationLogging | ( | String[] | excludedMethods | ) | [inline, package] |
With this optional call, automatic invocation logging for certain component methods can be disabled. (Data will just be forwarded to containerServices)
| excludedMethods |
References m_containerServices, and alma::acs::container::ContainerServicesImpl::setMethodsExcludedFromInvocationLogging().
Referenced by alma::acs::container::AcsContainer::activate_component().
final AcsCorba alma::acs::container::ComponentAdapter::acsCorba [private] |
Referenced by activateComponent(), ComponentAdapter(), and deactivateComponent().
Referenced by activateComponent(), and deactivateComponent().
int alma::acs::container::ComponentAdapter::m_access [private] |
Referenced by getComponentInfo().
int [] alma::acs::container::ComponentAdapter::m_clients [private] |
Referenced by ComponentAdapter(), and getComponentInfo().
String alma::acs::container::ComponentAdapter::m_code [private] |
Referenced by ComponentAdapter(), and getComponentInfo().
int alma::acs::container::ComponentAdapter::m_compHandle [private] |
Referenced by ComponentAdapter(), equals(), getComponentInfo(), and getHandle().
String alma::acs::container::ComponentAdapter::m_compInstanceName [private] |
Referenced by _getInterfaces(), activateComponent(), ComponentAdapter(), deactivateComponent(), equals(), getComponentInfo(), getName(), and hashCode().
final ClassLoader alma::acs::container::ComponentAdapter::m_componentClassLoader [private] |
Referenced by ComponentAdapter(), deactivateComponent(), executeComponent(), getComponentAbortionist(), and initializeComponent().
POA alma::acs::container::ComponentAdapter::m_componentPOA [private] |
Referenced by _getInterfaces(), activateComponent(), ComponentAdapter(), deactivateComponent(), and getComponentAbortionist().
Referenced by _getInterfaces(), activateComponent(), ComponentAdapter(), deactivateComponent(), finalize(), and getComponentAbortionist().
String alma::acs::container::ComponentAdapter::m_containerName [private] |
Referenced by ComponentAdapter(), and getComponentInfo().
String [] alma::acs::container::ComponentAdapter::m_interfaces [private] |
Referenced by activateComponent(), ComponentAdapter(), and getComponentInfo().
Referenced by ComponentAdapter(), and getComponentInfo().
org.omg.CORBA.Object alma::acs::container::ComponentAdapter::m_reference [private] |
Referenced by activateComponent(), getComponentInfo(), and getReference().
Servant alma::acs::container::ComponentAdapter::m_servant [private] |
Referenced by _getInterfaces(), and activateComponent().
Referenced by ComponentAdapter(), deactivateComponent(), and getComponentAbortionist().
String alma::acs::container::ComponentAdapter::m_type [private] |
Referenced by ComponentAdapter(), equals(), getComponentInfo(), and getType().
1.6.2