TestContainerServices

NAME
SYNOPSIS
Constructor & Destructor Documentation
Member Function Documentation
Member Data Documentation
Author

NAME

TestContainerServices −

SYNOPSIS

#include <baciTestContainerServices.h>

Inherits maci::ContainerServices.

Public Member Functions

TestContainerServices (ACE_CString &compName, ACE_CString &type, PortableServer::POA_ptr poa, CORBA::ORB_ptr orb)

virtual maci::ComponentInfo getComponentDescriptor (const char *componentName)

virtual ACE_CString_Vector findComponents (const char *nameWilcard, const char *typeWildcard)

virtual void releaseComponent (const char *name)

virtual void releaseAllComponents ()

virtual CDB::DAL_ptr getCDB ()

virtual PortableServer::POA_var getOffShootPOA ()

virtual void deactivateOffShoot (PortableServer::Servant cbServant)

virtual PortableServer::POA_var createOffShootPOA ()

virtual ACS::OffShoot_ptr activateOffShoot (PortableServer::Servant cbServant)

virtual maci::ComponentStateManager * getComponentStateManager ()

virtual acsalarm::AlarmSource * getAlarmSource ()

Public Attributes

CORBA::ORB_var m_orb

Protected Member Functions

virtual CORBA::Object * getCORBAComponent (const char *name)

virtual CORBA::Object * getCORBADynamicComponent (maci::ComponentSpec compSpec, bool markAsDefault)

virtual CORBA::Object * getCORBADefaultComponent (const char *idlType)

virtual CORBA::Object * getCORBACollocatedComponent (maci::ComponentSpec, bool, const char *)

CORBA::Object * getCORBAComponentNonSticky (const char *)

Constructor & Destructor Documentation

TestContainerServices::TestContainerServices (ACE_CString & compName, ACE_CString & type, PortableServer::POA_ptr poa, CORBA::ORB_ptr orb) [inline]

References maci::ContainerServices::m_componentType.

Member Function Documentation

virtual ACS::OffShoot_ptr TestContainerServices::activateOffShoot (PortableServer::Servant cbServant) [inline, virtual] Activates a CORBA servant that implements the OffShoot interface.

Parameters:

cbServant the CORBA-generated servant, e.g. CBdoublePOA

Returns:

A reference to the OffShoot

Implements maci::ContainerServices.

virtual PortableServer::POA_var TestContainerServices::createOffShootPOA () [inline, virtual] Create the offshoot POA

Returns:

The newly created POA

Implements maci::ContainerServices.

virtual void TestContainerServices::deactivateOffShoot (PortableServer::Servant cbServant) [inline, virtual] Exceptions:

acsErrTypeContainerServices::OffShootDeactivationExImpl
acsErrTypeContainerServices::OffShootPOAExImpl

Implements maci::ContainerServices.

virtual ACE_CString_Vector TestContainerServices::findComponents (const char * nameWilcard, const char * typeWildcard) [inline, virtual] Finds components by their instance name (curl) and/or by their type. Wildcards can be used for the curl and type. This method returns a possibly empty array of component curls; for each curl, you may use getComponent to obtain the reference.

Parameters:

nameWildcard (null is understood as ’*’)
typeWildcard
(null is understood as ’*’)

Returns:

A vector of ACE_CString that contains the name of the component(s) that match the search.

Implements maci::ContainerServices.

virtual acsalarm::AlarmSource* TestContainerServices::getAlarmSource () [inline, virtual] Returns a pointer to the AlarmSource object used to send alarms in a smart way.

Returns:

the alarm source object owned by this Container Services

See also:

alma.ACS.ComponentStates

Implements maci::ContainerServices.

virtual CDB::DAL_ptr TestContainerServices::getCDB () [inline, virtual] Exceptions:

acsErrTypeContainerServices::CanNotGetCDBExImpl

Implements maci::ContainerServices.

References ACS_LOG, ACS_SHORT_LOG, ACSPorts::getCDBPort(), ACSPorts::getIP(), and m_orb.

virtual maci::ComponentInfo TestContainerServices::getComponentDescriptor (const char * componentName) [inline, virtual] Exceptions:

acsErrTypeContainerServices::GettingCompInfoExImpl

Implements maci::ContainerServices.

virtual maci::ComponentStateManager* TestContainerServices::getComponentStateManager () [inline, virtual] Returns a pointer to the ComponentStateManager through which the component and the container administrate the state of the component.

The component needs to access the ComponentStateManager if it wishes to change its state. If it doesn’t, only the container will change the state based on the information it has available.

Returns:

the state manager

See also:

alma.ACS.ComponentStates

Implements maci::ContainerServices.

virtual CORBA::Object* TestContainerServices::getCORBACollocatedComponent (maci::ComponentSpec, bool, const char *) [inline, protected, virtual] Exceptions:

maciErrType::IncompleteComponentSpecExImpl
maciErrType::InvalidComponentSpecExImpl
maciErrType::ComponentSpecIncompatibleWithActiveComponentExImpl
maciErrType::CannotGetComponentExImpl

Implements maci::ContainerServices.

virtual CORBA::Object* TestContainerServices::getCORBAComponent (const char * name) [inline, protected, virtual] Exceptions:

maciErrType::CannotGetComponentExImpl

Implements maci::ContainerServices.

CORBA::Object* TestContainerServices::getCORBAComponentNonSticky (const char *) [inline, protected, virtual] Exceptions:

maciErrType::CannotGetComponentExImpl

Implements maci::ContainerServices.

virtual CORBA::Object* TestContainerServices::getCORBADefaultComponent (const char * idlType) [inline, protected, virtual] Exceptions:

maciErrType::NoDefaultComponentExImpl
maciErrType::CannotGetComponentExImpl

Implements maci::ContainerServices.

virtual CORBA::Object* TestContainerServices::getCORBADynamicComponent (maci::ComponentSpec compSpec, bool markAsDefault) [inline, protected, virtual] Exceptions:

maciErrType::IncompleteComponentSpecExImp
maciErrType::InvalidComponentSpecExImpl
maciErrType::ComponentSpecIncompatibleWithActiveComponentExImpl
maciErrType::CannotGetComponentExImpl

Implements maci::ContainerServices.

virtual PortableServer::POA_var TestContainerServices::getOffShootPOA () [inline, virtual] Get the OffShoot POA

Returns:

The offshoot POA

Implements maci::ContainerServices.

virtual void TestContainerServices::releaseAllComponents () [inline, virtual] Release all the components

Returns:

void

Implements maci::ContainerServices.

virtual void TestContainerServices::releaseComponent (const char * name) [inline, virtual] Exceptions:

maciErrType::CannotReleaseComponentExImpl

Implements maci::ContainerServices.

Member Data Documentation

CORBA::ORB_var TestContainerServices::m_orb

Referenced by getCDB().

Author

Generated automatically by Doxygen for ACS-2015.2 C++ API from the source code.