File tree 3 files changed +21
-0
lines changed
src/main/java/com/cloudbees/syslog/sender 3 files changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -133,6 +133,23 @@ public void setMessageFormat(MessageFormat messageFormat) {
133
133
public void setDefaultSeverity (Severity defaultSeverity ) {
134
134
this .defaultSeverity = defaultSeverity ;
135
135
}
136
+
137
+ /**
138
+ * Set the hostname or IP of the syslog server to which messages will be
139
+ * sent.
140
+ *
141
+ * @param syslogServerHostname
142
+ * The hostname or IP address of the syslog server.
143
+ */
144
+ public abstract void setSyslogServerHostname (final String syslogServerHostname );
145
+
146
+ /**
147
+ * Set the port number of the syslog server to which messages will be sent.
148
+ *
149
+ * @param syslogServerPort
150
+ * The port to which syslog messages will be sent.
151
+ */
152
+ public abstract void setSyslogServerPort (int syslogServerPort );
136
153
137
154
@ Override
138
155
public String toString () {
Original file line number Diff line number Diff line change @@ -186,6 +186,7 @@ private synchronized void ensureSyslogServerConnection() throws IOException {
186
186
}
187
187
}
188
188
189
+ @ Override
189
190
public void setSyslogServerHostname (final String syslogServerHostname ) {
190
191
this .syslogServerHostnameReference = new CachingReference <InetAddress >(DEFAULT_INET_ADDRESS_TTL_IN_NANOS ) {
191
192
@ Nullable
@@ -200,6 +201,7 @@ protected InetAddress newObject() {
200
201
};
201
202
}
202
203
204
+ @ Override
203
205
public void setSyslogServerPort (int syslogServerPort ) {
204
206
this .syslogServerPort = syslogServerPort ;
205
207
}
Original file line number Diff line number Diff line change @@ -102,6 +102,7 @@ public void sendMessage(SyslogMessage message) throws IOException {
102
102
}
103
103
104
104
105
+ @ Override
105
106
public void setSyslogServerHostname (final String syslogServerHostname ) {
106
107
this .syslogServerHostnameReference = new CachingReference <InetAddress >(DEFAULT_INET_ADDRESS_TTL_IN_NANOS ) {
107
108
@ Nullable
@@ -116,6 +117,7 @@ protected InetAddress newObject() {
116
117
};
117
118
}
118
119
120
+ @ Override
119
121
public void setSyslogServerPort (int syslogServerPort ) {
120
122
this .syslogServerPort = syslogServerPort ;
121
123
}
You can’t perform that action at this time.
0 commit comments