/
HostControllerLogger.java
1255 lines (1075 loc) · 52.6 KB
/
HostControllerLogger.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
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/*
* JBoss, Home of Professional Open Source.
* Copyright 2011, 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.jboss.as.host.controller.logging;
import java.io.File;
import java.io.IOException;
import java.net.URI;
import java.net.URL;
import java.nio.file.Path;
import java.util.Set;
import javax.security.sasl.SaslException;
import javax.xml.stream.Location;
import javax.xml.stream.XMLStreamException;
import org.jboss.as.controller.OperationFailedException;
import org.jboss.as.controller.PathAddress;
import org.jboss.as.controller.RunningMode;
import org.jboss.as.controller.client.helpers.domain.ServerStatus;
import org.jboss.as.host.controller.discovery.DiscoveryOption;
import org.jboss.as.host.controller.model.host.AdminOnlyDomainConfigPolicy;
import org.jboss.as.host.controller.model.jvm.JvmType;
import org.jboss.as.protocol.mgmt.RequestProcessingException;
import org.jboss.as.server.ServerState;
import org.jboss.dmr.ModelNode;
import org.jboss.logging.BasicLogger;
import org.jboss.logging.Logger;
import org.jboss.logging.Logger.Level;
import org.jboss.logging.annotations.Cause;
import org.jboss.logging.annotations.LogMessage;
import org.jboss.logging.annotations.Message;
import org.jboss.logging.annotations.MessageLogger;
import org.jboss.logging.annotations.Param;
import org.jboss.remoting3.Channel;
/**
* @author <a href="mailto:jperkins@redhat.com">James R. Perkins</a>
* @author <a href="mailto:david.lloyd@redhat.com">David M. Lloyd</a>
*/
@MessageLogger(projectCode = "WFLYHC", length = 4)
public interface HostControllerLogger extends BasicLogger {
/**
* A logger with a category of {@code org.jboss.as.host.controller}.
* <strong>Usage:</strong> Use this in code related to Host Controller functionality, except
* for areas described in the documentation of {@link #DOMAIN_LOGGER}.
*/
HostControllerLogger ROOT_LOGGER = Logger.getMessageLogger(HostControllerLogger.class, "org.jboss.as.host.controller");
/**
* A logger with a category of {@code org.jboss.as.domain.controller}.
* <strong>Usage:</strong> Use this in OSH code related to the resources persisted in domain.xml, or
* in code specific to the function of the master Host Controller, e.g. the registration/deregistration
* of slave Host Contollers.
*/
HostControllerLogger DOMAIN_LOGGER = Logger.getMessageLogger(HostControllerLogger.class, "org.jboss.as.domain.controller");
/**
* Logs a warning message indicating the remote domain controller could not connect.
*
* @param uri the URI to which the connection attempt was made
* @param cause the cause
*/
@LogMessage(level = Level.WARN)
@Message(id = 1, value = "Could not connect to remote domain controller %s -- %s")
void cannotConnect(URI uri, Exception cause);
/**
* Logs an error message indicating this host is a slave and cannot connect to the master host controller.
*
* @param e the cause of the error.
*/
@LogMessage(level = Level.ERROR)
@Message(id = 2, value = "Could not connect to master. Aborting. Error was: %s")
void cannotConnectToMaster(Exception e);
/**
* Logs an informational message indicating the creation of HTTP management server using the network interface.
*
* @param interfaceName the interface name.
* @param port the port number.
* @param securePort the secure port number.
*/
@LogMessage(level = Level.INFO)
@Message(id = 3, value = "Creating http management service using network interface (%s) port (%d) securePort (%d)")
void creatingHttpManagementService(String interfaceName, int port, int securePort);
/**
* Logs a warning message indicating an error retrieving domain model from the remote domain controller.
*
* @param hostName the name of the host.
* @param port the port number.
* @param errorMessage the error message.
*/
@LogMessage(level = Level.WARN)
@Message(id = 4, value = "Error retrieving domain model from remote domain controller %s:%d: %s")
void errorRetrievingDomainModel(String hostName, int port, String errorMessage);
/**
* Logs a warning message indicating the existing server is already defined with a different state.
*
* @param serverName the name of the server.
* @param state the current state.
*/
@LogMessage(level = Level.WARN)
@Message(id = 5, value = "Existing server [%s] with status: %s")
void existingServerWithState(String serverName, ServerStatus state);
/**
* Logs an error message indicating a failure to create a server process.
*
* @param cause the cause of the error.
* @param serverName the server name that failed.
*/
@LogMessage(level = Level.ERROR)
@Message(id = 6, value = "Failed to create server process %s")
void failedToCreateServerProcess(@Cause Throwable cause, String serverName);
/**
* Logs an error message indicating a failure to send a reconnect message to the server.
*
* @param cause the cause of the error.
* @param serverName the server name.
*/
@LogMessage(level = Level.ERROR)
@Message(id = 7, value = "Failed to send reconnect message to server %s")
void failedToSendReconnect(@Cause Throwable cause, String serverName);
/**
* Logs an error message indicating a failure to start the server, represented by the {@code serverName} parameter.
*
* @param cause the cause of the error.
* @param serverName the name of the server.
*/
@LogMessage(level = Level.ERROR)
@Message(id = 8, value = "Failed to start server (%s)")
void failedToStartServer(@Cause Throwable cause, String serverName);
/**
* Logs an error message indicating a failure to stop the server, represented by the {@code serverName} parameter.
*
* @param cause the cause of the error.
* @param serverName the name of the server.
*/
@LogMessage(level = Level.ERROR)
@Message(id = 9, value = "Failed to stop server (%s)")
void failedToStopServer(@Cause Throwable cause, String serverName);
/**
* Logs a warning message indicating graceful shutdown of servers is not supported.
*
* @param serverName the name fo the server.
*/
@LogMessage(level = Level.WARN)
@Message(id = 10, value = "Graceful shutdown of server %s was requested but is not presently supported. Falling back to rapid shutdown.")
void gracefulShutdownNotSupported(String serverName);
/**
* Logs a warning message indicating {@literal <permgen>} is being ignored.
*
* @param type the jvm type.
* @param jvm the jvm.
*/
@LogMessage(level = Level.WARN)
@Message(id = 11, value = "Ignoring <permgen> for jvm '%s' type jvm: %s")
void ignoringPermGen(JvmType type, String jvm);
/**
* Logs an error message indicating this host had no domain controller configuration and cannot start if not in
* {@link org.jboss.as.controller.RunningMode#ADMIN_ONLY} mode.
*/
@LogMessage(level = Level.ERROR)
@Message(id = 12, value = "No <domain-controller> configuration was provided and the current running mode ('%s') " +
"requires access to the Domain Controller host. Startup will be aborted. Use the %s command line argument " +
"to start in %s mode if you need to start without a domain controller connection and then use the management " +
"tools to configure one.")
void noDomainControllerConfigurationProvided(RunningMode currentRunningMode, String adminOnlyCmdLineArg, RunningMode validRunningMode);
/**
* Logs a warning message indicating no security realm was defined for the HTTP management service. All access will
* be unrestricted.
*/
@LogMessage(level = Level.WARN)
@Message(id = 13, value = "No security realm defined for http management service, all access will be unrestricted.")
void noSecurityRealmDefined();
/**
* Logs an error message indicating no server with the server name is available.
*
* @param serverName the name of the server.
*/
@LogMessage(level = Level.ERROR)
@Message(id = 14, value = "No server called %s available")
void noServerAvailable(String serverName);
/**
* Logs an error message indicating the connection to the remote host controller closed.
*/
@LogMessage(level = Level.WARN)
@Message(id = 15, value = "Connection to remote host-controller closed. Trying to reconnect.")
void lostRemoteDomainConnection();
/**
* Logs a warning message indicating the option for the jvm was already set and is being ignored.
*
* @param option the option.
* @param jvm the jvm.
* @param element the schema element.
*/
@LogMessage(level = Level.WARN)
@Message(id = 16, value = "Ignoring <option value=\"%s\" for jvm '%s' since '%s' was set")
void optionAlreadySet(String option, String jvm, String element);
/**
* Logs an informational message indicating a reconnection to master.
*/
// @LogMessage(level = Level.INFO)
// @Message(id = 17, value = "Reconnected to master")
// void reconnectedToMaster();
/**
* Logs an informational message indicating the server is being reconnected.
*
* @param serverName the name of the server.
*/
@LogMessage(level = Level.INFO)
@Message(id = 18, value = "Reconnecting server %s")
void reconnectingServer(String serverName);
/**
* Logs an informational message indicating the host has been registered as a remote slave.
*
* @param hostName the host name
* @param productName the product name
*/
@LogMessage(level = Level.INFO)
@Message(id = 19, value = "Registered remote slave host \"%s\", %s")
void registeredRemoteSlaveHost(String hostName, String productName);
/**
* Logs an informational message indicating the server, represented by the {@code name} parameter, is being
* registered.
*
* @param name the name of the server.
*/
@LogMessage(level = Level.INFO)
@Message(id = 20, value = "Registering server %s")
void registeringServer(String name);
/**
* Logs an informational message indicating the server, represented by the {@code name} parameter, was registered
* using the connection represented by the {@code channel} parameter.
*
* @param name the name of the server.
* @param channel the channel used to register the connection.
*/
@LogMessage(level = Level.INFO)
@Message(id = 21, value = "Server [%s] connected using connection [%s]")
void serverConnected(String name, Channel channel);
/**
* Logs a warning message indicating graceful shutdown of management request handling of slave HC to master HC
* communication did not complete.
*
* @param cause the cause of the error.
*/
@LogMessage(level = Level.WARN)
@Message(id = 22, value = "Graceful shutdown of the handler used for messages from other Host Controllers did not cleanly complete but shutdown of the underlying communication channel is proceeding")
void serviceShutdownIncomplete(@Cause Throwable cause);
/**
* Logs an informational message indicating the server is starting.
*
* @param serverName the name of the server that is starting.
*/
@LogMessage(level = Level.INFO)
@Message(id = 23, value = "Starting server %s")
void startingServer(String serverName);
/**
* Logs an informational message indicating the server is stopping.
*
* @param serverName the name of the server.
*/
@LogMessage(level = Level.INFO)
@Message(id = 24, value = "Stopping server %s")
void stoppingServer(String serverName);
/**
* Logs a warning message indicating the server is not in the expected state.
*
* @param serverName the name of the server.
* @param expected the expected state.
* @param current the current state.
*/
@LogMessage(level = Level.WARN)
@Message(id = 25, value = "Server %s is not in the expected %s state: %s")
void unexpectedServerState(String serverName, ServerState expected, ServerState current);
/**
* Logs an informational message indicating the host has been unregistered as a remote slave.
*
* @param host the host.
*/
@LogMessage(level = Level.INFO)
@Message(id = 26, value = "Unregistered remote slave host \"%s\"")
void unregisteredRemoteSlaveHost(String host);
/**
* Logs an informational message indicating the server, represented by the {@code name} parameter, is being
* unregistered.
*
* @param name the name of the server.
*/
@LogMessage(level = Level.INFO)
@Message(id = 27, value = "Unregistering server %s")
void unregisteringServer(String name);
/**
* Informal log message indicating the local host registered at the remote domain controller.
*/
@LogMessage(level = Level.INFO)
@Message(id = 28, value = "Registered at domain controller")
void registeredAtRemoteHostController();
/**
* Informal log message indicating the local host unregistered at the remote domain controller.
*/
@LogMessage(level = Level.INFO)
@Message(id = 29, value = "Unregistered at domain controller")
void unregisteredAtRemoteHostController();
@LogMessage(level = Level.WARN)
@Message(id = 30, value = "Connection to remote host \"%s\" closed unexpectedly")
void lostConnectionToRemoteHost(String hostId);
@LogMessage(level = Level.WARN)
@Message(id = 31, value = "Cannot load the domain model using using --backup")
void invalidRemoteBackupPersisterState();
@LogMessage(level = Level.WARN)
@Message(id = 32, value = "Cannot store the domain model using using --cached-dc")
void invalidCachedPersisterState();
@LogMessage(level = Level.ERROR)
@Message(id = 33, value = "Caught exception during boot")
void caughtExceptionDuringBoot(@Cause Exception e);
@LogMessage(level = Level.FATAL)
@Message(id = 34, value = "Host Controller boot has failed in an unrecoverable manner; exiting. See previous messages for details.")
void unsuccessfulBoot();
@LogMessage(level = Level.ERROR)
@Message(id = 35, value = "Installation of the domain-wide configuration has failed. Because the running mode of this Host Controller is ADMIN_ONLY boot has been allowed to proceed. If ADMIN_ONLY mode were not in effect the process would be terminated due to a critical boot failure.")
void reportAdminOnlyDomainXmlFailure();
/**
* Logs a warning message indicating graceful shutdown of management request handling of slave HC to master HC
* communication did not complete within the given timeout period.
*
* @param timeout the timeout, in ms.
*/
@LogMessage(level = Level.WARN)
@Message(id = 36, value = "Graceful shutdown of the handler used for messages from other Host Controllers did not complete within [%d] ms but shutdown of the underlying communication channel is proceeding")
void gracefulManagementChannelHandlerShutdownTimedOut(int timeout);
@LogMessage(level = Level.INFO)
@Message(id = 37, value="The master host controller has been restarted. Re-registering this slave host controller with the new master.")
void masterHostControllerChanged();
@LogMessage(level = Level.WARN)
@Message(id = 38, value="The master host controller could not be reached in the last [%d] milliseconds. Re-connecting.")
void masterHostControllerUnreachable(long timeout);
@LogMessage(level = Level.INFO)
@Message(id = 39, value="The slave host controller \"%s\" has been restarted or is attempting to reconnect. Unregistering the current connection to this slave.")
void slaveHostControllerChanged(String hostName);
@LogMessage(level = Level.WARN)
@Message(id = 40, value="The slave host controller \"%s\" could not be reached in the last [%d] milliseconds. Unregistering.")
void slaveHostControllerUnreachable(String hostName, long timeout);
/**
* A message indicating an argument was expected for the option.
*
*
* @param option the option that expects the argument.
* @param usageNote the output of method {@link #usageNote(String)}
* @return the message.
*/
@Message(id = 41, value = "Argument expected for option %s. %s")
String argumentExpected(String option, String usageNote);
/**
* Creates an exception indicating an attempt was made to set the {@code attributeToSet} when the {@code
* attributeAlreadySet} was already set.
*
* @param attributeToSet the attribute to set.
* @param attributeAlreadySet the attribute was already set.
*
* @return an {@link IllegalArgumentException} for the error.
*/
@Message(id = 42, value = "Attempting to set '%s' when '%s' was already set")
IllegalArgumentException attemptingToSet(String attributeToSet, String attributeAlreadySet);
/**
* Creates an exception indicating an inability to connect due to authentication failures.
*
* @param cause the cause of the error.
*
* @return an {@link IllegalStateException} for the error.
*/
@Message(id = 43, value = "Unable to connect due to authentication failure.")
IllegalStateException authenticationFailureUnableToConnect(@Cause Throwable cause);
/**
* Creates an exception indicating the remote file repository cannot be accessed from the master domain controller.
*
* @return an {@link IllegalStateException} for the error.
*/
@Message(id = 44, value = "Cannot access a remote file repository from the master domain controller")
IllegalStateException cannotAccessRemoteFileRepository();
/**
* Creates an exception indicating the inability to create a local directory.
*
* @param path the directory that failed to create.
*
* @return an {@link IOException} for the error.
*/
@Message(id = 45, value = "Unable to create local directory: %s")
IOException cannotCreateLocalDirectory(File path);
/**
* Creates an exception indicating the default address cannot be obtained for communicating with the
* ProcessController.
*
* @param cause the cause of the error.
* @param defaultAddress the default address.
* @param option the option.
*
* @return a {@link RuntimeException} for the error.
*/
@Message(id = 46, value = "Cannot obtain a valid default address for communicating with " +
"the ProcessController using either %s or InetAddress.getLocalHost(). Please check your system's " +
"network configuration or use the %s command line switch to configure a valid address")
RuntimeException cannotObtainValidDefaultAddress(@Cause Throwable cause, String defaultAddress, String option);
/**
* A message indicating the server, represented by the {@code serverName} parameter, cannot restart as it is not
* currently started.
*
* @param serverName the name of the server.
* @param status the status of the server.
*
* @return the message.
*/
@Message(id = 47, value = "Cannot restart server %s as it is not currently started; it is %s")
String cannotRestartServer(String serverName, ServerStatus status);
/**
* A message indicating the servers cannot start when the host controller is running in the mode represented by the
* {@code mode} parameter.
*
* @param mode the running mode.
*
* @return the message.
*/
@Message(id = 48, value = "Cannot start servers when the Host Controller running mode is %s")
String cannotStartServersInvalidMode(RunningMode mode);
/**
* Creates an exception indicating the close should be managed by the service.
*
* @return an {@link UnsupportedOperationException} for the error.
*/
@Message(id = 49, value = "Close should be managed by the service")
UnsupportedOperationException closeShouldBeManagedByService();
/**
* Creates an exception indicating the configuration persister for the domain model is already initialized.
*
* @return an {@link IllegalStateException} for the error.
*/
@Message(id = 50, value = "Configuration persister for domain model is already initialized")
IllegalStateException configurationPersisterAlreadyInitialized();
/**
* Creates an exception indicating an interruption while trying to connect to master.
*
* @return an {@link IllegalStateException} for the error.
*/
@Message(id = 51, value = "Interrupted while trying to connect to master")
IllegalStateException connectionToMasterInterrupted();
/**
* Creates an exception indicating the connection to master could not be completed within the number of retries and
* timeout.
*
* @param cause the cause of the error.
* @param retries the number of retries.
* @param timeout the timeout in milliseconds..
*
* @return an {@link IllegalStateException} for the error.
*/
@Message(id = 52, value = "Could not connect to master in %d attempts within %s ms")
IllegalStateException connectionToMasterTimeout(@Cause Throwable cause, int retries, long timeout);
/**
* Creates an exception indicating the server inventory could bot bre retrieved in the time.
*
* @param time the time.
* @param timeUnit the time unit.
*
* @return a {@link RuntimeException} for the error.
*/
@Message(id = 53, value = "Could not get the server inventory in %d %s")
RuntimeException couldNotGetServerInventory(long time, String timeUnit);
/**
* Creates an exception indicating the entire file was not read.
*
* @param missing the missing length.
*
* @return an {@link IOException} for the error.
*/
@Message(id = 54, value = "Did not read the entire file. Missing: %d")
IOException didNotReadEntireFile(long missing);
/**
* Creates an exception indicating there was an error closing down the host.
*
* @param cause the cause of the host.
*
* @return a {@link RuntimeException} for the error.
*/
@Message(id = 55, value = "Error closing down host")
RuntimeException errorClosingDownHost(@Cause Throwable cause);
/**
* A message indicating a failure to retrieve the profile operations from the domain controller.
*
* @return the message.
*/
@Message(id = 56, value = "Failed to retrieve profile operations from domain controller")
String failedProfileOperationsRetrieval();
/**
* Creates an exception indicating a failure to get the file from a remote repository.
*
* @param cause the cause of the error.
*
* @return a {@link RuntimeException} for the error.
*/
@Message(id = 57, value = "Failed to get file from remote repository")
RuntimeException failedToGetFileFromRemoteRepository(@Cause Throwable cause);
/**
* A message indicating a failure to get the server status.
*
* @return the message.
*/
@Message(id = 58, value = "Failed to get server status")
String failedToGetServerStatus();
/**
* A message indicating a failure to read the authentication key.
*
* @param cause the cause of the error.
*
* @return the message.
*/
@Message(id = 59, value = "Failed to read authentication key: %s")
String failedToReadAuthenticationKey(Throwable cause);
/**
* Creates an exception indicating there is already a connection for the host.
*
* @param hostName the name of the host.
*
* @return an {@link IllegalArgumentException} for the error.
*/
@Message(id = 60, value = "Already have a connection for host %s")
IllegalArgumentException hostNameAlreadyConnected(String hostName);
/**
* Creates an exception indicating the information provided could be not used to generate a hash.
*
* @return an {@link SaslException} for the error.
*/
@Message(id = 61, value = "Insufficient information to generate hash.")
SaslException insufficientInformationToGenerateHash();
/**
* A message indicating the option is invalid.
*
*
* @param option the invalid option.
* @param usageNote the output of method {@link #usageNote(String)}
*
* @return the message.
*/
@Message(id = 62, value = "Invalid option '%s'. %s")
String invalidOption(String option, String usageNote);
/**
* Creates an exception indicating an invalid root id.
*
* @param rootId the invalid root id.
*
* @return a {@link RequestProcessingException} for the error.
*/
@Message(id = 63, value = "Invalid root id [%d]")
RequestProcessingException invalidRootId(int rootId);
/**
* A message indicating the value is invalid.
*
*
* @param name the name of the option.
* @param type the type for the value.
* @param value the value.
* @param usageNote the output of method {@link #usageNote(String)}
* @return the message.
*/
@Message(id = 64, value = "Value for %s is not an %s -- %s. %s")
String invalidValue(String name, String type, Object value, String usageNote);
/**
* Creates an exception indicating invocations of the operation, represented by the {@code name} parameter, after
* HostController boot are not allowed.
*
* @param name the name of the operation.
*
* @return an {@link IllegalStateException} for the error.
*/
@Message(id = 65, value = "Invocations of %s after HostController boot are not allowed")
IllegalStateException invocationNotAllowedAfterBoot(String name);
/**
* Creates an exception indicating invocations of the operation after HostController boot are not allowed.
*
* @param operation the operation.
*
* @return an {@link IllegalStateException} for the error.
*/
String invocationNotAllowedAfterBoot(ModelNode operation);
/**
* A message indicating the provided for the option is malformed.
*
*
* @param option the option.
* @param usageNote the output of method {@link #usageNote(String)}
* @return the message.
*/
@Message(id = 66, value = "Malformed URL provided for option %s. %s")
String malformedUrl(String option, String usageNote);
/**
* Creates an exception indicating the need to call the method, represented by the {@code methodName} parameter,
* before checking the slave status.
*
* @param methodName the name of the method to invoke.
*
* @return an {@link IllegalStateException} for the error.
*/
@Message(id = 67, value = "Must call %s before checking for slave status")
IllegalStateException mustInvokeBeforeCheckingSlaveStatus(String methodName);
/**
* Creates an exception indicating the need to call the method, represented by the {@code methodName} parameter,
* before persisting the domain model.
*
* @param methodName the name of the method to invoke.
*
* @return an {@link IllegalStateException} for the error.
*/
@Message(id = 68, value = "Must call %s before persisting the domain model")
IllegalStateException mustInvokeBeforePersisting(String methodName);
/**
* Creates an exception indicating there is no channel for the host.
*
* @param hostName the name of the host.
*
* @return an {@link IllegalArgumentException} for the error.
*/
@Message(id = 69, value = "No channel for host %s")
IllegalArgumentException noChannelForHost(String hostName);
/**
* Creates an exception indicating a host connecting to a remove domain controller must have its name attribute
* set.
*
* @return an {@link IllegalArgumentException} for the error.
*/
@Message(id = 70, value = "A host connecting to a remote domain controller must have its name attribute set")
IllegalArgumentException noNameAttributeOnHost();
/**
* Creates an exception indicating there is no server inventory.
*
* @return an {@link IllegalStateException} for the error.
*/
@Message(id = 71, value = "No server inventory")
IllegalStateException noServerInventory();
/**
* Creates an exception indicating the property already exists.
*
* @param name the name of the property.
*
* @return an {@link IllegalArgumentException} for the error.
*/
@Message(id = 72, value = "Property %s already exists")
IllegalArgumentException propertyAlreadyExists(String name);
/**
* Creates an exception indicating the property does not exist.
*
* @param name the name of the property.
*
* @return an {@link IllegalArgumentException} for the error.
*/
@Message(id = 73, value = "Property %s does not exist")
IllegalArgumentException propertyNotFound(String name);
/**
* Creates an exception indicating the value for the property is {@code null}.
*
* @param name the name of the property.
*
* @return an {@link IllegalArgumentException} for the error.
*/
@Message(id = 74, value = "Value for property %s is null")
IllegalArgumentException propertyValueNull(String name);
/**
* Creates an exception indicating the property has a {@code null} value.
*
* @param name the name of the property.
*
* @return an {@link IllegalStateException} for the error.
*/
@Message(id = 75, value = "Property %s has a null value")
IllegalStateException propertyValueHasNullValue(String name);
/**
* Creates an exception indicating the variable name is {@code null}.
*
* @param name the name of the variable.
*
* @return an {@link IllegalArgumentException} for the error.
*/
@Message(id = 76, value = "%s is null")
IllegalArgumentException nullVar(String name);
/**
* Creates an exception indicating there is already a registered server with the name represented by the {@code
* serverName} parameter.
*
* @param serverName the name of the server.
*
* @return an {@link IllegalArgumentException} for the error.
*/
@Message(id = 77, value = "There is already a registered server named '%s'")
IllegalArgumentException serverNameAlreadyRegistered(String serverName);
/**
* A message indicating the server, represented by the {@code name} parameter, is still running.
*
* @param name the name of the server.
*
* @return the message.
*/
@Message(id = 78, value = "Server (%s) still running")
String serverStillRunning(String name);
/**
* Creates an exception indicating the inability to generate the hash.
*
* @param cause the cause of the error.
*
* @return an {@link SaslException} for the error.
*/
@Message(id = 79, value = "Unable to generate hash")
SaslException unableToGenerateHash(@Cause Throwable cause);
/**
* A message indicating the inability to load properties from the URL.
*
*
* @param url the URL.
* @param usageNote the output of method {@link #usageNote(String)}
* @return the message.
*/
@Message(id = 80, value = "Unable to load properties from URL %s. %s")
String unableToLoadProperties(URL url, String usageNote);
/**
* Creates an exception indicating the socket binding group for the server is undefined.
*
* @param serverName the name of the server.
*
* @return an {@link IllegalArgumentException} for the exception.
*/
@Message(id = 81, value = "Undefined socket binding group for server %s")
IllegalArgumentException undefinedSocketBinding(String serverName);
/**
* Creates an exception indicating the socket binding group is undefined.
*
* @param name the name of the group.
*
* @return an {@link IllegalStateException} for the exception.
*/
@Message(id = 82, value = "Included socket binding group %s is not defined")
IllegalStateException undefinedSocketBindingGroup(String name);
/**
* Creates an exception indicating the service state was unexpected.
*
* @param state the unexpected state.
*
* @return an {@link IllegalStateException} for the error.
*/
@Message(id = 83, value = "Unexpected state %s")
IllegalStateException unexpectedState(ServerState state);
/**
* Creates an exception indicating the {@code value} for the {@code name} is unknown.
*
* @param name the name.
* @param value the value.
*
* @return an {@link IllegalArgumentException} for the error.
*/
@Message(id = 84, value = "Unknown %s %s")
IllegalArgumentException unknown(String name, Object value);
/**
* A message indicating the value is not a known host.
*
*
* @param name the name of the option.
* @param value the value.
* @param usageNote the output of method {@link #usageNote(String)}
* @return the message.
*/
@Message(id = 85, value = "Value for %s is not a known host -- %s. %s")
String unknownHostValue(String name, Object value, String usageNote);
/**
* Creates an exception indicating the type is unrecognized.
*
* @param type the unrecognized type.
*
* @return an {@link IOException} for the error.
*/
@Message(id = 86, value = "unrecognized type %s")
IOException unrecognizedType(byte type);
/**
* Creates an exception indication that the host controller was already shutdown.
* @return an {@link Exception} for the error
*/
@Message(id = 87, value = "Host-Controller is already shutdown.")
IllegalStateException hostAlreadyShutdown();
/**
* Creates an exception indicating no server group could be found with the given name
*
* @param groupName the group name
*
* @return an {@link OperationFailedException} for the error.
*/
@Message(id = 88, value = "No server-group called: %s")
OperationFailedException noServerGroupCalled(String groupName);
/**
* Creates an exception indicating no server group could be found with the given name
*
* @param groupName the socket binding group name
*
* @return an {@link OperationFailedException} for the error.
*/
@Message(id = 89, value = "No socket-binding-group called: %s")
OperationFailedException noSocketBindingGroupCalled(String groupName);
@Message(id = 90, value = "HostControllerEnvironment does not support system property updates")
UnsupportedOperationException hostControllerSystemPropertyUpdateNotSupported();
@Message(id = 91, value = "Resources of type %s cannot be ignored")
OperationFailedException cannotIgnoreTypeHost(String type);
@Message(id = 92, value = "An '%s' element whose 'type' attribute is '%s' has already been found")
XMLStreamException duplicateIgnoredResourceType(String element, String value, @Param Location location);
@Message(id = 93, value = "The JVM input arguments cannot be accessed so system properties passed directly to this Host Controller JVM will not be passed through to server processes. Cause of the problem: %s")
String cannotAccessJvmInputArgument(Exception cause);
@Message(id = 94, value = "Missing configuration value for: %s")
IllegalStateException missingHomeDirConfiguration(String propertyName);
@Message(id = 95, value = "Home directory does not exist: %s")
IllegalStateException homeDirectoryDoesNotExist(File f);
@Message(id = 96, value = "Determined modules directory does not exist: %s")
IllegalStateException modulesDirectoryDoesNotExist(File f);
@Message(id = 97, value = "Domain base directory does not exist: %s")
IllegalStateException domainBaseDirectoryDoesNotExist(File f);
@Message(id = 98, value = "Domain base directory is not a directory: %s")
IllegalStateException domainBaseDirectoryIsNotADirectory(File file);
@Message(id = 99, value = "Configuration directory does not exist: %s")
IllegalStateException configDirectoryDoesNotExist(File f);
@Message(id = 100, value = "Domain data directory is not a directory: %s")
IllegalStateException domainDataDirectoryIsNotDirectory(File file);
@Message(id = 101, value = "Could not create domain data directory: %s")
IllegalStateException couldNotCreateDomainDataDirectory(File file);
@Message(id = 102, value = "Domain content directory is not a directory: %s")
IllegalStateException domainContentDirectoryIsNotDirectory(File file);
@Message(id = 103, value = "Could not create domain content directory: %s")
IllegalStateException couldNotCreateDomainContentDirectory(File file);
@Message(id = 104, value = "Log directory is not a directory: %s")
IllegalStateException logDirectoryIsNotADirectory(File f);
@Message(id = 105, value = "Could not create log directory: %s")
IllegalStateException couldNotCreateLogDirectory(File f);
@Message(id = 106, value = "Servers directory is not a directory: %s")
IllegalStateException serversDirectoryIsNotADirectory(File f);
@Message(id = 107, value = "Could not create servers directory: %s")
IllegalStateException couldNotCreateServersDirectory(File f);
@Message(id = 108, value = "Domain temp directory does not exist: %s")
IllegalStateException domainTempDirectoryIsNotADirectory(File file);
@Message(id = 109, value = "Could not create domain temp directory: %s")
IllegalStateException couldNotCreateDomainTempDirectory(File file);
/**
* Creates an exception indicating an inability to connect due to a SSL failure.
*
* @param cause the cause of the error.
*
* @return an {@link IllegalStateException} for the error.
*/
@Message(id = 110, value = "Unable to connect due to SSL failure.")
IllegalStateException sslFailureUnableToConnect(@Cause Throwable cause);
@Message(id = 111, value = "Option '%s' already exists")
IllegalStateException jvmOptionAlreadyExists(String option);
@Message(id = 112, value = "Environment variable '%s' already exists")
IllegalStateException envVariableAlreadyExists(String var);
@Message(id = 113, value="Host controller management version %s.%s is too old, Only %s.%s or higher are supported")
OperationFailedException unsupportedManagementVersionForHost(int major, int minor, int minMajor, int minMinor);
@Message(id = 114, value="Failed to add extensions used by the domain. Failure description: %s")
IllegalStateException failedToAddExtensions(ModelNode failureDescription);
/**
* Messaging indicating a command line argument that was supposed to be parseable into a key
* and value included no value
* @param argument the argument provided by the user
* @param usageNote the output of method {@link #usageNote(String)}
* @return the message
*/