rocketmq-client-remoting-nodejs 0.0.0-stage → 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.en.md +428 -0
- package/README.md +424 -2
- package/dist/client/admin.d.ts +229 -0
- package/dist/client/admin.js +2462 -0
- package/dist/client/allocate.d.ts +48 -0
- package/dist/client/allocate.js +365 -0
- package/dist/client/backpressure.d.ts +23 -0
- package/dist/client/backpressure.js +95 -0
- package/dist/client/consumer.d.ts +294 -0
- package/dist/client/consumer.js +3095 -0
- package/dist/client/consumer_result.d.ts +129 -0
- package/dist/client/consumer_result.js +138 -0
- package/dist/client/consumer_stats.d.ts +69 -0
- package/dist/client/consumer_stats.js +258 -0
- package/dist/client/exception.d.ts +39 -0
- package/dist/client/exception.js +36 -0
- package/dist/client/hook.d.ts +145 -0
- package/dist/client/hook.js +171 -0
- package/dist/client/latency.d.ts +61 -0
- package/dist/client/latency.js +239 -0
- package/dist/client/lite_pull_consumer.d.ts +151 -0
- package/dist/client/lite_pull_consumer.js +1096 -0
- package/dist/client/mq_client.d.ts +188 -0
- package/dist/client/mq_client.js +1678 -0
- package/dist/client/mq_client_manager.d.ts +21 -0
- package/dist/client/mq_client_manager.js +129 -0
- package/dist/client/offset_store.d.ts +45 -0
- package/dist/client/offset_store.js +389 -0
- package/dist/client/open_tracing_hook.d.ts +52 -0
- package/dist/client/open_tracing_hook.js +241 -0
- package/dist/client/pop_api.d.ts +28 -0
- package/dist/client/pop_api.js +224 -0
- package/dist/client/pop_consumer.d.ts +23 -0
- package/dist/client/pop_consumer.js +719 -0
- package/dist/client/pop_process_queue.d.ts +15 -0
- package/dist/client/pop_process_queue.js +51 -0
- package/dist/client/process_queue.d.ts +49 -0
- package/dist/client/process_queue.js +261 -0
- package/dist/client/produce_accumulator.d.ts +75 -0
- package/dist/client/produce_accumulator.js +288 -0
- package/dist/client/producer.d.ts +231 -0
- package/dist/client/producer.js +1774 -0
- package/dist/client/pull_api.d.ts +26 -0
- package/dist/client/pull_api.js +264 -0
- package/dist/client/pull_consumer.d.ts +119 -0
- package/dist/client/pull_consumer.js +876 -0
- package/dist/client/pull_schedule_service.d.ts +71 -0
- package/dist/client/pull_schedule_service.js +424 -0
- package/dist/client/request_reply.d.ts +61 -0
- package/dist/client/request_reply.js +232 -0
- package/dist/client/retry_message.d.ts +2 -0
- package/dist/client/retry_message.js +27 -0
- package/dist/client/send_result.d.ts +57 -0
- package/dist/client/send_result.js +70 -0
- package/dist/client/top_addressing.d.ts +20 -0
- package/dist/client/top_addressing.js +75 -0
- package/dist/client/trace_context.d.ts +61 -0
- package/dist/client/trace_context.js +373 -0
- package/dist/client/trace_dispatcher.d.ts +31 -0
- package/dist/client/trace_dispatcher.js +236 -0
- package/dist/client/trace_hook.d.ts +23 -0
- package/dist/client/trace_hook.js +228 -0
- package/dist/client/traceparent.d.ts +9 -0
- package/dist/client/traceparent.js +86 -0
- package/dist/common/boundary_type.d.ts +7 -0
- package/dist/common/boundary_type.js +16 -0
- package/dist/common/compress.d.ts +28 -0
- package/dist/common/compress.js +512 -0
- package/dist/common/message.d.ts +129 -0
- package/dist/common/message.js +214 -0
- package/dist/common/messageClientIdSetter.d.ts +7 -0
- package/dist/common/messageClientIdSetter.js +48 -0
- package/dist/common/messageConst.d.ts +68 -0
- package/dist/common/messageConst.js +68 -0
- package/dist/common/messageDecoder.d.ts +40 -0
- package/dist/common/messageDecoder.js +504 -0
- package/dist/common/messageType.d.ts +11 -0
- package/dist/common/messageType.js +11 -0
- package/dist/common/message_accessor.d.ts +39 -0
- package/dist/common/message_accessor.js +135 -0
- package/dist/common/mixAll.d.ts +106 -0
- package/dist/common/mixAll.js +247 -0
- package/dist/common/recall_message_handle.d.ts +25 -0
- package/dist/common/recall_message_handle.js +98 -0
- package/dist/common/subscriptionData.d.ts +36 -0
- package/dist/common/subscriptionData.js +64 -0
- package/dist/common/sysflag.d.ts +129 -0
- package/dist/common/sysflag.js +96 -0
- package/dist/common/topic_config.d.ts +66 -0
- package/dist/common/topic_config.js +106 -0
- package/dist/common/topic_validator.d.ts +49 -0
- package/dist/common/topic_validator.js +115 -0
- package/dist/common/utilAll.d.ts +39 -0
- package/dist/common/utilAll.js +154 -0
- package/dist/common/validators.d.ts +25 -0
- package/dist/common/validators.js +80 -0
- package/dist/index.d.ts +24 -0
- package/dist/index.js +36 -0
- package/dist/logging.d.ts +24 -0
- package/dist/logging.js +246 -0
- package/dist/remoting/acl.d.ts +16 -0
- package/dist/remoting/acl.js +39 -0
- package/dist/remoting/admin_body.d.ts +257 -0
- package/dist/remoting/admin_body.js +669 -0
- package/dist/remoting/bodies.d.ts +475 -0
- package/dist/remoting/bodies.js +1131 -0
- package/dist/remoting/client.d.ts +73 -0
- package/dist/remoting/client.js +591 -0
- package/dist/remoting/codes.d.ts +296 -0
- package/dist/remoting/codes.js +301 -0
- package/dist/remoting/exception.d.ts +45 -0
- package/dist/remoting/exception.js +58 -0
- package/dist/remoting/extra_info.d.ts +61 -0
- package/dist/remoting/extra_info.js +220 -0
- package/dist/remoting/headers.d.ts +758 -0
- package/dist/remoting/headers.js +1307 -0
- package/dist/remoting/heartbeat.d.ts +91 -0
- package/dist/remoting/heartbeat.js +227 -0
- package/dist/remoting/namespace.d.ts +14 -0
- package/dist/remoting/namespace.js +85 -0
- package/dist/remoting/pop_bodies.d.ts +58 -0
- package/dist/remoting/pop_bodies.js +214 -0
- package/dist/remoting/remotingCommand.d.ts +39 -0
- package/dist/remoting/remotingCommand.js +225 -0
- package/dist/remoting/route.d.ts +61 -0
- package/dist/remoting/route.js +288 -0
- package/dist/remoting/rpc_hooks.d.ts +31 -0
- package/dist/remoting/rpc_hooks.js +73 -0
- package/dist/remoting/serialize.d.ts +33 -0
- package/dist/remoting/serialize.js +372 -0
- package/dist/remoting/socks_proxy.d.ts +29 -0
- package/dist/remoting/socks_proxy.js +379 -0
- package/dist/remoting/static_topic.d.ts +49 -0
- package/dist/remoting/static_topic.js +244 -0
- package/dist/remoting/subscription.d.ts +65 -0
- package/dist/remoting/subscription.js +172 -0
- package/package.json +38 -4
|
@@ -0,0 +1,475 @@
|
|
|
1
|
+
import { MessageQueue } from '../common/message.js';
|
|
2
|
+
import { BrokerData, QueueData, TopicRouteData, brokerData2Json, topicRouteData2TopicRouteDataJson } from './route.js';
|
|
3
|
+
import { SubscriptionGroupWrapper } from './subscription.js';
|
|
4
|
+
export { BrokerData, QueueData, TopicRouteData, brokerData2Json, topicRouteData2TopicRouteDataJson };
|
|
5
|
+
export { SubscriptionGroupWrapper };
|
|
6
|
+
export declare function messageQueueKey(mq: MessageQueue): string;
|
|
7
|
+
export declare function parseMessageQueueKey(key: string): MessageQueue | null;
|
|
8
|
+
export declare function decodeMessageQueueMap(raw: Record<string, any> | null | undefined): Map<MessageQueue, any>;
|
|
9
|
+
export declare class KVTable {
|
|
10
|
+
table: Record<string, string>;
|
|
11
|
+
constructor();
|
|
12
|
+
toDict(): Record<string, any>;
|
|
13
|
+
static fromDict(d: Record<string, any>): KVTable;
|
|
14
|
+
encode(): Buffer;
|
|
15
|
+
static decode(data: Buffer): KVTable;
|
|
16
|
+
}
|
|
17
|
+
export declare class TopicList {
|
|
18
|
+
topicList: string[];
|
|
19
|
+
brokerAddr: string | null;
|
|
20
|
+
constructor();
|
|
21
|
+
toDict(): Record<string, any>;
|
|
22
|
+
static fromDict(d: Record<string, any>): TopicList;
|
|
23
|
+
encode(): Buffer;
|
|
24
|
+
static decode(data: Buffer): TopicList;
|
|
25
|
+
}
|
|
26
|
+
export declare class GroupList {
|
|
27
|
+
groupList: string[];
|
|
28
|
+
constructor();
|
|
29
|
+
toDict(): Record<string, any>;
|
|
30
|
+
static fromDict(d: Record<string, any>): GroupList;
|
|
31
|
+
encode(): Buffer;
|
|
32
|
+
static decode(data: Buffer): GroupList;
|
|
33
|
+
}
|
|
34
|
+
export declare class LockBatchRequestBody {
|
|
35
|
+
consumerGroup: string | null;
|
|
36
|
+
clientId: string | null;
|
|
37
|
+
mqSet: Record<string, any>[];
|
|
38
|
+
constructor();
|
|
39
|
+
toDict(): Record<string, any>;
|
|
40
|
+
static fromDict(d: Record<string, any>): LockBatchRequestBody;
|
|
41
|
+
encode(): Buffer;
|
|
42
|
+
static decode(data: Buffer): LockBatchRequestBody;
|
|
43
|
+
}
|
|
44
|
+
export declare class LockBatchResponseBody {
|
|
45
|
+
lockOKMQSet: Record<string, any>[];
|
|
46
|
+
constructor();
|
|
47
|
+
toDict(): Record<string, any>;
|
|
48
|
+
static fromDict(d: Record<string, any>): LockBatchResponseBody;
|
|
49
|
+
encode(): Buffer;
|
|
50
|
+
static decode(data: Buffer): LockBatchResponseBody;
|
|
51
|
+
}
|
|
52
|
+
export declare class UnlockBatchRequestBody {
|
|
53
|
+
consumerGroup: string | null;
|
|
54
|
+
clientId: string | null;
|
|
55
|
+
mqSet: Record<string, any>[];
|
|
56
|
+
constructor();
|
|
57
|
+
toDict(): Record<string, any>;
|
|
58
|
+
static fromDict(d: Record<string, any>): UnlockBatchRequestBody;
|
|
59
|
+
encode(): Buffer;
|
|
60
|
+
static decode(data: Buffer): UnlockBatchRequestBody;
|
|
61
|
+
}
|
|
62
|
+
export declare class GetConsumerListByGroupResponseBody {
|
|
63
|
+
consumerIdList: string[];
|
|
64
|
+
constructor();
|
|
65
|
+
toDict(): Record<string, any>;
|
|
66
|
+
static fromDict(d: Record<string, any>): GetConsumerListByGroupResponseBody;
|
|
67
|
+
encode(): Buffer;
|
|
68
|
+
static decode(data: Buffer): GetConsumerListByGroupResponseBody;
|
|
69
|
+
}
|
|
70
|
+
export declare class CheckClientRequestBody {
|
|
71
|
+
clientId: string | null;
|
|
72
|
+
group: string | null;
|
|
73
|
+
subscriptionData: Record<string, any> | null;
|
|
74
|
+
namespace: string | null;
|
|
75
|
+
constructor();
|
|
76
|
+
toDict(): Record<string, any>;
|
|
77
|
+
static fromDict(d: Record<string, any>): CheckClientRequestBody;
|
|
78
|
+
encode(): Buffer;
|
|
79
|
+
static decode(data: Buffer): CheckClientRequestBody;
|
|
80
|
+
}
|
|
81
|
+
export declare class ClusterInfo {
|
|
82
|
+
brokerAddrTable: Record<string, Record<number, string>>;
|
|
83
|
+
clusterAddrTable: Record<string, string[]>;
|
|
84
|
+
constructor();
|
|
85
|
+
getBrokerAddrs(): string[];
|
|
86
|
+
toDict(): Record<string, any>;
|
|
87
|
+
static fromDict(d: Record<string, any>): ClusterInfo;
|
|
88
|
+
encode(): Buffer;
|
|
89
|
+
static decode(data: Buffer): ClusterInfo;
|
|
90
|
+
}
|
|
91
|
+
export declare class Connection {
|
|
92
|
+
clientId: string | null;
|
|
93
|
+
clientAddr: string | null;
|
|
94
|
+
language: string | null;
|
|
95
|
+
version: number | null;
|
|
96
|
+
constructor();
|
|
97
|
+
toDict(): Record<string, any>;
|
|
98
|
+
static fromDict(d: Record<string, any>): Connection;
|
|
99
|
+
}
|
|
100
|
+
export declare class ConsumerConnection {
|
|
101
|
+
connectionSet: Connection[];
|
|
102
|
+
subscriptionTable: Record<string, any>;
|
|
103
|
+
consumeType: string | null;
|
|
104
|
+
messageModel: string | null;
|
|
105
|
+
consumeFromWhere: string | null;
|
|
106
|
+
constructor();
|
|
107
|
+
toDict(): Record<string, any>;
|
|
108
|
+
static fromDict(d: Record<string, any>): ConsumerConnection;
|
|
109
|
+
encode(): Buffer;
|
|
110
|
+
static decode(data: Buffer): ConsumerConnection;
|
|
111
|
+
}
|
|
112
|
+
export declare class ProducerConnection {
|
|
113
|
+
connectionSet: Connection[];
|
|
114
|
+
constructor();
|
|
115
|
+
toDict(): Record<string, any>;
|
|
116
|
+
static fromDict(d: Record<string, any>): ProducerConnection;
|
|
117
|
+
encode(): Buffer;
|
|
118
|
+
static decode(data: Buffer): ProducerConnection;
|
|
119
|
+
}
|
|
120
|
+
export declare class QueryConsumeTimeSpanBody {
|
|
121
|
+
consumeTimeSpanSet: Record<string, any>[];
|
|
122
|
+
constructor();
|
|
123
|
+
toDict(): Record<string, any>;
|
|
124
|
+
static fromDict(d: Record<string, any>): QueryConsumeTimeSpanBody;
|
|
125
|
+
encode(): Buffer;
|
|
126
|
+
static decode(data: Buffer): QueryConsumeTimeSpanBody;
|
|
127
|
+
}
|
|
128
|
+
export declare class ConsumeStatus {
|
|
129
|
+
pullRT: number;
|
|
130
|
+
pullTPS: number;
|
|
131
|
+
consumeRT: number;
|
|
132
|
+
consumeOKTPS: number;
|
|
133
|
+
consumeFailedTPS: number;
|
|
134
|
+
consumeFailedMsgs: number;
|
|
135
|
+
constructor();
|
|
136
|
+
toDict(): Record<string, any>;
|
|
137
|
+
static fromDict(d: Record<string, any>): ConsumeStatus;
|
|
138
|
+
}
|
|
139
|
+
export declare class ConsumeStatsList {
|
|
140
|
+
statsList: Record<string, any>[];
|
|
141
|
+
brokerAddr: string | null;
|
|
142
|
+
totalDiff: number;
|
|
143
|
+
totalInflightDiff: number;
|
|
144
|
+
constructor();
|
|
145
|
+
toDict(): Record<string, any>;
|
|
146
|
+
static fromDict(d: Record<string, any>): ConsumeStatsList;
|
|
147
|
+
encode(): Buffer;
|
|
148
|
+
static decode(data: Buffer): ConsumeStatsList;
|
|
149
|
+
}
|
|
150
|
+
export declare class ResetOffsetBody {
|
|
151
|
+
offsetTable: Map<MessageQueue, number>;
|
|
152
|
+
constructor();
|
|
153
|
+
toDict(): Record<string, any>;
|
|
154
|
+
static fromDict(d: Record<string, any>): ResetOffsetBody;
|
|
155
|
+
encode(): Buffer;
|
|
156
|
+
static decode(data: Buffer): ResetOffsetBody;
|
|
157
|
+
}
|
|
158
|
+
export declare class MessageQueueForC {
|
|
159
|
+
topic: string;
|
|
160
|
+
brokerName: string;
|
|
161
|
+
queueId: number;
|
|
162
|
+
offset: number;
|
|
163
|
+
constructor(topic?: string, brokerName?: string, queueId?: number, offset?: number);
|
|
164
|
+
toDict(): Record<string, any>;
|
|
165
|
+
static fromDict(d: Record<string, any>): MessageQueueForC;
|
|
166
|
+
}
|
|
167
|
+
export declare class ResetOffsetBodyForC {
|
|
168
|
+
offsetTable: MessageQueueForC[];
|
|
169
|
+
constructor();
|
|
170
|
+
toDict(): Record<string, any>;
|
|
171
|
+
static fromDict(d: Record<string, any>): ResetOffsetBodyForC;
|
|
172
|
+
encode(): Buffer;
|
|
173
|
+
static decode(data: Buffer): ResetOffsetBodyForC;
|
|
174
|
+
}
|
|
175
|
+
export declare class GetConsumerStatusBody {
|
|
176
|
+
messageQueueTable: Map<MessageQueue, number>;
|
|
177
|
+
consumerTable: Record<string, Map<MessageQueue, number>>;
|
|
178
|
+
constructor();
|
|
179
|
+
toDict(): Record<string, any>;
|
|
180
|
+
static fromDict(d: Record<string, any>): GetConsumerStatusBody;
|
|
181
|
+
encode(): Buffer;
|
|
182
|
+
static decode(data: Buffer): GetConsumerStatusBody;
|
|
183
|
+
}
|
|
184
|
+
export declare class ProcessQueueInfo {
|
|
185
|
+
commitOffset: number;
|
|
186
|
+
cachedMsgMinOffset: number;
|
|
187
|
+
cachedMsgMaxOffset: number;
|
|
188
|
+
cachedMsgCount: number;
|
|
189
|
+
cachedMsgSizeInMiB: number;
|
|
190
|
+
transactionMsgMinOffset: number;
|
|
191
|
+
transactionMsgMaxOffset: number;
|
|
192
|
+
transactionMsgCount: number;
|
|
193
|
+
locked: boolean;
|
|
194
|
+
tryUnlockTimes: number;
|
|
195
|
+
lastLockTimestamp: number;
|
|
196
|
+
droped: boolean;
|
|
197
|
+
lastPullTimestamp: number;
|
|
198
|
+
lastConsumeTimestamp: number;
|
|
199
|
+
constructor();
|
|
200
|
+
toDict(): Record<string, any>;
|
|
201
|
+
static fromDict(d: Record<string, any>): ProcessQueueInfo;
|
|
202
|
+
}
|
|
203
|
+
export declare class CMResult {
|
|
204
|
+
static CR_SUCCESS: string;
|
|
205
|
+
static CR_LATER: string;
|
|
206
|
+
static CR_ROLLBACK: string;
|
|
207
|
+
static CR_COMMIT: string;
|
|
208
|
+
static CR_THROW_EXCEPTION: string;
|
|
209
|
+
static CR_RETURN_NULL: string;
|
|
210
|
+
}
|
|
211
|
+
export declare class ConsumeMessageDirectlyResult {
|
|
212
|
+
order: boolean;
|
|
213
|
+
autoCommit: boolean;
|
|
214
|
+
consumeResult: string | null;
|
|
215
|
+
remark: string | null;
|
|
216
|
+
spentTimeMills: number;
|
|
217
|
+
constructor();
|
|
218
|
+
toDict(): Record<string, any>;
|
|
219
|
+
static fromDict(d: Record<string, any>): ConsumeMessageDirectlyResult;
|
|
220
|
+
encode(): Buffer;
|
|
221
|
+
static decode(data: Buffer): ConsumeMessageDirectlyResult;
|
|
222
|
+
}
|
|
223
|
+
export declare class ConsumerRunningInfo {
|
|
224
|
+
static PROP_NAMESERVER_ADDR: string;
|
|
225
|
+
static PROP_THREADPOOL_CORE_SIZE: string;
|
|
226
|
+
static PROP_CONSUME_ORDERLY: string;
|
|
227
|
+
static PROP_CONSUME_TYPE: string;
|
|
228
|
+
static PROP_CLIENT_VERSION: string;
|
|
229
|
+
static PROP_CONSUMER_START_TIMESTAMP: string;
|
|
230
|
+
properties: Record<string, string>;
|
|
231
|
+
subscriptionSet: Record<string, any>[];
|
|
232
|
+
mqTable: Map<MessageQueue, Record<string, any>>;
|
|
233
|
+
mqPopTable: Map<MessageQueue, Record<string, any>>;
|
|
234
|
+
statusTable: Record<string, any>;
|
|
235
|
+
userConsumerInfo: Record<string, string>;
|
|
236
|
+
jstack: string | null;
|
|
237
|
+
constructor();
|
|
238
|
+
toDict(): Record<string, any>;
|
|
239
|
+
static fromDict(d: Record<string, any>): ConsumerRunningInfo;
|
|
240
|
+
encode(): Buffer;
|
|
241
|
+
static decode(data: Buffer): ConsumerRunningInfo;
|
|
242
|
+
computeTps(manager?: {
|
|
243
|
+
getTps?: (mq: MessageQueue, now: number) => number;
|
|
244
|
+
}): number;
|
|
245
|
+
}
|
|
246
|
+
export declare const TopicFilterType: {
|
|
247
|
+
SINGLE_TAG: string;
|
|
248
|
+
MULTI_TAG: string;
|
|
249
|
+
};
|
|
250
|
+
export declare const DEFAULT_READ_QUEUE_NUMS = 16;
|
|
251
|
+
export declare const DEFAULT_WRITE_QUEUE_NUMS = 16;
|
|
252
|
+
export declare const DEFAULT_PERM = 6;
|
|
253
|
+
export declare class TopicConfig {
|
|
254
|
+
topicName: string;
|
|
255
|
+
readQueueNums: number;
|
|
256
|
+
writeQueueNums: number;
|
|
257
|
+
perm: number;
|
|
258
|
+
topicFilterType: string;
|
|
259
|
+
topicSysFlag: number;
|
|
260
|
+
order: boolean;
|
|
261
|
+
attributes: Record<string, string>;
|
|
262
|
+
constructor(topicName?: string, readQueueNums?: number, writeQueueNums?: number, perm?: number, topicFilterType?: string, topicSysFlag?: number, order?: boolean);
|
|
263
|
+
toDict(): Record<string, any>;
|
|
264
|
+
static fromDict(d: Record<string, any>): TopicConfig;
|
|
265
|
+
encode(): Buffer;
|
|
266
|
+
static decode(data: Buffer): TopicConfig;
|
|
267
|
+
}
|
|
268
|
+
export declare class TopicConfigSerializeWrapper {
|
|
269
|
+
topicConfigTable: Record<string, TopicConfig>;
|
|
270
|
+
dataVersion: Record<string, any>;
|
|
271
|
+
constructor();
|
|
272
|
+
toDict(): Record<string, any>;
|
|
273
|
+
static fromDict(d: Record<string, any>): TopicConfigSerializeWrapper;
|
|
274
|
+
encode(): Buffer;
|
|
275
|
+
static decode(data: Buffer): TopicConfigSerializeWrapper;
|
|
276
|
+
}
|
|
277
|
+
export declare class OffsetWrapper {
|
|
278
|
+
brokerOffset: number;
|
|
279
|
+
consumerOffset: number;
|
|
280
|
+
lastTimestamp: number;
|
|
281
|
+
pullOffset: number;
|
|
282
|
+
constructor(brokerOffset?: number, consumerOffset?: number, lastTimestamp?: number, pullOffset?: number);
|
|
283
|
+
get lag(): number;
|
|
284
|
+
toDict(): Record<string, any>;
|
|
285
|
+
static fromDict(d: Record<string, any>): OffsetWrapper;
|
|
286
|
+
}
|
|
287
|
+
export declare class ConsumeStats {
|
|
288
|
+
offsetTable: Map<MessageQueue, OffsetWrapper>;
|
|
289
|
+
consumeTps: number;
|
|
290
|
+
constructor();
|
|
291
|
+
get totalLag(): number;
|
|
292
|
+
toDict(): Record<string, any>;
|
|
293
|
+
static fromDict(d: Record<string, any>): ConsumeStats;
|
|
294
|
+
encode(): Buffer;
|
|
295
|
+
static decode(data: Buffer): ConsumeStats;
|
|
296
|
+
}
|
|
297
|
+
export declare class StatsItem {
|
|
298
|
+
statsName: string;
|
|
299
|
+
statsKey: string;
|
|
300
|
+
sum: number;
|
|
301
|
+
tps: number;
|
|
302
|
+
times: number;
|
|
303
|
+
value: number;
|
|
304
|
+
constructor();
|
|
305
|
+
toDict(): Record<string, any>;
|
|
306
|
+
static fromDict(d: Record<string, any>): StatsItem;
|
|
307
|
+
}
|
|
308
|
+
export declare class BrokerStatsData {
|
|
309
|
+
brokerPutNums: StatsItem;
|
|
310
|
+
brokerGetNums: StatsItem;
|
|
311
|
+
brokerGetSize: StatsItem;
|
|
312
|
+
brokerSucPutTimes: StatsItem;
|
|
313
|
+
brokerSucGetTimes: StatsItem;
|
|
314
|
+
msgPutTotalYesterdayMorning: number;
|
|
315
|
+
msgPutTotalTodayMorning: number;
|
|
316
|
+
msgGetTotalYesterdayMorning: number;
|
|
317
|
+
msgGetTotalTodayMorning: number;
|
|
318
|
+
msgPutTotalTodayNow: number;
|
|
319
|
+
msgGetTotalTodayNow: number;
|
|
320
|
+
putTps: number[];
|
|
321
|
+
getTps: number[];
|
|
322
|
+
getTransferredTps: number[];
|
|
323
|
+
constructor();
|
|
324
|
+
toDict(): Record<string, any>;
|
|
325
|
+
static fromDict(d: Record<string, any>): BrokerStatsData;
|
|
326
|
+
encode(): Buffer;
|
|
327
|
+
static decode(data: Buffer): BrokerStatsData;
|
|
328
|
+
}
|
|
329
|
+
export declare const MessageRequestMode: {
|
|
330
|
+
PULL: number;
|
|
331
|
+
POP: number;
|
|
332
|
+
};
|
|
333
|
+
export declare class QueryMsgResponseBody {
|
|
334
|
+
indexLastUpdateTimestamp: number;
|
|
335
|
+
msgIdSet: string[];
|
|
336
|
+
msgIdList: string[];
|
|
337
|
+
constructor();
|
|
338
|
+
toDict(): Record<string, any>;
|
|
339
|
+
static fromDict(d: Record<string, any>): QueryMsgResponseBody;
|
|
340
|
+
encode(): Buffer;
|
|
341
|
+
static decode(data: Buffer): QueryMsgResponseBody;
|
|
342
|
+
}
|
|
343
|
+
export declare class QueryResult {
|
|
344
|
+
indexLastUpdateTimestamp: number;
|
|
345
|
+
messageList: any[];
|
|
346
|
+
constructor();
|
|
347
|
+
toDict(): Record<string, any>;
|
|
348
|
+
static fromDict(d: Record<string, any>): QueryResult;
|
|
349
|
+
}
|
|
350
|
+
export declare class QueryCorrectionOffsetBody {
|
|
351
|
+
correctionOffsets: Record<number, number>;
|
|
352
|
+
static fromDict(d: Record<string, any>): QueryCorrectionOffsetBody;
|
|
353
|
+
static decode(data: Buffer): QueryCorrectionOffsetBody;
|
|
354
|
+
}
|
|
355
|
+
export declare class ProducerInfo {
|
|
356
|
+
clientId: string | null;
|
|
357
|
+
remoteIP: string | null;
|
|
358
|
+
language: string | null;
|
|
359
|
+
version: number;
|
|
360
|
+
lastUpdateTimestamp: number;
|
|
361
|
+
constructor();
|
|
362
|
+
static fromDict(d: Record<string, any>): ProducerInfo;
|
|
363
|
+
}
|
|
364
|
+
export declare class ProducerTableInfo {
|
|
365
|
+
data: Record<string, ProducerInfo[]>;
|
|
366
|
+
static fromDict(d: Record<string, any>): ProducerTableInfo;
|
|
367
|
+
static decode(data: Buffer): ProducerTableInfo;
|
|
368
|
+
}
|
|
369
|
+
export declare class HAConnectionRuntimeInfo {
|
|
370
|
+
addr: string | null;
|
|
371
|
+
slaveAckOffset: number;
|
|
372
|
+
diff: number;
|
|
373
|
+
inSync: boolean;
|
|
374
|
+
transferredByteInSecond: number;
|
|
375
|
+
transferFromWhere: number;
|
|
376
|
+
constructor();
|
|
377
|
+
static fromDict(d: Record<string, any>): HAConnectionRuntimeInfo;
|
|
378
|
+
}
|
|
379
|
+
export declare class HAClientRuntimeInfo {
|
|
380
|
+
masterAddr: string | null;
|
|
381
|
+
transferredByteInSecond: number;
|
|
382
|
+
maxOffset: number;
|
|
383
|
+
lastReadTimestamp: number;
|
|
384
|
+
lastWriteTimestamp: number;
|
|
385
|
+
masterFlushOffset: number;
|
|
386
|
+
isActivated: boolean;
|
|
387
|
+
constructor();
|
|
388
|
+
static fromDict(d: Record<string, any>): HAClientRuntimeInfo;
|
|
389
|
+
}
|
|
390
|
+
export declare class HARuntimeInfo {
|
|
391
|
+
master: boolean;
|
|
392
|
+
masterCommitLogMaxOffset: number;
|
|
393
|
+
inSyncSlaveNums: number;
|
|
394
|
+
haConnectionInfo: HAConnectionRuntimeInfo[];
|
|
395
|
+
haClientRuntimeInfo: HAClientRuntimeInfo;
|
|
396
|
+
constructor();
|
|
397
|
+
static fromDict(d: Record<string, any>): HARuntimeInfo;
|
|
398
|
+
static decode(data: Buffer): HARuntimeInfo;
|
|
399
|
+
}
|
|
400
|
+
export declare const LAST_EPOCH_END_OFFSET = 9223372036854776000;
|
|
401
|
+
export declare class EpochEntry {
|
|
402
|
+
epoch: number;
|
|
403
|
+
startOffset: number;
|
|
404
|
+
endOffset: number;
|
|
405
|
+
constructor();
|
|
406
|
+
static fromDict(d: Record<string, any>): EpochEntry;
|
|
407
|
+
}
|
|
408
|
+
export declare class EpochEntryCache {
|
|
409
|
+
clusterName: string | null;
|
|
410
|
+
brokerName: string | null;
|
|
411
|
+
brokerId: number;
|
|
412
|
+
epochList: EpochEntry[];
|
|
413
|
+
maxOffset: number;
|
|
414
|
+
constructor();
|
|
415
|
+
static fromDict(d: Record<string, any>): EpochEntryCache;
|
|
416
|
+
static decode(data: Buffer): EpochEntryCache;
|
|
417
|
+
}
|
|
418
|
+
export declare class BrokerMemberGroup {
|
|
419
|
+
cluster: string | null;
|
|
420
|
+
brokerName: string | null;
|
|
421
|
+
brokerAddrs: Record<number, string>;
|
|
422
|
+
constructor();
|
|
423
|
+
static fromDict(d: Record<string, any>): BrokerMemberGroup;
|
|
424
|
+
static decode(data: Buffer): BrokerMemberGroup;
|
|
425
|
+
}
|
|
426
|
+
declare const _default: {
|
|
427
|
+
KVTable: typeof KVTable;
|
|
428
|
+
TopicList: typeof TopicList;
|
|
429
|
+
GroupList: typeof GroupList;
|
|
430
|
+
LockBatchRequestBody: typeof LockBatchRequestBody;
|
|
431
|
+
LockBatchResponseBody: typeof LockBatchResponseBody;
|
|
432
|
+
UnlockBatchRequestBody: typeof UnlockBatchRequestBody;
|
|
433
|
+
GetConsumerListByGroupResponseBody: typeof GetConsumerListByGroupResponseBody;
|
|
434
|
+
CheckClientRequestBody: typeof CheckClientRequestBody;
|
|
435
|
+
ClusterInfo: typeof ClusterInfo;
|
|
436
|
+
Connection: typeof Connection;
|
|
437
|
+
ConsumerConnection: typeof ConsumerConnection;
|
|
438
|
+
ProducerConnection: typeof ProducerConnection;
|
|
439
|
+
QueryConsumeTimeSpanBody: typeof QueryConsumeTimeSpanBody;
|
|
440
|
+
ConsumeStatus: typeof ConsumeStatus;
|
|
441
|
+
ConsumeStatsList: typeof ConsumeStatsList;
|
|
442
|
+
ResetOffsetBody: typeof ResetOffsetBody;
|
|
443
|
+
MessageQueueForC: typeof MessageQueueForC;
|
|
444
|
+
ResetOffsetBodyForC: typeof ResetOffsetBodyForC;
|
|
445
|
+
GetConsumerStatusBody: typeof GetConsumerStatusBody;
|
|
446
|
+
ProcessQueueInfo: typeof ProcessQueueInfo;
|
|
447
|
+
CMResult: typeof CMResult;
|
|
448
|
+
ConsumeMessageDirectlyResult: typeof ConsumeMessageDirectlyResult;
|
|
449
|
+
ConsumerRunningInfo: typeof ConsumerRunningInfo;
|
|
450
|
+
TopicConfig: typeof TopicConfig;
|
|
451
|
+
TopicConfigSerializeWrapper: typeof TopicConfigSerializeWrapper;
|
|
452
|
+
OffsetWrapper: typeof OffsetWrapper;
|
|
453
|
+
ConsumeStats: typeof ConsumeStats;
|
|
454
|
+
BrokerStatsData: typeof BrokerStatsData;
|
|
455
|
+
StatsItem: typeof StatsItem;
|
|
456
|
+
MessageRequestMode: {
|
|
457
|
+
PULL: number;
|
|
458
|
+
POP: number;
|
|
459
|
+
};
|
|
460
|
+
QueryMsgResponseBody: typeof QueryMsgResponseBody;
|
|
461
|
+
QueryResult: typeof QueryResult;
|
|
462
|
+
messageQueueKey: typeof messageQueueKey;
|
|
463
|
+
parseMessageQueueKey: typeof parseMessageQueueKey;
|
|
464
|
+
decodeMessageQueueMap: typeof decodeMessageQueueMap;
|
|
465
|
+
QueryCorrectionOffsetBody: typeof QueryCorrectionOffsetBody;
|
|
466
|
+
ProducerInfo: typeof ProducerInfo;
|
|
467
|
+
ProducerTableInfo: typeof ProducerTableInfo;
|
|
468
|
+
HAConnectionRuntimeInfo: typeof HAConnectionRuntimeInfo;
|
|
469
|
+
HAClientRuntimeInfo: typeof HAClientRuntimeInfo;
|
|
470
|
+
HARuntimeInfo: typeof HARuntimeInfo;
|
|
471
|
+
EpochEntry: typeof EpochEntry;
|
|
472
|
+
EpochEntryCache: typeof EpochEntryCache;
|
|
473
|
+
BrokerMemberGroup: typeof BrokerMemberGroup;
|
|
474
|
+
};
|
|
475
|
+
export default _default;
|