Apache Qpid - AMQP Messaging for Java JMS, C++, Python, Ruby, and .NET Apache Qpid Documentation
Agent.h
Go to the documentation of this file.
1 #ifndef QMF_AGENT_H
2 #define QMF_AGENT_H
3 /*
4  *
5  * Licensed to the Apache Software Foundation (ASF) under one
6  * or more contributor license agreements. See the NOTICE file
7  * distributed with this work for additional information
8  * regarding copyright ownership. The ASF licenses this file
9  * to you under the Apache License, Version 2.0 (the
10  * "License"); you may not use this file except in compliance
11  * with the License. You may obtain a copy of the License at
12  *
13  * http://www.apache.org/licenses/LICENSE-2.0
14  *
15  * Unless required by applicable law or agreed to in writing,
16  * software distributed under the License is distributed on an
17  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
18  * KIND, either express or implied. See the License for the
19  * specific language governing permissions and limitations
20  * under the License.
21  *
22  */
23 
24 #if !defined(QMF_USE_DEPRECATED_API) && !defined(qmf2_EXPORTS) && !defined(SWIG)
25 # error "The API defined in this file has been DEPRECATED and will be removed in the future."
26 # error "Define 'QMF_USE_DEPRECATED_API' to enable continued use of the API."
27 #endif
28 
29 #include <qmf/ImportExport.h>
30 #include "qmf/Handle.h"
31 //#include "qmf/Subscription.h"
32 #include "qmf/exceptions.h"
34 #include "qpid/types/Variant.h"
35 #include <string>
36 
37 namespace qmf {
38 
39 #ifndef SWIG
40  template <class> class PrivateImplRef;
41 #endif
42 
43  class AgentImpl;
44  class ConsoleEvent;
45  class Query;
46  class DataAddr;
47  class SchemaId;
48  class Schema;
49 
50  class QMF_CLASS_EXTERN Agent : public qmf::Handle<AgentImpl> {
51  public:
52  QMF_EXTERN Agent(AgentImpl* impl = 0);
53  QMF_EXTERN Agent(const Agent&);
54  QMF_EXTERN Agent& operator=(const Agent&);
55  QMF_EXTERN ~Agent();
56 
57  QMF_EXTERN std::string getName() const;
58  QMF_EXTERN uint32_t getEpoch() const;
59  QMF_EXTERN std::string getVendor() const;
60  QMF_EXTERN std::string getProduct() const;
61  QMF_EXTERN std::string getInstance() const;
62  QMF_EXTERN const qpid::types::Variant& getAttribute(const std::string&) const;
63  QMF_EXTERN const qpid::types::Variant::Map& getAttributes() const;
64 
67  QMF_EXTERN uint32_t queryAsync(const Query&);
68  QMF_EXTERN uint32_t queryAsync(const std::string&);
69 
73  //QMF_EXTERN Subscription subscribe(const Query&, const std::string& options = "");
74  //QMF_EXTERN Subscription subscribe(const std::string&, const std::string& options = "");
75 
76  QMF_EXTERN ConsoleEvent callMethod(const std::string&, const qpid::types::Variant::Map&, const DataAddr&,
78  QMF_EXTERN uint32_t callMethodAsync(const std::string&, const qpid::types::Variant::Map&, const DataAddr&);
79 
91  QMF_EXTERN uint32_t querySchemaAsync();
92 
103  QMF_EXTERN uint32_t getPackageCount() const;
104  QMF_EXTERN const std::string& getPackage(uint32_t) const;
105 
116  QMF_EXTERN uint32_t getSchemaIdCount(const std::string&) const;
117  QMF_EXTERN SchemaId getSchemaId(const std::string&, uint32_t) const;
118 
127 
128 
129 #ifndef SWIG
130  private:
131  friend class qmf::PrivateImplRef<Agent>;
132  friend struct AgentImplAccess;
133 #endif
134  };
135 
136 }
137 
138 #endif
A duration is a time in milliseconds.
Definition: Duration.h:35
Represents a value of variable type.
Definition: Variant.h:73
#define QMF_EXTERN
Definition: ImportExport.h:30
static const Duration MINUTE
Definition: Duration.h:43
unsigned int uint32_t
Definition: IntegerTypes.h:27
A handle is like a pointer: refers to an underlying implementation object.
Definition: Handle.h:43
std::map< std::string, Variant > Map
Definition: Variant.h:76
#define QMF_CLASS_EXTERN
Definition: ImportExport.h:31

Qpid C++ API Reference
Generated on Tue Oct 28 2014 for Qpid C++ Client API by doxygen 1.8.5