Class NettyTLSSyslogSenderImpl
java.lang.Object
org.openehealth.ipf.commons.audit.protocol.RFC5424Protocol
org.openehealth.ipf.commons.audit.protocol.RFC5425Protocol
org.openehealth.ipf.commons.audit.protocol.NioTLSSyslogSenderImpl<io.netty.channel.ChannelFuture,NettyTLSSyslogSenderImpl.NettyDestination>
org.openehealth.ipf.commons.audit.protocol.NettyTLSSyslogSenderImpl
- All Implemented Interfaces:
AuditTransmissionProtocol
public class NettyTLSSyslogSenderImpl
extends NioTLSSyslogSenderImpl<io.netty.channel.ChannelFuture,NettyTLSSyslogSenderImpl.NettyDestination>
Simple Netty client implementation of RFC 5425 TLS syslog transport
for sending audit messages to an Audit Record Repository that implements TLS syslog.
Multiple messages may be sent over the same socket.
- Since:
- 3.7
- Author:
- Christian Ohr
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Destination abstraction for NettyNested classes/interfaces inherited from class org.openehealth.ipf.commons.audit.protocol.NioTLSSyslogSenderImpl
NioTLSSyslogSenderImpl.Destination<H>
-
Field Summary
Fields inherited from interface org.openehealth.ipf.commons.audit.protocol.AuditTransmissionProtocol
HTTPS_CIPHERSUITES, JAVAX_NET_DEBUG, JAVAX_NET_SSL_KEYSTORE, JAVAX_NET_SSL_KEYSTORE_PASSWORD, JAVAX_NET_SSL_KEYSTORE_TYPE, JAVAX_NET_SSL_TRUSTSTORE, JAVAX_NET_SSL_TRUSTSTORE_PASSWORD, JAVAX_NET_SSL_TRUSTSTORE_TYPE, JAVAX_TLS_CLIENT_CIPHERSUITES, JAVAX_TLS_SERVER_CIPHERSUITES, JDK_TLS_CLIENT_PROTOCOLS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionmakeDestination
(TlsParameters tlsParameters, String host, int port, boolean logging) void
setConnectTimeout
(int value, TimeUnit timeUnit) Sets the connect timeoutvoid
setSendTimeout
(int value, TimeUnit timeUnit) Sets the send timeoutvoid
setWorkerThreads
(int workerThreads) Set the number of working threads.Methods inherited from class org.openehealth.ipf.commons.audit.protocol.NioTLSSyslogSenderImpl
customizeDestination, send, setLoggingEnabled, shutdown
Methods inherited from class org.openehealth.ipf.commons.audit.protocol.RFC5425Protocol
getTransportPayload
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.openehealth.ipf.commons.audit.protocol.AuditTransmissionProtocol
send
-
Constructor Details
-
NettyTLSSyslogSenderImpl
-
-
Method Details
-
getTransportName
- Returns:
- name of the AuditTransmissionProtocol
-
makeDestination
protected NettyTLSSyslogSenderImpl.NettyDestination makeDestination(TlsParameters tlsParameters, String host, int port, boolean logging) - Specified by:
makeDestination
in classNioTLSSyslogSenderImpl<io.netty.channel.ChannelFuture,
NettyTLSSyslogSenderImpl.NettyDestination>
-
setConnectTimeout
Sets the connect timeout- Parameters:
value
- time valuetimeUnit
- time unit
-
setSendTimeout
Sets the send timeout- Parameters:
value
- time valuetimeUnit
- time unit
-
setWorkerThreads
public void setWorkerThreads(int workerThreads) Set the number of working threads. This corresponds with the number of connections being opened. Defaults to 1.- Parameters:
workerThreads
- number of worker threads.
-