com::cosylab::acs::maci::ClientInfo Class Reference

Inheritance diagram for com::cosylab::acs::maci::ClientInfo:
Inheritance graph
[legend]
Collaboration diagram for com::cosylab::acs::maci::ClientInfo:
Collaboration graph
[legend]

List of all members.

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

Detailed Description

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.

Author:
Matej Sekoranja (matej.sekoranja@cosylab.com)
Version:
@VERSION@

Constructor & Destructor Documentation

com::cosylab::acs::maci::ClientInfo::ClientInfo ( int  handle,
String  name,
Client  client 
) [inline]

Creates an instance of ClientInfo with all necesarry data.

Parameters:
handle handle of the client.
name name of the client.
client client itself.
See also:
handle
name
client

References components.

Referenced by com::cosylab::acs::maci::test::ManagerImplSerializationTest::testClientLogin().


Member Function Documentation

int com::cosylab::acs::maci::ClientInfo::getAccessRights (  )  [inline]

Returns the accessRights.

Returns:
int

References accessRights.

Referenced by com::cosylab::acs::maci::manager::ManagerImpl::securityCheck().

Client com::cosylab::acs::maci::ClientInfo::getClient (  )  [inline]
IntArray com::cosylab::acs::maci::ClientInfo::getComponents (  )  [inline]
int com::cosylab::acs::maci::ClientInfo::getHandle (  )  [inline]

Returns the handle.

Returns:
int

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]
void com::cosylab::acs::maci::ClientInfo::setAccessRights ( int  accessRights  )  [inline]
void com::cosylab::acs::maci::ClientInfo::setClient ( Client  client  )  [inline]

Sets the client.

Parameters:
client The client to set
void com::cosylab::acs::maci::ClientInfo::setComponents ( IntArray  components  )  [inline]

Sets the components.

Parameters:
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.

Parameters:
handle The handle to set
void com::cosylab::acs::maci::ClientInfo::setName ( String  name  )  [inline]

Sets the name.

Parameters:
name The name to set
String com::cosylab::acs::maci::ClientInfo::toString (  )  [inline]

Returns a single-line rendition of this instance into text.

Returns:
internal state of this instance

References handle, and name.


Member Data Documentation

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().

Client's handle. The range depends on the class of the client (a Component, regular client, administrator, ...).

Referenced by getHandle(), and toString().

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.


The documentation for this class was generated from the following file:

Generated by  doxygen 1.6.2