summaryrefslogtreecommitdiff
path: root/qpid/cpp/include/qpid/agent/ManagementAgent.h
diff options
context:
space:
mode:
Diffstat (limited to 'qpid/cpp/include/qpid/agent/ManagementAgent.h')
-rw-r--r--qpid/cpp/include/qpid/agent/ManagementAgent.h29
1 files changed, 11 insertions, 18 deletions
diff --git a/qpid/cpp/include/qpid/agent/ManagementAgent.h b/qpid/cpp/include/qpid/agent/ManagementAgent.h
index d786ec9ec6..f0bf443bf5 100644
--- a/qpid/cpp/include/qpid/agent/ManagementAgent.h
+++ b/qpid/cpp/include/qpid/agent/ManagementAgent.h
@@ -52,21 +52,6 @@ class ManagementAgent
static ManagementAgent* agent;
};
- class Name {
- public:
- QMF_AGENT_EXTERN Name(const std::string &vendor,
- const std::string &product,
- const std::string &name);
- QMF_AGENT_EXTERN Name(const std::string &fullName);
- QMF_AGENT_EXTERN Name();
- QMF_AGENT_EXTERN operator std::string() const;
-
- private:
- std::string vendor;
- std::string product;
- std::string name;
- };
-
typedef enum {
SEV_EMERG = 0,
SEV_ALERT = 1,
@@ -84,6 +69,17 @@ class ManagementAgent
virtual int getMaxThreads() = 0;
+ // Set the name of the agent
+ //
+ // vendor - Vendor name or domain (i.e. "apache.org")
+ // product - Product name (i.e. "qpid")
+ // instance - A unique identifier for this instance of the agent.
+ // If empty, the agent will create a GUID for the instance.
+ //
+ virtual void setName(const std::string& vendor,
+ const std::string& product,
+ const std::string& instance="") = 0;
+
// Connect to a management broker
//
// brokerHost - Hostname or IP address (dotted-quad) of broker.
@@ -119,9 +115,6 @@ class ManagementAgent
bool useExternalThread = false,
const std::string& storeFile = "") = 0;
- // Extract the unique name for this agent
- virtual const Name& getName() = 0;
-
// Register a schema with the management agent. This is normally called by the
// package initializer generated by the management code generator.
//