forked from hornetq/hornetq
/
HornetQMessageBundle.java
321 lines (236 loc) · 18.5 KB
/
HornetQMessageBundle.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
/*
* JBoss, Home of Professional Open Source.
* Copyright 2010, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.hornetq.core.server;
import org.hornetq.api.core.DiscoveryGroupConfiguration;
import org.hornetq.api.core.HornetQConnectionTimedOutException;
import org.hornetq.api.core.HornetQDisconnectedException;
import org.hornetq.api.core.HornetQDuplicateMetaDataException;
import org.hornetq.api.core.HornetQException;
import org.hornetq.api.core.HornetQIOErrorException;
import org.hornetq.api.core.HornetQIllegalStateException;
import org.hornetq.api.core.HornetQIncompatibleClientServerException;
import org.hornetq.api.core.HornetQInternalErrorException;
import org.hornetq.api.core.HornetQInvalidFilterExpressionException;
import org.hornetq.api.core.HornetQNonExistentQueueException;
import org.hornetq.api.core.HornetQQueueExistsException;
import org.hornetq.api.core.HornetQSecurityException;
import org.hornetq.api.core.HornetQSessionCreationException;
import org.hornetq.api.core.SimpleString;
import org.hornetq.core.postoffice.Binding;
import org.hornetq.core.protocol.core.impl.wireformat.ReplicationSyncFileMessage;
import org.hornetq.core.security.CheckType;
import org.hornetq.spi.core.protocol.ProtocolType;
import org.jboss.logging.Cause;
import org.jboss.logging.Message;
import org.jboss.logging.MessageBundle;
import org.jboss.logging.Messages;
/**
* Logger Code 11
* <p>
* Each message id must be 6 digits long starting with 10, the 3rd digit should be 9. So the range
* is from 119000 to 119999.
* <p>
* Once released, methods should not be deleted as they may be referenced by knowledge base
* articles. Unused methods should be marked as deprecated.
* @author <a href="mailto:andy.taylor@jboss.org">Andy Taylor</a>
*/
@MessageBundle(projectCode = "HQ")
public interface HornetQMessageBundle
{
HornetQMessageBundle BUNDLE = Messages.getBundle(HornetQMessageBundle.class);
@Message(id = 119000, value = "Activation for server {0}", format = Message.Format.MESSAGE_FORMAT)
String activationForServer(HornetQServer server);
@Message(id = 119001, value = "Generating thread dump because - {0}", format = Message.Format.MESSAGE_FORMAT)
String generatingThreadDump(String reason);
@Message(id = 119002, value = "Thread {0} name = {1} id = {2} group = {3}", format = Message.Format.MESSAGE_FORMAT)
String threadDump(Thread key, String name, Long id, ThreadGroup threadGroup);
@Message(id = 119003, value = "End Thread dump", format = Message.Format.MESSAGE_FORMAT)
String endThreadDump();
@Message(id = 119004, value = "Information about server {0}\nCluster Connection:{1}", format = Message.Format.MESSAGE_FORMAT)
String serverDescribe(String identity, String describe);
@Message(id = 119005, value = "connections for {0} closed by management" , format = Message.Format.MESSAGE_FORMAT)
HornetQInternalErrorException connectionsClosedByManagement(String ipAddress);
@Message(id = 119006, value = "journals are not JournalImpl. You can't set a replicator!" , format = Message.Format.MESSAGE_FORMAT)
HornetQInternalErrorException notJournalImpl();
@Message(id = 119007, value = "unhandled error during replication" , format = Message.Format.MESSAGE_FORMAT)
HornetQInternalErrorException replicationUnhandledError(@Cause Exception e);
@Message(id = 119008, value = "Live Node contains more journals than the backup node. Probably a version match error", format = Message.Format.MESSAGE_FORMAT)
HornetQInternalErrorException replicationTooManyJournals();
@Message(id = 119009, value = "Unhandled file type {0}", format = Message.Format.MESSAGE_FORMAT)
HornetQInternalErrorException replicationUnhandledFileType(ReplicationSyncFileMessage.FileType fileType);
@Message(id = 119010, value = "Remote Backup can not be up-to-date!", format = Message.Format.MESSAGE_FORMAT)
HornetQInternalErrorException replicationBackupUpToDate();
@Message(id = 119011, value = "unhandled data type!", format = Message.Format.MESSAGE_FORMAT)
HornetQInternalErrorException replicationUnhandledDataType();
@Message(id = 119012, value = "No binding for divert {0}", format = Message.Format.MESSAGE_FORMAT)
HornetQInternalErrorException noBindingForDivert(SimpleString name);
@Message(id = 119013, value = "Binding {0} is not a divert", format = Message.Format.MESSAGE_FORMAT)
HornetQInternalErrorException bindingNotDivert(SimpleString name);
@Message(id = 119014,
value = "Did not receive data from {0}. It is likely the client has exited or crashed without "
+
"closing its connection, or the network between the server and client has failed. " +
"You also might have configured connection-ttl and client-failure-check-period incorrectly. " +
"Please check user manual for more information." +
" The connection will now be closed.", format = Message.Format.MESSAGE_FORMAT)
HornetQConnectionTimedOutException clientExited(String remoteAddress);
@Message(id = 119015, value = "Timeout on waiting I/O completion", format = Message.Format.MESSAGE_FORMAT)
HornetQIOErrorException ioTimeout();
@Message(id = 119016, value = "queue {0} has been removed cannot deliver message, queues should not be removed when grouping is used", format = Message.Format.MESSAGE_FORMAT)
HornetQNonExistentQueueException groupingQueueRemoved(SimpleString chosenClusterName);
@Message(id = 119017, value = "Queue {0} does not exist", format = Message.Format.MESSAGE_FORMAT)
HornetQNonExistentQueueException noSuchQueue(SimpleString queueName);
@Message(id = 119018, value = "Binding already exists {0}", format = Message.Format.MESSAGE_FORMAT)
HornetQQueueExistsException bindingAlreadyExists(Binding binding);
@Message(id = 119019, value = "Queue already exists {0}", format = Message.Format.MESSAGE_FORMAT)
HornetQQueueExistsException queueAlreadyExists(SimpleString queueName);
@Message(id = 119020, value = "Invalid filter: {0}", format = Message.Format.MESSAGE_FORMAT)
HornetQInvalidFilterExpressionException invalidFilter(@Cause Throwable e, SimpleString filter);
@Message(id = 119021, value = "MessageId was not assigned to Message", format = Message.Format.MESSAGE_FORMAT)
HornetQIllegalStateException messageIdNotAssigned();
@Message(id = 119022, value = "Cannot compare journals if not in sync!", format = Message.Format.MESSAGE_FORMAT)
HornetQIllegalStateException journalsNotInSync();
@Message(id = 119023, value = "Connected server is not a backup server", format = Message.Format.MESSAGE_FORMAT)
HornetQIllegalStateException serverNotBackupServer();
@Message(id = 119024, value = "Backup replication server is already connected to another server", format = Message.Format.MESSAGE_FORMAT)
HornetQIllegalStateException alreadyHaveReplicationServer();
@Message(id = 119025, value = "Cannot delete queue {0} on binding {1} - it has consumers = {2}", format = Message.Format.MESSAGE_FORMAT)
HornetQIllegalStateException cannotDeleteQueue(SimpleString name, SimpleString queueName, String s);
@Message(id = 119026, value = "Backup Server was not yet in sync with live", format = Message.Format.MESSAGE_FORMAT)
HornetQIllegalStateException backupServerNotInSync();
@Message(id = 119027, value = "Could not find reference on consumer ID={0}, messageId = {1} queue = {2}", format = Message.Format.MESSAGE_FORMAT)
HornetQIllegalStateException consumerNoReference(Long id, Long messageID, SimpleString name);
@Message(id = 119028, value = "Consumer {0} doesn't exist on the server" , format = Message.Format.MESSAGE_FORMAT)
HornetQIllegalStateException consumerDoesntExist(long consumerID);
@Message(id = 119029, value = "No address configured on the Server's Session" , format = Message.Format.MESSAGE_FORMAT)
HornetQIllegalStateException noAddress();
@Message(id = 119030, value = "large-message not initialized on server", format = Message.Format.MESSAGE_FORMAT)
HornetQIllegalStateException largeMessageNotInitialised();
@Message(id = 119031, value = "Unable to validate user: {0}", format = Message.Format.MESSAGE_FORMAT)
HornetQSecurityException unableToValidateUser(String user);
@Message(id = 119032, value = "User: {0} doesn't have permission='{1}' on address {2}", format = Message.Format.MESSAGE_FORMAT)
HornetQSecurityException userNoPermissions(String username, CheckType checkType, String saddress);
@Message(id = 119033, value = "Server and client versions incompatible", format = Message.Format.MESSAGE_FORMAT)
HornetQIncompatibleClientServerException incompatibleClientServer();
@Message(id = 119034, value = "Server not started", format = Message.Format.MESSAGE_FORMAT)
HornetQSessionCreationException serverNotStarted();
@Message(id = 119035, value = "Metadata {0}={1} had been set already", format = Message.Format.MESSAGE_FORMAT)
HornetQDuplicateMetaDataException duplicateMetadata(String key, String data);
@Message(id = 119036, value = "Invalid type: {0}", format = Message.Format.MESSAGE_FORMAT)
IllegalArgumentException invalidType(Object type);
@Message(id = 119037, value = "retry interval must be positive, was {0}", format = Message.Format.MESSAGE_FORMAT)
IllegalArgumentException invalidRetryInterval(Long size);
@Message(id = 119038, value = "{0} must neither be null nor empty", format = Message.Format.MESSAGE_FORMAT)
IllegalArgumentException emptyOrNull(String name);
@Message(id = 119039, value = "{0} must be greater than 0 (actual value: {1})", format = Message.Format.MESSAGE_FORMAT)
IllegalArgumentException greaterThanZero(String name, Number val);
@Message(id = 119040, value = "{0} must be a valid percentual value between 0 and 100 (actual value: {1})", format = Message.Format.MESSAGE_FORMAT)
IllegalArgumentException notPercent(String name, Number val);
@Message(id = 119041, value = "{0} must be equals to -1 or greater than 0 (actual value: {1})", format = Message.Format.MESSAGE_FORMAT)
IllegalArgumentException greaterThanMinusOne(String name, Number val);
@Message(id = 119042, value = "{0} must be equals to -1 or greater or equals to 0 (actual value: {1})", format = Message.Format.MESSAGE_FORMAT)
IllegalArgumentException greaterThanZeroOrMinusOne(String name, Number val);
@Message(id = 119043, value = "{0} must be betwen {1} and {2} inclusive (actual value: {3})", format = Message.Format.MESSAGE_FORMAT)
IllegalArgumentException mustbeBetween(String name, Integer minPriority, Integer maxPriority, Object value);
@Message(id = 119044, value = "Invalid journal type {0}", format = Message.Format.MESSAGE_FORMAT)
IllegalArgumentException invalidJournalType(String val);
@Message(id = 119045, value = "Invalid address full message policy type {0}", format = Message.Format.MESSAGE_FORMAT)
IllegalArgumentException invalidAddressFullPolicyType(String val);
@Message(id = 119046, value = "invalid value: {0} count must be greater than 0", format = Message.Format.MESSAGE_FORMAT)
IllegalArgumentException greaterThanZero(Integer count);
@Message(id = 119047, value = "Cannot set Message Counter Sample Period < {0}ms", format = Message.Format.MESSAGE_FORMAT)
IllegalArgumentException invalidMessageCounterPeriod(Long period);
@Message(id = 119048, value = "invalid new Priority value: {0}. It must be between 0 and 9 (both included)", format = Message.Format.MESSAGE_FORMAT)
IllegalArgumentException invalidNewPriority(Integer period);
@Message(id = 119049, value = "No queue found for {0}", format = Message.Format.MESSAGE_FORMAT)
IllegalArgumentException noQueueFound(String otherQueueName);
@Message(id = 119050, value = "Only NIO and AsyncIO are supported journals", format = Message.Format.MESSAGE_FORMAT)
IllegalArgumentException invalidJournal();
@Message(id = 119051, value = "Invalid journal type {0}", format = Message.Format.MESSAGE_FORMAT)
IllegalArgumentException invalidJournalType2(JournalType journalType);
@Message(id = 119052, value = "Directory {0} does not exist and cannot be created", format = Message.Format.MESSAGE_FORMAT)
IllegalArgumentException cannotCreateDir(String dir);
@Message(id = 119053, value = "Invalid index {0}", format = Message.Format.MESSAGE_FORMAT)
IllegalArgumentException invalidIndex(Integer index);
@Message(id = 119054, value = "Cannot convert to int", format = Message.Format.MESSAGE_FORMAT)
IllegalArgumentException cannotConvertToInt();
@Message(id = 119055, value = "Routing name is null", format = Message.Format.MESSAGE_FORMAT)
IllegalArgumentException routeNameIsNull();
@Message(id = 119056, value = "Cluster name is null", format = Message.Format.MESSAGE_FORMAT)
IllegalArgumentException clusterNameIsNull();
@Message(id = 119057, value = "Address is null", format = Message.Format.MESSAGE_FORMAT)
IllegalArgumentException addressIsNull();
@Message(id = 119058, value = "Binding type not specified", format = Message.Format.MESSAGE_FORMAT)
IllegalArgumentException bindingTypeNotSpecified();
@Message(id = 119059, value = "Binding ID is null", format = Message.Format.MESSAGE_FORMAT)
IllegalArgumentException bindingIdNotSpecified();
@Message(id = 119060, value = "Distance is null", format = Message.Format.MESSAGE_FORMAT)
IllegalArgumentException distancenotSpecified();
@Message(id = 119061, value = "Connection already exists with id {0}", format = Message.Format.MESSAGE_FORMAT)
IllegalArgumentException connectionExists(Object id);
@Message(id = 119062, value = "Acceptor with id {0} already registered", format = Message.Format.MESSAGE_FORMAT)
IllegalArgumentException acceptorExists(Integer id);
@Message(id = 119063, value = "Acceptor with id {0} not registered", format = Message.Format.MESSAGE_FORMAT)
IllegalArgumentException acceptorNotExists(Integer id);
@Message(id = 119064, value = "Unknown protocol {0}", format = Message.Format.MESSAGE_FORMAT)
IllegalArgumentException unknownProtocol(ProtocolType protocol);
@Message(id = 119065, value = "node id is null", format = Message.Format.MESSAGE_FORMAT)
IllegalArgumentException nodeIdNull();
@Message(id = 119066, value = "Queue name is null", format = Message.Format.MESSAGE_FORMAT)
IllegalArgumentException queueNameIsNull();
@Message(id = 119067, value = "Cannot find resource with name {0}", format = Message.Format.MESSAGE_FORMAT)
IllegalArgumentException cannotFindResource(String resourceName);
@Message(id = 119068, value = "no getter method for {0}", format = Message.Format.MESSAGE_FORMAT)
IllegalArgumentException noGetterMethod(String resourceName);
@Message(id = 119069, value = "no operation {0}/{1}", format = Message.Format.MESSAGE_FORMAT)
IllegalArgumentException noOperation(String operation, Integer length);
@Message(id = 119070, value = "match can not be null", format = Message.Format.MESSAGE_FORMAT)
IllegalArgumentException nullMatch();
@Message(id = 119071, value = "* can only be at end of match", format = Message.Format.MESSAGE_FORMAT)
IllegalArgumentException invalidMatch();
@Message(id = 119072, value = "User cannot be null", format = Message.Format.MESSAGE_FORMAT)
IllegalArgumentException nullUser();
@Message(id = 119073, value = "Password cannot be null", format = Message.Format.MESSAGE_FORMAT)
IllegalArgumentException nullPassword();
@Message(id = 119074, value = "Error instantiating transformer class {0}" , format = Message.Format.MESSAGE_FORMAT)
IllegalArgumentException errorCreatingTransformerClass(@Cause Exception e, String transformerClassName);
@Message(id = 119075, value = "method autoEncode doesn't know how to convert {0} yet", format = Message.Format.MESSAGE_FORMAT)
IllegalArgumentException autoConvertError(Class<? extends Object> aClass);
/** Message used on on {@link org.hornetq.core.server.impl.HornetQServerImpl#destroyConnectionWithSessionMetadata(String, String)} */
@Message(id = 119076, value = "Executing destroyConnection with {0}={1} through management's request", format = Message.Format.MESSAGE_FORMAT)
String destroyConnectionWithSessionMetadataHeader(String key, String value);
/** Message used on on {@link org.hornetq.core.server.impl.HornetQServerImpl#destroyConnectionWithSessionMetadata(String, String)} */
@Message(id = 119077, value = "Closing connection {0}", format = Message.Format.MESSAGE_FORMAT)
String destroyConnectionWithSessionMetadataClosingConnection(String serverSessionString);
/** Exception used on on {@link org.hornetq.core.server.impl.HornetQServerImpl#destroyConnectionWithSessionMetadata(String, String)} */
@Message(id = 119078, value = "Disconnected per admin's request on {0}={1}", format = Message.Format.MESSAGE_FORMAT)
HornetQDisconnectedException destroyConnectionWithSessionMetadataSendException(String key, String value);
/** Message used on on {@link org.hornetq.core.server.impl.HornetQServerImpl#destroyConnectionWithSessionMetadata(String, String)} */
@Message(id = 119079, value = "No session found with {0}={1}", format = Message.Format.MESSAGE_FORMAT)
String destroyConnectionWithSessionMetadataNoSessionFound(String key, String value);
@Message(id = 119080, value = "Invalid Page IO, PagingManager was stopped or closed", format = Message.Format.MESSAGE_FORMAT)
HornetQIllegalStateException invalidPageIO();
@Message(id = 119081, value = "No Discovery Group configuration named {0} found", format = Message.Format.MESSAGE_FORMAT)
HornetQException noDiscoveryGroupFound(DiscoveryGroupConfiguration dg);
@Message(id = 119082, value = "No Transaction set on the XA Session", format = Message.Format.MESSAGE_FORMAT)
HornetQException noTXSet();
}