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