|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.yarn.api.records.ReservationId
@InterfaceAudience.Public @InterfaceStability.Unstable public abstract class ReservationId
ReservationId
represents the globally unique identifier for
a reservation.
The globally unique nature of the identifier is achieved by using the
cluster timestamp i.e. start-time of the ResourceManager
along with a monotonically increasing counter for the reservation.
Field Summary | |
---|---|
protected long |
clusterTimestamp
|
protected long |
id
|
Constructor Summary | |
---|---|
ReservationId()
|
Method Summary | |
---|---|
protected abstract void |
build()
|
int |
compareTo(ReservationId other)
|
boolean |
equals(Object obj)
|
abstract long |
getClusterTimestamp()
Get the start time of the ResourceManager which is used to
generate globally unique ReservationId . |
abstract long |
getId()
Get the long identifier of the ReservationId which is unique for
all Reservations started by a particular instance of the
ResourceManager . |
int |
hashCode()
|
static ReservationId |
parseReservationId(String reservationId)
Parse the string argument as a ReservationId |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected long clusterTimestamp
protected long id
Constructor Detail |
---|
public ReservationId()
Method Detail |
---|
@InterfaceAudience.Public @InterfaceStability.Unstable public abstract long getId()
ReservationId
which is unique for
all Reservations started by a particular instance of the
ResourceManager
.
ReservationId
@InterfaceAudience.Public @InterfaceStability.Unstable public abstract long getClusterTimestamp()
ResourceManager
which is used to
generate globally unique ReservationId
.
ResourceManager
protected abstract void build()
public int compareTo(ReservationId other)
compareTo
in interface Comparable<ReservationId>
public String toString()
toString
in class Object
@InterfaceAudience.Public @InterfaceStability.Unstable public static ReservationId parseReservationId(String reservationId) throws IOException
ReservationId
reservationId
- the string representation of the ReservationId
ReservationId
corresponding to the input string if
valid, null if input is null
IOException
- if unable to parse the input stringpublic int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |