diff options
| author | Ted Ross <tross@apache.org> | 2010-09-21 21:48:41 +0000 |
|---|---|---|
| committer | Ted Ross <tross@apache.org> | 2010-09-21 21:48:41 +0000 |
| commit | fe32e38796bb9b3bbe94257eba62149a7d94ec0f (patch) | |
| tree | e33d57bca9a2c2275e76f882484ac3ea913e83fd /cpp/src/qmf/ConsoleEventImpl.h | |
| parent | 3d5f46c5b2d77a9fb9e7b435a95b3d1ed2939729 (diff) | |
| download | qpid-python-fe32e38796bb9b3bbe94257eba62149a7d94ec0f.tar.gz | |
QMFv2 Additions:
- QMFv2 schema encoding completed
- Schema queries handled by the agent and initiated by the console by user request
- Full query support with predicates evaluated on the agent (regex not yet implemented)
- Agent filtering in the console
- Agent aging in the console
- Unit tests
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@999662 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qmf/ConsoleEventImpl.h')
| -rw-r--r-- | cpp/src/qmf/ConsoleEventImpl.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/cpp/src/qmf/ConsoleEventImpl.h b/cpp/src/qmf/ConsoleEventImpl.h index fe7405bb06..e7acb54152 100644 --- a/cpp/src/qmf/ConsoleEventImpl.h +++ b/cpp/src/qmf/ConsoleEventImpl.h @@ -34,10 +34,12 @@ namespace qmf { // // Impl-only methods // - ConsoleEventImpl(ConsoleEventCode e) : eventType(e), correlator(0), final(false) {} + ConsoleEventImpl(ConsoleEventCode e, AgentDelReason r = AGENT_DEL_AGED) : + eventType(e), delReason(r), correlator(0), final(false) {} void setCorrelator(uint32_t c) { correlator = c; } void setAgent(const Agent& a) { agent = a; } void addData(const Data& d) { dataList.push_back(Data(d)); } + void addSchemaId(const SchemaId& s) { newSchemaIds.push_back(SchemaId(s)); } void setFinal() { final = true; } void setArguments(const qpid::types::Variant::Map& a) { arguments = a; } @@ -47,6 +49,9 @@ namespace qmf { ConsoleEventCode getType() const { return eventType; } uint32_t getCorrelator() const { return correlator; } Agent getAgent() const { return agent; } + AgentDelReason getAgentDelReason() const { return delReason; } + uint32_t getSchemaIdCount() const { return newSchemaIds.size(); } + SchemaId getSchemaId(uint32_t) const; uint32_t getDataCount() const { return dataList.size(); } Data getData(uint32_t i) const; bool isFinal() const { return final; } @@ -54,10 +59,12 @@ namespace qmf { private: const ConsoleEventCode eventType; + const AgentDelReason delReason; uint32_t correlator; Agent agent; bool final; std::list<Data> dataList; + std::list<SchemaId> newSchemaIds; qpid::types::Variant::Map arguments; }; |
