bes
Updated for version 3.20.6
|
33 #ifndef I_BESServiceRegistry_h
34 #define I_BESServiceRegistry_h 1
59 typedef struct _service_cmd
61 std::string _description ;
62 std::map<std::string,std::string> _formats ;
65 std::map<std::string,std::map<std::string,service_cmd> >_services ;
66 std::map<std::string,std::map<std::string,std::string> > _handles ;
72 virtual void add_service(
const std::string &name ) ;
74 const std::string &cmd,
75 const std::string &cmd_descript,
76 const std::string &format ) ;
77 virtual void add_format(
const std::string &service,
78 const std::string &cmd,
79 const std::string &format ) ;
84 const std::string &cmd =
"",
85 const std::string &format =
"" ) ;
88 const std::string &service ) ;
91 const std::string &service ) ;
93 std::list<std::string> &services ) ;
97 virtual void dump( std::ostream &strm )
const ;
102 #endif // I_BESServiceRegistry_h
virtual void show_services(BESInfo &info)
fills in the response object for the <showService /> request
virtual void services_handled(const std::string &handler, std::list< std::string > &services)
returns the list of servies provided by the handler in question
virtual void add_to_service(const std::string &service, const std::string &cmd, const std::string &cmd_descript, const std::string &format)
This function allows callers to add to a service that already exists.
The service registry allows modules to register services with the BES that they provide.
virtual void remove_service(const std::string &name)
remove a service from the BES
virtual void handles_service(const std::string &handler, const std::string &service)
The specified handler can handle the specified service.
virtual void add_format(const std::string &service, const std::string &cmd, const std::string &format)
add a format response to a command of a service
informational response object
top level BES object to house generic methods
virtual bool does_handle_service(const std::string &handler, const std::string &service)
Asks if the specified handler can handle the specified service.
virtual void dump(std::ostream &strm) const
dumps information about this object
virtual bool service_available(const std::string &name, const std::string &cmd="", const std::string &format="")
Determines if a service and, optionally, a command and a return format, is available.
virtual void add_service(const std::string &name)
Add a service to the BES.