public abstract class SplunkDataWriter extends Object implements DataWriter
| Modifier and Type | Field and Description |
|---|---|
protected com.splunk.Args |
args |
protected SplunkEndpoint |
endpoint |
| Constructor and Description |
|---|
SplunkDataWriter(SplunkEndpoint endpoint,
com.splunk.Args args) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract Socket |
createSocket(com.splunk.Service service) |
protected void |
doWrite(String event) |
boolean |
isConnected() |
void |
start() |
void |
stop() |
void |
write(SplunkEvent event) |
void |
write(String event) |
protected SplunkEndpoint endpoint
protected com.splunk.Args args
public SplunkDataWriter(SplunkEndpoint endpoint, com.splunk.Args args)
protected abstract Socket createSocket(com.splunk.Service service) throws IOException
IOExceptionpublic void write(SplunkEvent event) throws Exception
write in interface DataWriterExceptionpublic void write(String event) throws Exception
write in interface DataWriterExceptionprotected void doWrite(String event) throws IOException
IOExceptionpublic void start()
start in interface DataWriterpublic void stop()
stop in interface DataWriterpublic boolean isConnected()
isConnected in interface DataWriterApache Camel