org.apache.hadoop.yarn.server.timeline
Class EntityIdentifier

java.lang.Object
  extended by 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


Constructor Summary
EntityIdentifier(String id, String type)
           
 
Method Summary
 int compareTo(EntityIdentifier other)
           
 boolean equals(Object obj)
           
 String getId()
          Get the entity Id.
 String getType()
          Get the entity type.
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EntityIdentifier

public EntityIdentifier(String id,
                        String type)
Method Detail

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.