Apache Qpid - AMQP Messaging for Java JMS, C++, Python, Ruby, and .NET Apache Qpid Documentation
qmf/ConsoleEvent.h
Go to the documentation of this file.
00001 #ifndef QMF_CONSOLE_EVENT_H
00002 #define QMF_CONSOLE_EVENT_H
00003 /*
00004  *
00005  * Licensed to the Apache Software Foundation (ASF) under one
00006  * or more contributor license agreements.  See the NOTICE file
00007  * distributed with this work for additional information
00008  * regarding copyright ownership.  The ASF licenses this file
00009  * to you under the Apache License, Version 2.0 (the
00010  * "License"); you may not use this file except in compliance
00011  * with the License.  You may obtain a copy of the License at
00012  * 
00013  *   http://www.apache.org/licenses/LICENSE-2.0
00014  * 
00015  * Unless required by applicable law or agreed to in writing,
00016  * software distributed under the License is distributed on an
00017  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
00018  * KIND, either express or implied.  See the License for the
00019  * specific language governing permissions and limitations
00020  * under the License.
00021  *
00022  */
00023 
00024 #if !defined(QMF_USE_DEPRECATED_API) && !defined(qmf2_EXPORTS) && !defined(SWIG)
00025 #  error "The API defined in this file has been DEPRECATED and will be removed in the future."
00026 #  error "Define 'QMF_USE_DEPRECATED_API' to enable continued use of the API."
00027 #endif
00028 
00029 #include <qmf/ImportExport.h>
00030 #include "qmf/Handle.h"
00031 #include "qmf/Agent.h"
00032 #include "qmf/Data.h"
00033 #include "qmf/SchemaId.h"
00034 #include "qpid/types/Variant.h"
00035 
00036 namespace qmf {
00037 
00038 #ifndef SWIG
00039     template <class> class PrivateImplRef;
00040 #endif
00041 
00042     class ConsoleEventImpl;
00043 
00044     enum ConsoleEventCode {
00045     CONSOLE_AGENT_ADD             = 1,
00046     CONSOLE_AGENT_DEL             = 2,
00047     CONSOLE_AGENT_RESTART         = 3,
00048     CONSOLE_AGENT_SCHEMA_UPDATE   = 4,
00049     CONSOLE_AGENT_SCHEMA_RESPONSE = 5,
00050     CONSOLE_EVENT                 = 6,
00051     CONSOLE_QUERY_RESPONSE        = 7,
00052     CONSOLE_METHOD_RESPONSE       = 8,
00053     CONSOLE_EXCEPTION             = 9,
00054     CONSOLE_SUBSCRIBE_ADD         = 10,
00055     CONSOLE_SUBSCRIBE_UPDATE      = 11,
00056     CONSOLE_SUBSCRIBE_DEL         = 12,
00057     CONSOLE_THREAD_FAILED         = 13
00058     };
00059 
00060     enum AgentDelReason {
00061     AGENT_DEL_AGED   = 1,
00062     AGENT_DEL_FILTER = 2 
00063     };
00064 
00065     class QMF_CLASS_EXTERN ConsoleEvent : public qmf::Handle<ConsoleEventImpl> {
00066     public:
00067         QMF_EXTERN ConsoleEvent(ConsoleEventImpl* impl = 0);
00068         QMF_EXTERN ConsoleEvent(const ConsoleEvent&);
00069         QMF_EXTERN ConsoleEvent& operator=(const ConsoleEvent&);
00070         QMF_EXTERN ~ConsoleEvent();
00071 
00072         QMF_EXTERN ConsoleEventCode getType() const;
00073         QMF_EXTERN uint32_t getCorrelator() const;
00074         QMF_EXTERN Agent getAgent() const;
00075         QMF_EXTERN AgentDelReason getAgentDelReason() const;
00076         QMF_EXTERN uint32_t getSchemaIdCount() const;
00077         QMF_EXTERN SchemaId getSchemaId(uint32_t) const;
00078         QMF_EXTERN uint32_t getDataCount() const;
00079         QMF_EXTERN Data getData(uint32_t) const;
00080         QMF_EXTERN bool isFinal() const;
00081         QMF_EXTERN const qpid::types::Variant::Map& getArguments() const;
00082         QMF_EXTERN int getSeverity() const;
00083         QMF_EXTERN uint64_t getTimestamp() const;
00084 
00085 #ifndef SWIG
00086     private:
00087         friend class qmf::PrivateImplRef<ConsoleEvent>;
00088         friend struct ConsoleEventImplAccess;
00089 #endif
00090     };
00091 
00092 }
00093 
00094 #endif

Qpid C++ API Reference
Generated on Wed Dec 30 2015 for Qpid C++ Client API by doxygen 1.7.6.1