org.apache.hadoop.yarn.server.timeline
Class EntityIdentifier
java.lang.Object
org.apache.hadoop.yarn.server.timeline.EntityIdentifier
- All Implemented Interfaces:
- Comparable<EntityIdentifier>
@InterfaceAudience.Private
@InterfaceStability.Unstable
public class EntityIdentifier
- extends Object
- implements Comparable<EntityIdentifier>
The unique identifier for an entity
EntityIdentifier
public EntityIdentifier(String id,
String type)
getId
public String getId()
- Get the entity Id.
- Returns:
- The entity Id.
getType
public String getType()
- Get the entity type.
- Returns:
- The entity type.
compareTo
public int compareTo(EntityIdentifier other)
- Specified by:
compareTo in interface Comparable<EntityIdentifier>
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals in class Object
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2014 Apache Software Foundation. All Rights Reserved.