|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.yarn.server.resourcemanager.reservation.ReservationInterval
public class ReservationInterval
This represents the time duration of the reservation
| Constructor Summary | |
|---|---|
ReservationInterval(long startTime,
long endTime)
|
|
| Method Summary | |
|---|---|
int |
compareTo(ReservationInterval anotherInterval)
|
boolean |
equals(Object obj)
|
long |
getEndTime()
Get the end time of the reservation interval |
long |
getStartTime()
Get the start time of the reservation interval |
int |
hashCode()
|
boolean |
isOverlap(long tick)
Returns whether the interval is active at the specified instant of time |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ReservationInterval(long startTime,
long endTime)
| Method Detail |
|---|
public long getStartTime()
public long getEndTime()
public boolean isOverlap(long tick)
tick - the instance of the time to check
public int compareTo(ReservationInterval anotherInterval)
compareTo in interface Comparable<ReservationInterval>public int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||