Spring for Apache Hadoop

org.springframework.yarn.event
Class LoggingListener

java.lang.Object
  extended by org.springframework.yarn.event.LoggingListener
All Implemented Interfaces:
java.util.EventListener, org.springframework.context.ApplicationListener<AbstractYarnEvent>

public class LoggingListener
extends java.lang.Object
implements org.springframework.context.ApplicationListener<AbstractYarnEvent>

Simple ApplicationListener which logs all events based on AbstractYarnEvent using a log level set during the construction.

Author:
Janne Valkealahti

Constructor Summary
LoggingListener()
          Constructs Logger listener with debug level.
LoggingListener(java.lang.String level)
          Constructs Logger listener with given level.
 
Method Summary
 void onApplicationEvent(AbstractYarnEvent event)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoggingListener

public LoggingListener()
Constructs Logger listener with debug level.


LoggingListener

public LoggingListener(java.lang.String level)
Constructs Logger listener with given level.

Parameters:
level - the level string
Method Detail

onApplicationEvent

public void onApplicationEvent(AbstractYarnEvent event)
Specified by:
onApplicationEvent in interface org.springframework.context.ApplicationListener<AbstractYarnEvent>

Spring for Apache Hadoop