public class FileBasedEventLogger extends Object implements IEventLogger
IEventLogger.EventInfo
Constructor and Description |
---|
FileBasedEventLogger() |
Modifier and Type | Method and Description |
---|---|
protected String |
buildLogMessage(IEventLogger.EventInfo event) |
void |
close() |
void |
log(IEventLogger.EventInfo event)
This method would be invoked when the
EventLoggerBolt receives a tuple from the spouts or bolts that has event logging enabled. |
void |
prepare(Map<String,Object> conf,
Map<String,Object> arguments,
TopologyContext context) |
public void prepare(Map<String,Object> conf, Map<String,Object> arguments, TopologyContext context)
prepare
in interface IEventLogger
public void log(IEventLogger.EventInfo event)
IEventLogger
This method would be invoked when the EventLoggerBolt
receives a tuple from the spouts or bolts that has event logging enabled.
log
in interface IEventLogger
event
- the eventprotected String buildLogMessage(IEventLogger.EventInfo event)
public void close()
close
in interface IEventLogger
Copyright © 2022 The Apache Software Foundation. All rights reserved.