00001 #ifndef _TASK_STATIC_CONTAINER_SERVICES_H 00002 #define _TASK_STATIC_CONTAINER_SERVICES_H 00003 /******************************************************************************* 00004 * E.S.O. - VLT project 00005 * 00006 * "@(#) $Id: taskStaticContainerServices.h,v 1.10 2008/10/09 07:22:33 cparedes Exp $" 00007 * 00008 * who when what 00009 * -------- ---------- ---------------------------------------------- 00010 * bjeram yyyy-mm-dd created 00011 */ 00012 00013 /************************************************************************ 00014 * 00015 *---------------------------------------------------------------------- 00016 */ 00017 00018 #ifndef __cplusplus 00019 #error This is a C++ include file and cannot be used from plain C 00020 #endif 00021 00022 00023 #include <acsContainerServices.h> 00024 #include <maciComponentStateManager.h> 00025 00026 00027 class StaticContainerServices: public maci::ContainerServices 00028 00029 { 00030 public: 00031 00035 StaticContainerServices( 00036 const maci::Handle componentHandle, 00037 ACE_CString& name, 00038 PortableServer::POA_ptr poa, 00039 CORBA::ORB_ptr orb ); 00040 00044 virtual ~StaticContainerServices(){} 00045 00046 public: 00047 00051 CORBA::Object* getCORBAComponent(const char* name) 00052 { 00053 return CORBA::Object::_nil(); 00054 } 00055 00059 CORBA::Object* getCORBAComponentNonSticky(const char* name) 00060 { 00061 return CORBA::Object::_nil(); 00062 } 00063 00071 CORBA::Object* getCORBADynamicComponent(maci::ComponentSpec compSpec, bool markAsDefault) 00072 { 00073 return CORBA::Object::_nil(); 00074 } 00075 00081 CORBA::Object* getCORBADefaultComponent(const char* idlType) 00082 { 00083 return CORBA::Object::_nil(); 00084 } 00085 00093 maci::ComponentInfo getComponentDescriptor(const char* componentName) 00094 { return maci::ComponentInfo(); } 00095 00110 ACE_CString_Vector findComponents(const char *nameWilcard, const char *typeWildcard) { return ACE_CString_Vector(); } 00111 00122 void releaseComponent(const char *name) 00123 {} 00124 00130 void releaseAllComponents(){} 00131 00141 CDB::DAL_ptr getCDB(); 00142 00145 PortableServer::POA_var getOffShootPOA() { return PortableServer::POA::_nil(); } 00146 00156 ACS::OffShoot_ptr activateOffShoot(PortableServer::Servant cbServant) { return ACS::OffShoot::_nil(); } 00157 00164 void deactivateOffShoot(PortableServer::Servant cbServant) 00165 {} 00166 00171 PortableServer::POA_var createOffShootPOA(){ return PortableServer::POA::_nil(); } 00172 00190 maci::ComponentStateManager* getComponentStateManager() 00191 { 00192 return &componentStateManager_m; 00193 } 00194 00195 /* 00196 * @throw maciErrType::IncompleteComponentSpecEx 00197 * @throw maciErrType::InvalidComponentSpecEx 00198 * @throw maciErrType::ComponentSpecIncompatibleWithActiveComponentEx 00199 * @throw maciErrType::CannotGetComponentEx 00200 */ 00201 virtual CORBA::Object* getCORBACollocatedComponent(maci::ComponentSpec, 00202 bool, const char*) 00203 { 00204 return CORBA::Object::_nil(); 00205 } 00206 00207 private: 00208 CORBA::ORB_var orb_m; 00209 00211 // maci::ContainerImpl *m_containerImpl; 00212 00214 maci::Handle m_componentHandle; 00215 00217 maci::MACIComponentStateManager componentStateManager_m; 00218 00219 }; 00220 00221 #endif