Class TcpDataWriter
- java.lang.Object
-
- org.apache.camel.component.splunk.support.SplunkDataWriter
-
- org.apache.camel.component.splunk.support.TcpDataWriter
-
- All Implemented Interfaces:
DataWriter
public class TcpDataWriter extends SplunkDataWriter
-
-
Field Summary
-
Fields inherited from class org.apache.camel.component.splunk.support.SplunkDataWriter
args, endpoint
-
-
Constructor Summary
Constructors Constructor Description TcpDataWriter(SplunkEndpoint endpoint, com.splunk.Args args)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected SocketcreateSocket(com.splunk.Service service)voidsetHost(String host)voidsetLocalPort(Optional<Integer> localPort)voidsetPort(int port)-
Methods inherited from class org.apache.camel.component.splunk.support.SplunkDataWriter
doWrite, isConnected, start, stop, write, write
-
-
-
-
Constructor Detail
-
TcpDataWriter
public TcpDataWriter(SplunkEndpoint endpoint, com.splunk.Args args)
-
-
Method Detail
-
setPort
public void setPort(int port)
-
setHost
public void setHost(String host)
-
createSocket
protected Socket createSocket(com.splunk.Service service) throws IOException
- Specified by:
createSocketin classSplunkDataWriter- Throws:
IOException
-
-