org.apache.hadoop.yarn.event
Class AbstractEvent<TYPE extends Enum<TYPE>>

java.lang.Object
  extended by org.apache.hadoop.yarn.event.AbstractEvent<TYPE>
All Implemented Interfaces:
Event<TYPE>

@InterfaceAudience.Public
@InterfaceStability.Evolving
public abstract class AbstractEvent<TYPE extends Enum<TYPE>>
extends Object
implements Event<TYPE>

Parent class of all the events. All events extend this class.


Constructor Summary
AbstractEvent(TYPE type)
           
AbstractEvent(TYPE type, long timestamp)
           
 
Method Summary
 long getTimestamp()
           
 TYPE getType()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractEvent

public AbstractEvent(TYPE type)

AbstractEvent

public AbstractEvent(TYPE type,
                     long timestamp)
Method Detail

getTimestamp

public long getTimestamp()
Specified by:
getTimestamp in interface Event<TYPE extends Enum<TYPE>>

getType

public TYPE getType()
Specified by:
getType in interface Event<TYPE extends Enum<TYPE>>

toString

public String toString()
Specified by:
toString in interface Event<TYPE extends Enum<TYPE>>
Overrides:
toString in class Object


Copyright © 2013 Apache Software Foundation. All Rights Reserved.