Package org.apache.storm.metric
Class FileBasedEventLogger
java.lang.Object
org.apache.storm.metric.FileBasedEventLogger
- All Implemented Interfaces:
IEventLogger
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.storm.metric.IEventLogger
IEventLogger.EventInfo
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
void
close()
void
log
(IEventLogger.EventInfo event) This method would be invoked when theEventLoggerBolt
receives a tuple from the spouts or bolts that has event logging enabled.void
-
Constructor Details
-
FileBasedEventLogger
public FileBasedEventLogger()
-
-
Method Details
-
prepare
- Specified by:
prepare
in interfaceIEventLogger
-
log
Description copied from interface:IEventLogger
This method would be invoked when theEventLoggerBolt
receives a tuple from the spouts or bolts that has event logging enabled.- Specified by:
log
in interfaceIEventLogger
- Parameters:
event
- the event
-
buildLogMessage
-
close
public void close()- Specified by:
close
in interfaceIEventLogger
-