

Public Member Functions | |
| ClientInfo (int handle, String name, Client client) | |
| int | getAccessRights () |
| Client | getClient () |
| IntArray | getComponents () |
| int | getHandle () |
| String | getName () |
| void | setAccessRights (int accessRights) |
| void | setClient (Client client) |
| void | setHandle (int handle) |
| void | setName (String name) |
| void | setComponents (IntArray components) |
| String | toString () |
Private Attributes | |
| int | handle |
| String | name |
| Client | client |
| IntArray | components |
| int | accessRights |
Static Private Attributes | |
| static final long | serialVersionUID = 860176672630128907L |
Structure in which the Manager stores information about a client. Here, a client is any entity that accesses components, and therefore a Component can also act as a client.
| com::cosylab::acs::maci::ClientInfo::ClientInfo | ( | int | handle, | |
| String | name, | |||
| Client | client | |||
| ) | [inline] |
Creates an instance of ClientInfo with all necesarry data.
| handle | handle of the client. | |
| name | name of the client. | |
| client | client itself. |
References components.
Referenced by com::cosylab::acs::maci::test::ManagerImplSerializationTest::testClientLogin().
| int com::cosylab::acs::maci::ClientInfo::getAccessRights | ( | ) | [inline] |
Returns the accessRights.
References accessRights.
Referenced by com::cosylab::acs::maci::manager::ManagerImpl::securityCheck().
| Client com::cosylab::acs::maci::ClientInfo::getClient | ( | ) | [inline] |
Returns the client.
References client.
Referenced by com::cosylab::acs::maci::manager::ManagerImpl::administratorLogin(), com::cosylab::acs::maci::manager::ManagerImpl::clientLogin(), com::cosylab::acs::maci::manager::ManagerImpl::notifyClientDisconnectShutdown(), com::cosylab::acs::maci::manager::ManagerImpl::notifyClientLogin(), com::cosylab::acs::maci::manager::ManagerImpl::notifyClientLogout(), com::cosylab::acs::maci::manager::ManagerImpl::notifyComponentActivated(), com::cosylab::acs::maci::manager::ManagerImpl::notifyComponentAvailable(), com::cosylab::acs::maci::manager::ManagerImpl::notifyComponentDeactivated(), com::cosylab::acs::maci::manager::ManagerImpl::notifyComponentReleased(), com::cosylab::acs::maci::manager::ManagerImpl::notifyComponentRequested(), com::cosylab::acs::maci::manager::ManagerImpl::notifyComponentUnavailable(), com::cosylab::acs::maci::manager::ManagerImpl::notifyContainerLogin(), com::cosylab::acs::maci::manager::ManagerImpl::notifyContainerLogout(), com::cosylab::acs::maci::manager::PingTimerTask::run(), and com::cosylab::acs::maci::test::ManagerImplTest::testLogin().
| IntArray com::cosylab::acs::maci::ClientInfo::getComponents | ( | ) | [inline] |
Returns the components.
References components.
Referenced by com::cosylab::acs::maci::manager::ManagerImpl::addComponentOwner(), com::cosylab::acs::maci::manager::ManagerImpl::administratorLogout(), com::cosylab::acs::maci::manager::ManagerImpl::clientLogout(), com::cosylab::acs::maci::manager::recovery::ClientInfoCommandComponentRemove::execute(), and com::cosylab::acs::maci::manager::recovery::ClientInfoCommandComponentAdd::execute().
| int com::cosylab::acs::maci::ClientInfo::getHandle | ( | ) | [inline] |
Returns the handle.
References handle.
Referenced by com::cosylab::acs::maci::test::TestHierarchicalComponent::activateSubComponents(), com::cosylab::acs::maci::manager::ManagerImpl::administratorLogout(), com::cosylab::acs::maci::manager::ManagerImpl::clientLogout(), com::cosylab::acs::maci::test::TestHierarchicalComponent::destruct(), com::cosylab::acs::maci::manager::ManagerImpl::getAdministrators(), com::cosylab::acs::maci::manager::ManagerImpl::getRequestorName(), com::cosylab::acs::maci::test::ManagerImplTest::internalTestGetHierarchicalComponent(), com::cosylab::acs::maci::test::ManagerImplTest::internalTestGetHierarchicalComponentPassingComponentHandle(), com::cosylab::acs::maci::manager::ManagerImpl::login(), com::cosylab::acs::maci::manager::PingTimerTask::logout(), com::cosylab::acs::maci::manager::ManagerImpl::notifyClientLogin(), com::cosylab::acs::maci::manager::ManagerImpl::notifyClientLogout(), com::cosylab::acs::maci::manager::PingTimerTask::run(), com::cosylab::acs::maci::manager::ManagerImpl::securityCheck(), com::cosylab::acs::maci::test::TestDaemon::startContainer(), com::cosylab::acs::maci::test::ManagerImplTest::testAdministratorNotifications(), com::cosylab::acs::maci::test::ManagerImplTest::testAllComponentNames(), com::cosylab::acs::maci::test::ManagerImplTest::testClientInfo(), com::cosylab::acs::maci::test::ManagerImplTest::testComponentInfo(), com::cosylab::acs::maci::test::ManagerImplTest::testComponentInfoTopologicalSort(), com::cosylab::acs::maci::test::ManagerImplTest::testComponentKeepAliveTime(), com::cosylab::acs::maci::test::ManagerImplTest::testConcurrentContainersLogin(), com::cosylab::acs::maci::test::ManagerImplTest::testContainerInfo(), com::cosylab::acs::maci::test::ManagerImplTest::testContainerShutdown(), com::cosylab::acs::maci::test::ManagerImplTest::testContainerToManagerStateTransferComponents(), com::cosylab::acs::maci::test::ManagerImplTest::testExpiredHandle(), com::cosylab::acs::maci::test::ManagerImplTest::testForceReleaseComponent(), com::cosylab::acs::maci::test::ManagerImplTest::testGetCollocatedComponent(), com::cosylab::acs::maci::test::ManagerImplTest::testGetComponent(), com::cosylab::acs::maci::test::ManagerImplTest::testGetCyclicHierachicalComponent(), com::cosylab::acs::maci::test::ManagerImplTest::testGetCyclicHierachicalComponentAllowWithPreactivated(), com::cosylab::acs::maci::test::ManagerImplTest::testGetDefaultComponent(), com::cosylab::acs::maci::test::ManagerImplTest::testGetDynamicComponent(), com::cosylab::acs::maci::test::ManagerImplTest::testLogin(), com::cosylab::acs::maci::test::ManagerImplTest::testLogout(), com::cosylab::acs::maci::test::ManagerImplTest::testMakeComponentMortal(), com::cosylab::acs::maci::test::ManagerImplTest::testManagerShutdownWithComponentDestruction(), com::cosylab::acs::maci::test::ManagerImplTest::testManagerToContainerStateTransferComponents(), com::cosylab::acs::maci::test::ManagerImplTest::testOnDemandContainer(), com::cosylab::acs::maci::test::ManagerImplTest::testOnDemandContainerStartupComponents(), com::cosylab::acs::maci::test::ManagerImplTest::testPing(), com::cosylab::acs::maci::test::ManagerImplTest::testRegisterComponent(), com::cosylab::acs::maci::test::ManagerImplTest::testRestartComponent(), com::cosylab::acs::maci::test::ManagerImplTest::testSequentialContainersLogin(), com::cosylab::acs::maci::test::ManagerImplTest::testShutdown(), com::cosylab::acs::maci::test::ManagerImplTest::testStartupComponents(), and com::cosylab::acs::maci::test::ManagerImplTest::testUnregisterComponent().
| String com::cosylab::acs::maci::ClientInfo::getName | ( | ) | [inline] |
Returns the name.
References name.
Referenced by com::cosylab::acs::maci::manager::ManagerImpl::administratorLogout(), com::cosylab::acs::maci::manager::PingTimerTask::clear_alarm(), com::cosylab::acs::maci::manager::ManagerImpl::clientLogout(), com::cosylab::acs::maci::manager::ManagerImpl::getClientInfo(), com::cosylab::acs::maci::manager::ManagerImpl::getRequestorName(), com::cosylab::acs::maci::manager::PingTimerTask::raise_alarm(), com::cosylab::acs::maci::manager::PingTimerTask::run(), and com::cosylab::acs::maci::test::ManagerImplTest::testContainerToManagerStateTransferComponents().
| void com::cosylab::acs::maci::ClientInfo::setAccessRights | ( | int | accessRights | ) | [inline] |
Sets the accessRights.
| accessRights | The accessRights to set |
Referenced by com::cosylab::acs::maci::manager::ManagerImpl::administratorLogin(), com::cosylab::acs::maci::manager::ManagerImpl::clientLogin(), and com::cosylab::acs::maci::manager::TimerTaskContainerInfo::createClientInfo().
| void com::cosylab::acs::maci::ClientInfo::setClient | ( | Client | client | ) | [inline] |
Sets the client.
| client | The client to set |
| void com::cosylab::acs::maci::ClientInfo::setComponents | ( | IntArray | components | ) | [inline] |
Sets the components.
| components | The components to set |
Referenced by com::cosylab::acs::maci::manager::TimerTaskContainerInfo::createClientInfo().
| void com::cosylab::acs::maci::ClientInfo::setHandle | ( | int | handle | ) | [inline] |
Sets the handle.
| handle | The handle to set |
| void com::cosylab::acs::maci::ClientInfo::setName | ( | String | name | ) | [inline] |
Sets the name.
| name | The name to set |
| String com::cosylab::acs::maci::ClientInfo::toString | ( | ) | [inline] |
int com::cosylab::acs::maci::ClientInfo::accessRights [private] |
Specifies the access rights of the client. These access rights are used by the Manager in determining the client's access rights.
Referenced by getAccessRights().
Reference to the client's object. If the client is a Component, this is the reference to the Container which hosts the Component.
Referenced by getClient().
Specifies the components to which the client has requested and successfuly obtained a reference from the Manager. If a client has done so more than once for the same component, component's handle is repeated.
Referenced by ClientInfo(), and getComponents().
int com::cosylab::acs::maci::ClientInfo::handle [private] |
Client's handle. The range depends on the class of the client (a Component, regular client, administrator, ...).
Referenced by getHandle(), and toString().
String com::cosylab::acs::maci::ClientInfo::name [private] |
Client's name. This is the same name as given by Client::name for non-Component clients, and Component's name for Component clients.
Referenced by getName(), and toString().
final long com::cosylab::acs::maci::ClientInfo::serialVersionUID = 860176672630128907L [static, private] |
Serial version UID.
Reimplemented in com::cosylab::acs::maci::manager::TimerTaskClientInfo.
1.6.2