org.springframework.yarn.event
Class LoggingListener
java.lang.Object
org.springframework.yarn.event.LoggingListener
- All Implemented Interfaces:
- EventListener, ApplicationListener<AbstractYarnEvent>
public class LoggingListener
- extends Object
- implements ApplicationListener<AbstractYarnEvent>
Simple ApplicationListener which logs all events
based on AbstractYarnEvent using a log level
set during the construction.
- Author:
- Janne Valkealahti
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LoggingListener
public LoggingListener()
- Constructs Logger listener with debug level.
LoggingListener
public LoggingListener(String level)
- Constructs Logger listener with given level.
- Parameters:
level - the level string
onApplicationEvent
public void onApplicationEvent(AbstractYarnEvent event)
- Specified by:
onApplicationEvent in interface ApplicationListener<AbstractYarnEvent>