org.apache.hadoop.yarn.server.resourcemanager.recovery.records
Class Epoch

java.lang.Object
  extended by org.apache.hadoop.yarn.server.resourcemanager.recovery.records.Epoch
Direct Known Subclasses:
EpochPBImpl

@InterfaceAudience.Private
@InterfaceStability.Unstable
public abstract class Epoch
extends Object

The epoch information of RM for work-preserving restart. Epoch is incremented each time RM restart. It's used for assuring uniqueness of ContainerId.


Constructor Summary
Epoch()
           
 
Method Summary
 boolean equals(Object obj)
           
abstract  long getEpoch()
           
abstract  YarnServerResourceManagerRecoveryProtos.EpochProto getProto()
           
 int hashCode()
           
static Epoch newInstance(long sequenceNumber)
           
abstract  void setEpoch(long sequenceNumber)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Epoch

public Epoch()
Method Detail

newInstance

public static Epoch newInstance(long sequenceNumber)

getEpoch

public abstract long getEpoch()

setEpoch

public abstract void setEpoch(long sequenceNumber)

getProto

public abstract YarnServerResourceManagerRecoveryProtos.EpochProto getProto()

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2014 Apache Software Foundation. All Rights Reserved.