-
Notifications
You must be signed in to change notification settings - Fork 460
/
RemotingLogger.java
132 lines (101 loc) · 5.58 KB
/
RemotingLogger.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
/*
* 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.remoting.logging;
import static org.jboss.logging.Logger.Level.INFO;
import java.io.IOException;
import java.net.BindException;
import java.net.URISyntaxException;
import javax.security.auth.callback.Callback;
import javax.security.auth.callback.UnsupportedCallbackException;
import org.jboss.as.controller.OperationFailedException;
import org.jboss.logging.BasicLogger;
import org.jboss.logging.Logger;
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.msc.service.StartException;
/**
* Date: 05.11.2011
*
* @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 = "WFLYRMT", length = 4)
public interface RemotingLogger extends BasicLogger {
/**
* A logger with a category of the package name.
*/
RemotingLogger ROOT_LOGGER = Logger.getMessageLogger(RemotingLogger.class, "org.jboss.as.remoting");
@LogMessage(level = INFO)
@Message(id = 1, value = "Listening on %s")
void listeningOnSocket(String address);
@Message(id = 2, value = "Could not start channel listener")
StartException couldNotStartChanelListener(@Cause Exception e);
// @Message(id = 3, value = "Shutting down")
// IllegalStateException channelShuttingDown();
@Message(id = 4, value = "%s")
StartException couldNotBindToSocket(String message, @Cause BindException e);
@Message(id = 5, value = "Failed to start service")
StartException couldNotStart(@Cause Exception e);
@Message(id = 6, value = "Endpoint is null")
IllegalStateException endpointEmpty();
@Message(id = 7, value = "Connection name cannot be null or empty")
IllegalStateException connectionNameEmpty();
@Message(id = 8, value = "Connection URI cannot be null for connection named: %s")
IllegalStateException connectionUriEmpty(String connectionName);
@Message(id = 9, value = "Outbound socket binding reference cannot be null or empty for connection named: %s")
IllegalStateException outboundSocketBindingEmpty(String connectionName);
@Message(id = 10, value = "Destination URI cannot be null while creating an outbound remote connection service")
IllegalStateException destinationUriEmpty();
@Message(id = 11, value = "A security realm has been specified but no supported mechanism identified")
IllegalStateException noSupportingMechanismsForRealm();
@Message(id = 12, value = "ANONYMOUS mechanism so not expecting a callback")
UnsupportedCallbackException anonymousMechanismNotExpected(@Param Callback current);
@Message(id = 13, value = "Unable to create tmp dir for auth tokens as file already exists.")
StartException unableToCreateTempDirForAuthTokensFileExists();
@Message(id = 14, value = "Unable to create auth dir %s.")
StartException unableToCreateAuthDir(String dir);
@Message(id = 15, value = "Could not connect")
RuntimeException couldNotConnect(@Cause URISyntaxException e);
@Message(id = 16, value = "Invalid QOP value: %s")
IllegalStateException invalidQOPV(String qop);
@Message(id = 17, value = "Invalid Strength value: %s")
IllegalStateException invalidStrength(String strengthValue);
@Message(id = 18, value = "Cannot create a valid URI from %s -- %s")
OperationFailedException couldNotCreateURI(String uri, String msg);
@Message(id = 19, value = "Unsupported Callback")
UnsupportedCallbackException unsupportedCallback(@Param Callback current);
@Message(id = 20, value = "Invalid Strength '%s' string given")
IllegalArgumentException illegalStrength(String strength);
@Message(id = 21, value = "HTTP Upgrade request missing Sec-JbossRemoting-Key header")
IOException upgradeRequestMissingKey();
@Message(id = 22, value = "Worker configuration is no longer used, please use endpoint worker configuration")
OperationFailedException workerConfigurationIgnored();
@Message(id = 23, value = "Only one of '%s' configuration or '%s' configuration is allowed")
String workerThreadsEndpointConfigurationChoiceRequired(String workerThreads, String endpoint);
@LogMessage(level = INFO)
@Message(id = 24, value = "The remoting subsystem is present but no io subsystem was found. An io subsystem " +
"was not required when remoting schema '%s' was current but now is, so a default subsystem is being added.")
void addingIOSubsystem(String legacyNS);
}