Go to the documentation of this file.00001 #ifndef mockManager_h
00002 #define mockManager_h
00003
00004 #include <acsutil.h>
00005 #include <maciExport.h>
00006 #include <maciS.h>
00007 #include <cdb.h>
00008 #include <logging.h>
00009
00010 namespace maci
00011 {
00012 class maci_EXPORT MockManager: public virtual POA_maci::Manager, public virtual maci::Manager
00013 {
00014 public:
00015
00016 MockManager(void) { }
00017
00018
00019
00020
00021
00022
00023
00043 virtual maci::ClientInfo * login (maci::Client_ptr reference) { return NULL; }
00044
00048 virtual void logout (maci::Handle id) {}
00049
00059 virtual ::maci::Handle register_component (maci::Handle id, const char * component_url, const char * type, CORBA::Object_ptr c)
00060 { return 0; }
00061
00066 virtual void unregister_component (maci::Handle id, maci::Handle h) {}
00067
00084 virtual CORBA::Object_ptr get_service (maci::Handle id, const char * service_url, CORBA::Boolean activate);
00085
00100 virtual ::CORBA::Object_ptr get_component (maci::Handle id, const char * service_url, CORBA::Boolean activate)
00101 { return CORBA::Object::_nil(); }
00102
00131 virtual ::CORBA::Object_ptr get_component_non_sticky (maci::Handle id, const char * component_url)
00132 { return CORBA::Object::_nil(); }
00133
00143 virtual ::maci::ObjectSeq * get_services (maci::Handle id, const ::maci::CURLSeq & service_urls, CORBA::Boolean activate,
00144 maci::ulongSeq_out status)
00145 { return NULL; }
00146
00157 virtual ::maci::ObjectSeq * get_components (maci::Handle id, const maci::CURLSeq & component_urls, CORBA::Boolean activate,
00158 maci::ulongSeq_out status)
00159 { return NULL; }
00160
00168 virtual void make_component_immortal (maci::Handle id, const char * component_url, CORBA::Boolean immortal_state)
00169 {}
00170
00186 virtual ::CORBA::Long release_component (maci::Handle id, const char * component_url)
00187 { return 0; }
00188
00189 virtual void release_component_async (maci::Handle id, const char * component_url, ACS::CBlong_ptr cb, const ACS::CBDescIn& desc)
00190 {}
00191
00197 virtual ::CORBA::Long force_release_component (maci::Handle id, const char * component_url)
00198 { return 0; }
00199
00202 virtual void release_components (maci::Handle id, const ::maci::CURLSeq & component_urls)
00203 {}
00204
00212 virtual void shutdown (maci::Handle id, CORBA::ULong containers)
00213 {}
00214
00228 virtual ::maci::ContainerInfoSeq * get_container_info (maci::Handle id, const maci::HandleSeq & h, const char * name_wc)
00229 { return NULL; }
00230
00244 virtual maci::ClientInfoSeq * get_client_info (maci::Handle id, const maci::HandleSeq & h, const char * name_wc)
00245 { return NULL; }
00246
00269 virtual maci::ComponentInfoSeq * get_component_info (maci::Handle id, const maci::HandleSeq & h, const char * name_wc,
00270 const char * type_wc, CORBA::Boolean active_only)
00271 { return NULL; }
00272
00277 virtual ::CORBA::Object_ptr restart_component (maci::Handle client, const char * component_url)
00278 { return CORBA::Object::_nil(); }
00279
00287 virtual maci::ComponentInfo * get_dynamic_component (maci::Handle client, const maci::ComponentSpec & c, CORBA::Boolean mark_as_default)
00288 { return NULL; }
00289
00297 virtual maci::ComponentInfoSeq * get_dynamic_components (maci::Handle client, const maci::ComponentSpecSeq & components)
00298 { return NULL; }
00299
00308 virtual maci::ComponentInfo * get_collocated_component (maci::Handle client, const maci::ComponentSpec & c, CORBA::Boolean mark_as_default,
00309 const char * target_component)
00310 { return NULL; }
00311
00317 virtual maci::ComponentInfo * get_default_component (maci::Handle client, const char * component_type)
00318 { return NULL; }
00319
00323 virtual void shutdown_container (maci::Handle id, const char * container_name, CORBA::ULong action)
00324 {}
00325
00326
00327 virtual maci::LoggingConfigurable::LogLevels get_default_logLevels() { maci::LoggingConfigurable::LogLevels ll; return ll; }
00328 virtual maci::LoggingConfigurable::LogLevels get_logLevels(const char*) { maci::LoggingConfigurable::LogLevels ll; return ll; }
00329 virtual void set_logLevels(const char*, const maci::LoggingConfigurable::LogLevels&) {}
00330 virtual void set_default_logLevels(const maci::LoggingConfigurable::LogLevels&) {}
00331 virtual void refresh_logging_config() {}
00332
00333 virtual maci::stringSeq* get_logger_names() { return NULL; }
00334 virtual char* domain_name() { return NULL; }
00335 virtual CORBA::Boolean ping() { return false; }
00336
00337 };
00338 }
00339
00340 #endif // mockManager_h