

Structure in which the Manager (and Container) stores information about a component.
| com::cosylab::acs::maci::ComponentInfo::ComponentInfo | ( | int | handle, | |
| String | name, | |||
| String | type, | |||
| String | code, | |||
| Component | component | |||
| ) | [inline] |
Creates an instance of ComponentInfo with all necesarry data.
| handle | handle of the component. | |
| name | name of the component. | |
| type | type of the component. | |
| code | code of the component. | |
| component | component itself. |
References clients, components, isDynamic(), and keepAliveTime.
Referenced by com::cosylab::acs::maci::plug::ContainerProxy::activate_component(), com::cosylab::acs::maci::plug::ContainerProxy::get_component_info(), and com::cosylab::acs::maci::plug::ManagerProxy::getComponentInfo().
| int com::cosylab::acs::maci::ComponentInfo::compareTo | ( | ComponentInfo | o | ) | [inline] |
References name.
| int com::cosylab::acs::maci::ComponentInfo::getAccessRights | ( | ) | [inline] |
| IntArray com::cosylab::acs::maci::ComponentInfo::getClients | ( | ) | [inline] |
Returns the clients.
References clients.
Referenced by com::cosylab::acs::maci::manager::ComponentInfoTopologicalSort::ComponentInfoVertex::ComponentInfoVertex(), com::cosylab::acs::maci::manager::ManagerImpl::containerInternalStateMerge(), com::cosylab::acs::maci::manager::ManagerImpl::containerPostLoginActivation(), com::cosylab::acs::maci::manager::recovery::ComponentCommandClientRemove::execute(), com::cosylab::acs::maci::manager::recovery::ComponentCommandClientAdd::execute(), com::cosylab::acs::maci::manager::ManagerImpl::internalDeactivateComponent(), com::cosylab::acs::maci::manager::ManagerImpl::internalNoSyncDeactivateComponent(), com::cosylab::acs::maci::manager::ManagerImpl::internalNoSyncReleaseComponent(), com::cosylab::acs::maci::manager::ManagerImpl::internalNoSyncRequestComponent(), com::cosylab::acs::maci::manager::ManagerImpl::internalNoSyncRestartComponent(), com::cosylab::acs::maci::manager::ManagerImpl::makeComponentImmortal(), com::cosylab::acs::maci::manager::ManagerImpl::makeUnavailable(), com::cosylab::acs::maci::manager::ComponentInfoTopologicalSort::markImmortalChain(), com::cosylab::acs::maci::manager::ManagerImpl::registerComponent(), and com::cosylab::acs::maci::test::ManagerImplTest::testForceReleaseComponent().
| String com::cosylab::acs::maci::ComponentInfo::getCode | ( | ) | [inline] |
Returns the code.
References code.
Referenced by com::cosylab::acs::maci::manager::ManagerImpl::containerInternalStateMerge(), com::cosylab::acs::maci::manager::ManagerImpl::hasCDBEntry(), com::cosylab::acs::maci::manager::ManagerImpl::internalNoSyncRequestComponent(), and com::cosylab::acs::maci::manager::ManagerImpl::internalRequestDefaultComponent().
| Component com::cosylab::acs::maci::ComponentInfo::getComponent | ( | ) | [inline] |
Returns the component.
References component.
Referenced by com::cosylab::acs::maci::manager::ManagerImpl::containerInternalStateMerge(), com::cosylab::acs::maci::manager::ManagerImpl::containerPostLoginActivation(), com::cosylab::acs::maci::test::TestContainer::deactivate_components(), com::cosylab::acs::maci::plug::ManagerProxyImpl::get_collocated_component(), com::cosylab::acs::maci::plug::ManagerProxyImpl::get_default_component(), com::cosylab::acs::maci::plug::ManagerProxyImpl::get_dynamic_component(), com::cosylab::acs::maci::manager::ManagerImpl::getComponentInfo(), com::cosylab::acs::maci::manager::ManagerImpl::getComponentNonSticky(), com::cosylab::acs::maci::manager::ManagerImpl::internalNoSyncDeactivateComponent(), com::cosylab::acs::maci::manager::ManagerImpl::internalNoSyncRequestComponent(), com::cosylab::acs::maci::manager::ManagerImpl::internalRequestComponent(), com::cosylab::acs::maci::test::TestContainer::restart_component(), and com::cosylab::acs::maci::test::ManagerImplTest::testGetDefaultComponent().
| IntArray com::cosylab::acs::maci::ComponentInfo::getComponents | ( | ) | [inline] |
Get array of component handles that this component requested.
References components.
Referenced by com::cosylab::acs::maci::manager::ManagerImpl::addComponentOwner(), com::cosylab::acs::maci::manager::ManagerImpl::doCycleCheck(), com::cosylab::acs::maci::manager::recovery::ComponentInfoCommandComponentRemove::execute(), com::cosylab::acs::maci::manager::recovery::ComponentInfoCommandComponentAdd::execute(), com::cosylab::acs::maci::manager::ComponentInfoTopologicalSort::extract(), com::cosylab::acs::maci::manager::ManagerImpl::internalNoSyncDeactivateComponent(), and com::cosylab::acs::maci::manager::ManagerImpl::internalNoSyncRequestComponent().
| int com::cosylab::acs::maci::ComponentInfo::getContainer | ( | ) | [inline] |
Returns the container.
References container.
Referenced by com::cosylab::acs::maci::manager::ManagerImpl::containerInternalStateMerge(), com::cosylab::acs::maci::manager::ManagerImpl::getClients(), com::cosylab::acs::maci::manager::ManagerImpl::hasCDBEntry(), com::cosylab::acs::maci::manager::ManagerImpl::internalNoSyncDeactivateComponent(), com::cosylab::acs::maci::manager::ManagerImpl::internalNoSyncReleaseComponent(), com::cosylab::acs::maci::manager::ManagerImpl::internalNoSyncRequestComponent(), com::cosylab::acs::maci::manager::ManagerImpl::internalNoSyncRestartComponent(), com::cosylab::acs::maci::manager::ManagerImpl::internalRequestDefaultComponent(), com::cosylab::acs::maci::test::ManagerImplTest::testComponentKeepAliveTime(), com::cosylab::acs::maci::test::ManagerImplTest::testContainerToManagerStateTransferComponents(), com::cosylab::acs::maci::test::ManagerImplTest::testGetCollocatedComponent(), com::cosylab::acs::maci::test::ManagerImplTest::testGetDynamicComponent(), and com::cosylab::acs::maci::test::ManagerImplTest::testManagerToContainerStateTransferComponents().
| String com::cosylab::acs::maci::ComponentInfo::getContainerName | ( | ) | [inline] |
Get container name which hosts the component.
References containerName.
Referenced by com::cosylab::acs::maci::manager::ManagerImpl::getCollocatedComponent(), com::cosylab::acs::maci::manager::ManagerImpl::getComponentInfo(), com::cosylab::acs::maci::manager::ComponentInfoTopologicalSortManager::getComponentShutdownOrder(), com::cosylab::acs::maci::manager::ManagerImpl::internalNoSyncReleaseComponent(), com::cosylab::acs::maci::manager::ManagerImpl::internalNoSyncRequestComponent(), and com::cosylab::acs::maci::manager::ComponentInfoTopologicalSortManager::run().
| String com::cosylab::acs::maci::ComponentInfo::getDynamicContainerName | ( | ) | [inline] |
Get container on which dynamic component was activated.
References dynamicContainerName.
Referenced by com::cosylab::acs::maci::manager::ManagerImpl::containerPostLoginActivation(), com::cosylab::acs::maci::manager::ManagerImpl::hasCDBEntry(), and com::cosylab::acs::maci::manager::ManagerImpl::internalNoSyncRequestComponent().
| int com::cosylab::acs::maci::ComponentInfo::getHandle | ( | ) | [inline] |
Returns the handle.
References handle.
Referenced by com::cosylab::acs::maci::manager::ManagerImpl::checkCyclicDependency(), com::cosylab::acs::maci::manager::ManagerImpl::containerInternalStateMerge(), com::cosylab::acs::maci::manager::ManagerImpl::containerPostLoginActivation(), com::cosylab::acs::maci::manager::ComponentInfoTopologicalSort::downheap(), com::cosylab::acs::maci::manager::ComponentInfoTopologicalSort::extract(), com::cosylab::acs::maci::manager::ManagerImpl::getRequestorName(), com::cosylab::acs::maci::manager::ComponentInfoTopologicalSort::heapExtract(), com::cosylab::acs::maci::manager::ManagerImpl::internalNoSyncDeactivateComponent(), com::cosylab::acs::maci::manager::ManagerImpl::internalNoSyncReleaseComponent(), com::cosylab::acs::maci::manager::ManagerImpl::internalNoSyncRequestComponent(), com::cosylab::acs::maci::manager::ManagerImpl::internalNoSyncRestartComponent(), com::cosylab::acs::maci::manager::ManagerImpl::internalReleaseComponent(), com::cosylab::acs::maci::manager::ManagerImpl::internalRestartComponent(), com::cosylab::acs::maci::manager::ManagerImpl::makeComponentImmortal(), com::cosylab::acs::maci::manager::ComponentInfoTopologicalSort::markImmortalChain(), com::cosylab::acs::maci::manager::ManagerImpl::registerComponent(), com::cosylab::acs::maci::manager::ManagerImpl::securityCheck(), and com::cosylab::acs::maci::test::ManagerImplTest::testContainerToManagerStateTransferComponents().
| String [] com::cosylab::acs::maci::ComponentInfo::getInterfaces | ( | ) | [inline] |
Returns the interfaces.
References interfaces.
Referenced by com::cosylab::acs::maci::manager::ManagerImpl::containerInternalStateMerge(), com::cosylab::acs::maci::plug::ManagerProxyImpl::get_component_info(), and com::cosylab::acs::maci::manager::ManagerImpl::internalNoSyncRequestComponent().
| int com::cosylab::acs::maci::ComponentInfo::getKeepAliveTime | ( | ) | [inline] |
Get component keep alive time.
References keepAliveTime.
Referenced by com::cosylab::acs::maci::manager::ManagerImpl::internalNoSyncReleaseComponent(), and com::cosylab::acs::maci::manager::ManagerImpl::internalNoSyncRequestComponent().
| String com::cosylab::acs::maci::ComponentInfo::getName | ( | ) | [inline] |
Returns the name.
References name.
Referenced by com::cosylab::acs::maci::manager::ManagerImpl::checkCyclicDependency(), com::cosylab::acs::maci::manager::ManagerImpl::containerInternalStateMerge(), com::cosylab::acs::maci::manager::ManagerImpl::containerPostLoginActivation(), com::cosylab::acs::maci::manager::ManagerImpl::getCollocatedComponent(), com::cosylab::acs::maci::manager::ManagerImpl::getComponentInfo(), com::cosylab::acs::maci::manager::ManagerImpl::getComponentNonSticky(), com::cosylab::acs::maci::manager::ManagerImpl::getDynamicComponent(), com::cosylab::acs::maci::manager::ManagerImpl::getRequestorName(), com::cosylab::acs::maci::manager::ManagerImpl::hasCDBEntry(), com::cosylab::acs::maci::manager::ManagerImpl::internalDeactivateComponent(), com::cosylab::acs::maci::manager::ManagerImpl::internalNoSyncDeactivateComponent(), com::cosylab::acs::maci::manager::ManagerImpl::internalNoSyncReleaseComponent(), com::cosylab::acs::maci::manager::ManagerImpl::internalNoSyncRequestComponent(), com::cosylab::acs::maci::manager::ManagerImpl::internalNoSyncRestartComponent(), com::cosylab::acs::maci::manager::ManagerImpl::internalReleaseComponent(), com::cosylab::acs::maci::manager::ManagerImpl::internalRequestDefaultComponent(), com::cosylab::acs::maci::manager::ManagerImpl::internalRequestDynamicComponent(), com::cosylab::acs::maci::manager::ManagerImpl::internalRestartComponent(), com::cosylab::acs::maci::manager::ManagerImpl::makeComponentImmortal(), com::cosylab::acs::maci::manager::ManagerImpl::makeUnavailable(), com::cosylab::acs::maci::manager::ManagerImpl::registerComponent(), com::cosylab::acs::maci::test::ManagerImplTest::testComponentKeepAliveTime(), com::cosylab::acs::maci::test::ManagerImplTest::testGetCollocatedComponent(), com::cosylab::acs::maci::test::ManagerImplTest::testGetComponent(), and com::cosylab::acs::maci::test::ManagerImplTest::testGetDynamicComponent().
| String com::cosylab::acs::maci::ComponentInfo::getType | ( | ) | [inline] |
Returns the type.
References type.
Referenced by com::cosylab::acs::maci::manager::ManagerImpl::containerInternalStateMerge(), com::cosylab::acs::maci::manager::ManagerImpl::getCollocatedComponent(), com::cosylab::acs::maci::manager::ManagerImpl::getComponentInfo(), com::cosylab::acs::maci::manager::ManagerImpl::getDynamicComponent(), com::cosylab::acs::maci::manager::ManagerImpl::hasCDBEntry(), com::cosylab::acs::maci::manager::ManagerImpl::internalNoSyncRequestComponent(), com::cosylab::acs::maci::manager::ManagerImpl::internalRequestDefaultComponent(), and com::cosylab::acs::maci::manager::ManagerImpl::registerComponent().
| boolean com::cosylab::acs::maci::ComponentInfo::isDynamic | ( | ) | [inline] |
| void com::cosylab::acs::maci::ComponentInfo::setAccessRights | ( | int | accessRights | ) | [inline] |
Sets the access rights.
| accessRights | The access rights to set |
Referenced by com::cosylab::acs::maci::plug::ContainerProxy::activate_component(), com::cosylab::acs::maci::manager::ManagerImpl::containerInternalStateMerge(), com::cosylab::acs::maci::plug::ContainerProxy::get_component_info(), com::cosylab::acs::maci::plug::ManagerProxy::getComponentInfo(), com::cosylab::acs::maci::manager::ManagerImpl::internalNoSyncRequestComponent(), and com::cosylab::acs::maci::manager::ManagerImpl::registerComponent().
| void com::cosylab::acs::maci::ComponentInfo::setClients | ( | IntArray | clients | ) | [inline] |
Sets the clients.
| clients | The clients to set |
Referenced by com::cosylab::acs::maci::plug::ContainerProxy::activate_component(), com::cosylab::acs::maci::plug::ContainerProxy::get_component_info(), com::cosylab::acs::maci::plug::ManagerProxy::getComponentInfo(), and com::cosylab::acs::maci::manager::ManagerImpl::internalNoSyncRequestComponent().
| void com::cosylab::acs::maci::ComponentInfo::setCode | ( | String | code | ) | [inline] |
Sets the code.
| code | The code to set |
| void com::cosylab::acs::maci::ComponentInfo::setComponent | ( | Component | component | ) | [inline] |
Sets the component.
| component | The component to set |
Referenced by com::cosylab::acs::maci::manager::ManagerImpl::containerInternalStateMerge(), and com::cosylab::acs::maci::manager::ManagerImpl::makeUnavailable().
| void com::cosylab::acs::maci::ComponentInfo::setComponents | ( | IntArray | components | ) | [inline] |
Sets the components.
| components | The components to set |
Referenced by com::cosylab::acs::maci::manager::ManagerImpl::internalNoSyncRequestComponent().
| void com::cosylab::acs::maci::ComponentInfo::setContainer | ( | int | container | ) | [inline] |
Sets the container.
| container | The container to set |
Referenced by com::cosylab::acs::maci::test::TestContainer::activate_component(), com::cosylab::acs::maci::plug::ContainerProxy::activate_component(), com::cosylab::acs::maci::manager::ManagerImpl::containerInternalStateMerge(), com::cosylab::acs::maci::plug::ContainerProxy::get_component_info(), com::cosylab::acs::maci::plug::ManagerProxy::getComponentInfo(), com::cosylab::acs::maci::manager::ManagerImpl::internalNoSyncRequestComponent(), com::cosylab::acs::maci::manager::ManagerImpl::makeUnavailable(), com::cosylab::acs::maci::manager::ManagerImpl::registerComponent(), and com::cosylab::acs::maci::test::ManagerImplTest::testContainerToManagerStateTransferComponents().
| void com::cosylab::acs::maci::ComponentInfo::setContainerName | ( | String | containerName | ) | [inline] |
Set container name.
| containerName | The container name to set. |
Referenced by com::cosylab::acs::maci::test::TestContainer::activate_component(), com::cosylab::acs::maci::plug::ContainerProxy::activate_component(), com::cosylab::acs::maci::manager::ManagerImpl::containerInternalStateMerge(), com::cosylab::acs::maci::plug::ContainerProxy::get_component_info(), com::cosylab::acs::maci::plug::ManagerProxy::getComponentInfo(), com::cosylab::acs::maci::manager::ManagerImpl::getComponentInfo(), com::cosylab::acs::maci::manager::ManagerImpl::internalNoSyncRequestComponent(), com::cosylab::acs::maci::manager::ManagerImpl::registerComponent(), and com::cosylab::acs::maci::test::ManagerImplTest::testContainerToManagerStateTransferComponents().
| void com::cosylab::acs::maci::ComponentInfo::setDynamic | ( | boolean | b | ) | [inline] |
Set dynamic flag.
| b | dynamic flag. |
References isDynamic().
Referenced by com::cosylab::acs::maci::manager::ManagerImpl::containerInternalStateMerge(), and com::cosylab::acs::maci::manager::ManagerImpl::internalNoSyncRequestComponent().
| void com::cosylab::acs::maci::ComponentInfo::setDynamicContainerName | ( | String | string | ) | [inline] |
Set container on which dynamic component was activated.
| string | container on which dynamic component was activated. |
References dynamicContainerName.
Referenced by com::cosylab::acs::maci::manager::ManagerImpl::containerInternalStateMerge(), and com::cosylab::acs::maci::manager::ManagerImpl::internalNoSyncRequestComponent().
| void com::cosylab::acs::maci::ComponentInfo::setHandle | ( | int | handle | ) | [inline] |
Sets the handle.
| handle | The handle to set |
Referenced by com::cosylab::acs::maci::manager::ManagerImpl::internalNoSyncRequestComponent().
| void com::cosylab::acs::maci::ComponentInfo::setInterfaces | ( | String[] | interfaces | ) | [inline] |
Sets the interfaces.
| interfaces | The interfaces to set |
Referenced by com::cosylab::acs::maci::test::TestContainer::activate_component(), com::cosylab::acs::maci::plug::ContainerProxy::activate_component(), com::cosylab::acs::maci::manager::ManagerImpl::containerInternalStateMerge(), com::cosylab::acs::maci::plug::ContainerProxy::get_component_info(), com::cosylab::acs::maci::plug::ManagerProxy::getComponentInfo(), com::cosylab::acs::maci::manager::ManagerImpl::internalNoSyncRequestComponent(), com::cosylab::acs::maci::manager::ManagerImpl::registerComponent(), and com::cosylab::acs::maci::test::ManagerImplTest::testContainerToManagerStateTransferComponents().
| void com::cosylab::acs::maci::ComponentInfo::setKeepAliveTime | ( | int | keepAliveTime | ) | [inline] |
Set component keep alive time.
| keepAliveTime | the keepAliveTime to set. |
Referenced by com::cosylab::acs::maci::manager::ManagerImpl::internalNoSyncRequestComponent().
| void com::cosylab::acs::maci::ComponentInfo::setName | ( | String | name | ) | [inline] |
Sets the name.
| name | The name to set |
Referenced by com::cosylab::acs::maci::manager::ManagerImpl::getComponentInfo().
| void com::cosylab::acs::maci::ComponentInfo::setType | ( | String | type | ) | [inline] |
Sets the type.
| type | The type to set |
| String com::cosylab::acs::maci::ComponentInfo::toString | ( | ) | [inline] |
int com::cosylab::acs::maci::ComponentInfo::accessRights [private] |
Required access rights to access this component. When a client attempts to access the component (via Manager's get_component), the bitwise AND of client's access and component's access must yield component's access in order for the client to have the permission to access the component.
Referenced by getAccessRights().
Specifies the clients that have requested and successfuly obtained a reference to this component from the Manager. If a client has done so more than once, its handle is not repeated. For immortal and startup components this list always contains at least one handle - the Manager. Thus, the only way to deactivate these components is by deactivating the Manager.
Referenced by ComponentInfo(), and getClients().
String com::cosylab::acs::maci::ComponentInfo::code [private] |
The code of the component. Path to the executable file (a DLL, a shared library, or Java class name) in which the component's code resides. Can be null, if unknown.
Referenced by getCode(), and toString().
Reference to the component, null if the component has not yet been activated.
Referenced by getComponent(), and toString().
Specifies the components that have been requested and successfuly obtained a reference by this component from the Manager. If a component has done so more than once, its handle is not repeated.
Referenced by ComponentInfo(), and getComponents().
int com::cosylab::acs::maci::ComponentInfo::container [private] |
Handle to the container which hosts the component. This handle is 0 if the component has not been activated by an component, but by some other means, and has only been registered with the Manager through register_component.
Referenced by getContainer(), and toString().
String com::cosylab::acs::maci::ComponentInfo::containerName [private] |
Name of the container which hosts the component.
Referenced by getContainerName(), and toString().
String com::cosylab::acs::maci::ComponentInfo::dynamicContainerName [private] |
Name of the container on which dynamic component was activated. NOTE: this attribute is internal.
Referenced by getDynamicContainerName(), and setDynamicContainerName().
int com::cosylab::acs::maci::ComponentInfo::handle [private] |
Component's handle. The handle is automatically assigned by the Manager.
Referenced by getHandle(), and toString().
String [] com::cosylab::acs::maci::ComponentInfo::interfaces [private] |
A list of all interfaces supported by the component. The first interface in the list is the default interface.
Referenced by getInterfaces().
boolean com::cosylab::acs::maci::ComponentInfo::isDynamic [private] |
Dynamic component flag. NOTE: this attribute is internal.
Referenced by com::cosylab::acs::maci::manager::ManagerImpl::containerPostLoginActivation(), com::cosylab::acs::maci::manager::ManagerImpl::hasCDBEntry(), and com::cosylab::acs::maci::manager::ManagerImpl::internalNoSyncRequestComponent().
int com::cosylab::acs::maci::ComponentInfo::keepAliveTime [private] |
Keep alive time of a component (needed for dynamic components). NOTE: this attribute is internal.
Referenced by ComponentInfo(), and getKeepAliveTime().
String com::cosylab::acs::maci::ComponentInfo::name [private] |
Name of the component (without the domain). The name of the component must be unique within the domain, and can be used to identify the component. The name can imply hierarchy, which it does by separating name components with a '/' (slash).
Referenced by compareTo(), getName(), and toString().
final long com::cosylab::acs::maci::ComponentInfo::serialVersionUID = -4376414924118239593L [static, private] |
Serial version UID.
String com::cosylab::acs::maci::ComponentInfo::type [private] |
The type of the component. Uniquely identifies the code-base which the component's servant is executing. Given the type name and a hypothetical type library it is possible to infer supported interfaces, version information, etc.
Referenced by getType(), and toString().
1.6.2