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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Stringvoidclose()voidlog(IEventLogger.EventInfo event) This method would be invoked when theEventLoggerBoltreceives a tuple from the spouts or bolts that has event logging enabled.void
-
Constructor Details
-
FileBasedEventLogger
public FileBasedEventLogger()
-
-
Method Details
-
prepare
- Specified by:
preparein interfaceIEventLogger
-
log
Description copied from interface:IEventLoggerThis method would be invoked when theEventLoggerBoltreceives a tuple from the spouts or bolts that has event logging enabled.- Specified by:
login interfaceIEventLogger- Parameters:
event- the event
-
buildLogMessage
-
close
public void close()- Specified by:
closein interfaceIEventLogger
-