org.apache.hadoop.yarn.event
Class AbstractEvent<TYPE extends Enum<TYPE>>
java.lang.Object
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.
AbstractEvent
public AbstractEvent(TYPE type)
AbstractEvent
public AbstractEvent(TYPE type,
long timestamp)
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 © 2014 Apache Software Foundation. All Rights Reserved.