33 #ifndef I_BESServiceRegistry_h 34 #define I_BESServiceRegistry_h 1 63 typedef struct _service_cmd
66 map<string,string> _formats ;
69 map<string,map<string,service_cmd> >_services ;
70 map<string,map<string,string> > _handles ;
79 const string &cmd_descript,
80 const string &format ) ;
81 virtual void add_format(
const string &service,
83 const string &format ) ;
88 const string &cmd =
"",
89 const string &format =
"" ) ;
92 const string &service ) ;
95 const string &service ) ;
97 list<string> &services ) ;
101 virtual void dump( ostream &strm )
const ;
106 #endif // I_BESServiceRegistry_h virtual bool does_handle_service(const string &handler, const string &service)
Asks if the specified handler can handle the specified service.
virtual void add_service(const string &name)
Add a service to the BES.
The service registry allows modules to register services with the BES that they provide.
virtual void add_to_service(const string &service, const string &cmd, const string &cmd_descript, const string &format)
This function allows callers to add to a service that already exists.
virtual void show_services(BESInfo &info)
fills in the response object for the <showService /> request
virtual void remove_service(const string &name)
remove a service from the BES
Base object for bes objects.
informational response object
virtual void add_format(const string &service, const string &cmd, const string &format)
add a format response to a command of a service
virtual void dump(ostream &strm) const
dumps information about this object
virtual bool service_available(const string &name, const string &cmd="", const string &format="")
Determines if a service and, optionally, a command and a return format, is available.
virtual void handles_service(const string &handler, const string &service)
The specified handler can handle the specified service.
virtual void services_handled(const string &handler, list< string > &services)
returns the list of servies provided by the handler in question