Apache Qpid - AMQP Messaging for Java JMS, C++, Python, Ruby, and .NET
Apache Qpid Documentation
Main Page
Modules
Namespaces
Classes
Files
File List
File Members
qmf
ConsoleEvent.h
Go to the documentation of this file.
1
#ifndef QMF_CONSOLE_EVENT_H
2
#define QMF_CONSOLE_EVENT_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/Agent.h
"
32
#include "
qmf/Data.h
"
33
#include "
qmf/SchemaId.h
"
34
#include "
qpid/types/Variant.h
"
35
36
namespace
qmf {
37
38
#ifndef SWIG
39
template
<
class
>
class
PrivateImplRef;
40
#endif
41
42
class
ConsoleEventImpl;
43
44
enum
ConsoleEventCode
{
45
CONSOLE_AGENT_ADD
= 1,
46
CONSOLE_AGENT_DEL
= 2,
47
CONSOLE_AGENT_RESTART
= 3,
48
CONSOLE_AGENT_SCHEMA_UPDATE
= 4,
49
CONSOLE_AGENT_SCHEMA_RESPONSE
= 5,
50
CONSOLE_EVENT
= 6,
51
CONSOLE_QUERY_RESPONSE
= 7,
52
CONSOLE_METHOD_RESPONSE
= 8,
53
CONSOLE_EXCEPTION
= 9,
54
CONSOLE_SUBSCRIBE_ADD
= 10,
55
CONSOLE_SUBSCRIBE_UPDATE
= 11,
56
CONSOLE_SUBSCRIBE_DEL
= 12,
57
CONSOLE_THREAD_FAILED
= 13
58
};
59
60
enum
AgentDelReason
{
61
AGENT_DEL_AGED
= 1,
62
AGENT_DEL_FILTER
= 2
63
};
64
65
class
QMF_CLASS_EXTERN
ConsoleEvent
:
public
qmf::Handle
<ConsoleEventImpl> {
66
public
:
67
QMF_EXTERN
ConsoleEvent
(ConsoleEventImpl* impl = 0);
68
QMF_EXTERN
ConsoleEvent(
const
ConsoleEvent&);
69
QMF_EXTERN
ConsoleEvent& operator=(
const
ConsoleEvent&);
70
QMF_EXTERN
~ConsoleEvent();
71
72
QMF_EXTERN
ConsoleEventCode
getType()
const
;
73
QMF_EXTERN
uint32_t
getCorrelator()
const
;
74
QMF_EXTERN
Agent
getAgent()
const
;
75
QMF_EXTERN
AgentDelReason
getAgentDelReason()
const
;
76
QMF_EXTERN
uint32_t
getSchemaIdCount()
const
;
77
QMF_EXTERN
SchemaId
getSchemaId(
uint32_t
)
const
;
78
QMF_EXTERN
uint32_t
getDataCount()
const
;
79
QMF_EXTERN
Data
getData(
uint32_t
)
const
;
80
QMF_EXTERN
bool
isFinal()
const
;
81
QMF_EXTERN
const
qpid::types::Variant::Map
& getArguments()
const
;
82
QMF_EXTERN
int
getSeverity()
const
;
83
QMF_EXTERN
uint64_t getTimestamp()
const
;
84
85
#ifndef SWIG
86
private
:
87
friend
class
qmf::PrivateImplRef
<ConsoleEvent>;
88
friend
struct
ConsoleEventImplAccess;
89
#endif
90
};
91
92
}
93
94
#endif
qmf::CONSOLE_EXCEPTION
Definition:
ConsoleEvent.h:53
qmf::AgentDelReason
AgentDelReason
Definition:
ConsoleEvent.h:60
qmf::ConsoleEvent
Definition:
ConsoleEvent.h:65
qmf::CONSOLE_EVENT
Definition:
ConsoleEvent.h:50
qmf::CONSOLE_AGENT_DEL
Definition:
ConsoleEvent.h:46
qmf::CONSOLE_AGENT_SCHEMA_UPDATE
Definition:
ConsoleEvent.h:48
qmf::AGENT_DEL_FILTER
Definition:
ConsoleEvent.h:62
qmf::PrivateImplRef
Definition:
Agent.h:40
QMF_EXTERN
#define QMF_EXTERN
Definition:
ImportExport.h:30
qmf::CONSOLE_THREAD_FAILED
Definition:
ConsoleEvent.h:57
qmf::ConsoleEventCode
ConsoleEventCode
Definition:
ConsoleEvent.h:44
SchemaId.h
qmf::CONSOLE_AGENT_ADD
Definition:
ConsoleEvent.h:45
qmf::CONSOLE_SUBSCRIBE_ADD
Definition:
ConsoleEvent.h:54
qmf::CONSOLE_METHOD_RESPONSE
Definition:
ConsoleEvent.h:52
qmf::CONSOLE_SUBSCRIBE_DEL
Definition:
ConsoleEvent.h:56
qmf::Data
Definition:
Data.h:47
Handle.h
qmf::CONSOLE_AGENT_RESTART
Definition:
ConsoleEvent.h:47
Data.h
uint32_t
unsigned int uint32_t
Definition:
IntegerTypes.h:27
qmf::CONSOLE_AGENT_SCHEMA_RESPONSE
Definition:
ConsoleEvent.h:49
qmf::Handle
A handle is like a pointer: refers to an underlying implementation object.
Definition:
Handle.h:43
qmf::AGENT_DEL_AGED
Definition:
ConsoleEvent.h:61
Variant.h
qmf::CONSOLE_QUERY_RESPONSE
Definition:
ConsoleEvent.h:51
qmf::SchemaId
Definition:
SchemaId.h:43
qmf::Agent
Definition:
Agent.h:50
qpid::types::Variant::Map
std::map< std::string, Variant > Map
Definition:
Variant.h:76
qmf::CONSOLE_SUBSCRIBE_UPDATE
Definition:
ConsoleEvent.h:55
ImportExport.h
QMF_CLASS_EXTERN
#define QMF_CLASS_EXTERN
Definition:
ImportExport.h:31
Agent.h
Qpid C++ API Reference
Generated on Tue Oct 28 2014 for Qpid C++ Client API by
1.8.5