Class SplunkDataWriter
- java.lang.Object
-
- org.apache.camel.component.splunk.support.SplunkDataWriter
-
- All Implemented Interfaces:
DataWriter
- Direct Known Subclasses:
StreamDataWriter,SubmitDataWriter,TcpDataWriter
public abstract class SplunkDataWriter extends Object implements DataWriter
-
-
Field Summary
Fields Modifier and Type Field Description protected com.splunk.Argsargsprotected SplunkEndpointendpoint
-
Constructor Summary
Constructors Constructor Description SplunkDataWriter(SplunkEndpoint endpoint, com.splunk.Args args)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract SocketcreateSocket(com.splunk.Service service)protected voiddoWrite(String event)booleanisConnected()voidstart()voidstop()voidwrite(String event)voidwrite(SplunkEvent event)
-
-
-
Field Detail
-
endpoint
protected SplunkEndpoint endpoint
-
args
protected com.splunk.Args args
-
-
Constructor Detail
-
SplunkDataWriter
public SplunkDataWriter(SplunkEndpoint endpoint, com.splunk.Args args)
-
-
Method Detail
-
createSocket
protected abstract Socket createSocket(com.splunk.Service service) throws IOException
- Throws:
IOException
-
write
public void write(SplunkEvent event) throws Exception
- Specified by:
writein interfaceDataWriter- Throws:
Exception
-
write
public void write(String event) throws Exception
- Specified by:
writein interfaceDataWriter- Throws:
Exception
-
doWrite
protected void doWrite(String event) throws IOException
- Throws:
IOException
-
start
public void start()
- Specified by:
startin interfaceDataWriter
-
stop
public void stop()
- Specified by:
stopin interfaceDataWriter
-
isConnected
public boolean isConnected()
- Specified by:
isConnectedin interfaceDataWriter
-
-