Package org.graylog2.outputs
Class GelfOutput
java.lang.Object
org.graylog2.outputs.GelfOutput
- All Implemented Interfaces:
MessageOutput
,Stoppable
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
static interface
Nested classes/interfaces inherited from interface org.graylog2.plugin.outputs.MessageOutput
MessageOutput.Factory2<T>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected static org.graylog2.gelfclient.transport.GelfTransport
buildTransport
(Configuration configuration) boolean
void
stop()
protected org.graylog2.gelfclient.GelfMessage
toGELFMessage
(Message message) void
void
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.graylog2.plugin.outputs.MessageOutput
initialize
-
Constructor Details
-
GelfOutput
-
-
Method Details
-
stop
public void stop() -
isRunning
public boolean isRunning()- Specified by:
isRunning
in interfaceMessageOutput
-
buildTransport
protected static org.graylog2.gelfclient.transport.GelfTransport buildTransport(Configuration configuration) throws MessageOutputConfigurationException -
write
- Specified by:
write
in interfaceMessageOutput
- Throws:
Exception
-
write
- Specified by:
write
in interfaceMessageOutput
- Throws:
Exception
-
toGELFMessage
-