#include <acsContainerServices.h>
Inheritance diagram for maci::ContainerServices:
Public Member Functions | |
ContainerServices (ACE_CString &compName, PortableServer::POA_ptr poa) | |
virtual | ~ContainerServices () |
ACE_CString | getName () |
PortableServer::POA_var | getPOA () |
void | registerComponentListener (ComponentListener *listener) |
void | fireComponentsUnavailable (ACE_CString_Vector &compNames) |
void | fireComponentsAvailable (ACE_CString_Vector &compNames) |
template<class T> T * | getComponent (const char *name) |
template<class T> T * | getComponentNonSticky (const char *name) |
template<class T> T * | getDynamicComponent (maci::ComponentSpec compSpec, bool markAsDefault) |
template<class T> T * | getCollocatedComponent (maci::ComponentSpec compSpec, bool markAsDefault, const char *targetComponent) |
template<class T> T * | getDefaultComponent (const char *idlType) |
template<typename T> SmartPtr< T > | getComponentSmartPtr (const char *name) |
template<typename T> SmartPtr< T > | getComponentNonStickySmartPtr (const char *name) |
template<typename T> SmartPtr< T > | getDynamicComponentSmartPtr (maci::ComponentSpec compSpec, bool markAsDefault) |
template<typename T> SmartPtr< T > | getCollocatedComponentSmartPtr (maci::ComponentSpec compSpec, bool markAsDefault, const char *targetComponent) |
template<typename T> SmartPtr< T > | getDefaultComponentSmartPtr (const char *idlType) |
virtual maci::ComponentInfo | getComponentDescriptor (const char *componentName)=0 |
virtual ACE_CString_Vector | findComponents (const char *nameWilcard, const char *typeWildcard)=0 |
virtual void | releaseComponent (const char *name)=0 |
virtual void | releaseAllComponents ()=0 |
virtual CDB::DAL_ptr | getCDB ()=0 |
virtual PortableServer::POA_var | getOffShootPOA ()=0 |
virtual ACS::OffShoot_ptr | activateOffShoot (PortableServer::Servant cbServant)=0 |
virtual void | deactivateOffShoot (PortableServer::Servant cbServant)=0 |
virtual PortableServer::POA_var | createOffShootPOA ()=0 |
virtual ComponentStateManager * | getComponentStateManager ()=0 |
virtual ACS::ThreadManager * | getThreadManager () |
Protected Member Functions | |
virtual CORBA::Object * | getCORBAComponent (const char *name)=0 |
virtual CORBA::Object * | getCORBAComponentNonSticky (const char *name)=0 |
virtual CORBA::Object * | getCORBADynamicComponent (maci::ComponentSpec compSpec, bool markAsDefault)=0 |
virtual CORBA::Object * | getCORBACollocatedComponent (maci::ComponentSpec compSpec, bool markAsDefault, const char *targetComponent)=0 |
virtual CORBA::Object * | getCORBADefaultComponent (const char *idlType)=0 |
Protected Attributes | |
ACE_CString | m_componentName |
ComponentListener * | compListener |
bool | withCompListener |
PortableServer::POA_var | m_poa |
ACS::ThreadManager | threadManager_m |
ContainerServices
is different from the other services that the container provides without the component implementation knowing about it. It can be thought of as a callback handle or a library. Currently, methods are added to this interface as the functionality becomes available.
|
Constructor
|
|
Destructor |
|
Activates a CORBA servant that implements the OffShoot interface.
Implemented in TestContainerServices, maci::MACIContainerServices, and StaticContainerServices.
|
|
Create the offshoot POA
Implemented in TestContainerServices, maci::MACIContainerServices, and StaticContainerServices.
|
|
Deactivate the offshoot CORBA servant
Implemented in TestContainerServices, maci::MACIContainerServices, and StaticContainerServices.
|
|
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.
Implemented in TestContainerServices, maci::MACIContainerServices, and StaticContainerServices.
|
|
Reimplemented in maci::MACIContainerServices.
|
|
Reimplemented in maci::MACIContainerServices.
|
|
Get a reference to the DAL object
Implemented in TestContainerServices, maci::MACIContainerServices, and StaticContainerServices.
|
|
Gets a collocated component This method uses templates, so no cast to the request object is required
|
|
Gets a smart ponter to a collocated component This method uses templates, so no cast to the request object is required
|
|
Gets the specified component This method uses templates, so no cast to the request object is required
|
|
Gets the component info for the component
Implemented in TestContainerServices, maci::MACIContainerServices, and StaticContainerServices.
|
|
Gets the specified component as non sticky. for the details of getting a componet non sticky see #get_component_non_sticky This method uses templates, so no cast to the request object is required
|
|
Gets a smart pointer to the specified component as non sticky. for the details of getting a componet non sticky see #get_component_non_sticky This method uses templates, so no cast to the request object is required
|
|
Gets a smart pointer to the specified component This method uses templates, so no cast to the request object is required
|
|
Returns a pointer to the
The component needs to access the
Implemented in TestContainerServices, maci::MACIContainerServices, and StaticContainerServices.
|
|
Gets a collocated component as a Corba object.
Implemented in TestContainerServices, maci::MACIContainerServices, and StaticContainerServices.
|
|
Gets the specified component as a Corba object.
Implemented in TestContainerServices, maci::MACIContainerServices, and StaticContainerServices.
|
|
Gets the specified component non sticky as a Corba object. for details about getting a component non sticky see #get_component_non_sticky
Implemented in TestContainerServices, maci::MACIContainerServices, and StaticContainerServices.
|
|
Gets the default component specified by the IDL component type as a CORBA object.
Implemented in TestContainerServices, maci::MACIContainerServices, and StaticContainerServices.
|
|
Gets a dynamic component as a Corba object.
Implemented in TestContainerServices, maci::MACIContainerServices, and StaticContainerServices.
|
|
Gets the default component specified by the IDL component type. This method uses templates, so no cast to the request object is required
|
|
Gets a smart pointer to the default component specified by the IDL component type. This method uses templates, so no cast to the request object is required
|
|
Gets a dynamic component This method uses templates, so no cast to the request object is required
|
|
Gets a smart pointer to a dynamic component This method uses templates, so no cast to the request object is required
|
|
Return the name of the component
|
|
Get the OffShoot POA
Implemented in TestContainerServices, maci::MACIContainerServices, and StaticContainerServices.
|
|
Get POA reference This function is used to return m_poa because inherited classes would not have access to it otherwise.
|
|
Returns a pointer to the
|
|
|
|
Release all the components
Implemented in TestContainerServices, maci::MACIContainerServices, and StaticContainerServices.
|
|
Releases the specified component.
Implemented in TestContainerServices, maci::MACIContainerServices, and StaticContainerServices.
|
|
|
|
|
|
POA reference This is a reference to the POA activating the component that owns this container services |
|
ThreadManager Thread Manager should be used for creating threads inside a component |
|
|