org.apache.oozie.action.hadoop
Class ActionStats

java.lang.Object
  extended by org.apache.oozie.action.hadoop.ActionStats
Direct Known Subclasses:
MRStats, OoziePigStats

public abstract class ActionStats
extends Object

Abstract class that represents the statistics for any type of Oozie action.


Field Summary
protected  ActionType currentActionType
           
 
Constructor Summary
ActionStats()
           
 
Method Summary
 ActionType getCurrentActionType()
           
abstract  String toJSON()
          Return the statistics in JSON format.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

currentActionType

protected ActionType currentActionType
Constructor Detail

ActionStats

public ActionStats()
Method Detail

toJSON

public abstract String toJSON()
Return the statistics in JSON format. Sub-classes must override this method to provide statistics for their particular action type.

Returns:
a JSON string with the statistics information.

getCurrentActionType

public ActionType getCurrentActionType()


Copyright © 2013 Apache Software Foundation. All Rights Reserved.