class LeaseRequestState extends Object
| Constructor and Description |
|---|
LeaseRequestState(Job onGranted,
Job onFailed,
long currentEarliestLeastDate,
long expiration,
LeaseSet requested)Create a new LeaseRequestState. |
| Modifier and Type | Method and Description |
|---|---|
long | getCurrentEarliestLeaseDate()The earliest lease expiration time in the current LS (NOT the requested one),
or 0 if none. |
long | getExpiration()Get the expiration time. |
boolean | getIsSuccessful()Whether the request was successful in the time allotted. |
Job | getOnFailed()Get the on-failed job. |
Job | getOnGranted()Get the on-granted job. |
LeaseSet | getRequested()Get the requested lease set. |
void | setIsSuccessful(boolean is)Set whether the request was successful. |
String | toString() |
public LeaseRequestState(Job onGranted, Job onFailed, long currentEarliestLeastDate, long expiration, LeaseSet requested)
onGranted - job to run on successonFailed - job to run on failurecurrentEarliestLeastDate - absolute time, the earliest expiration in
the current LS (NOT the requested one), or 0 if noneexpiration - absolute time, when the request expires (not when the LS expires)requested - LeaseSet with requested leases - this object must be updated to contain the
signed version (as well as any changed/added/removed Leases)
The LeaseSet contains Leases and destination only, it is unsigned.public long getCurrentEarliestLeaseDate()
public long getExpiration()
public boolean getIsSuccessful()
public Job getOnFailed()
public Job getOnGranted()
public LeaseSet getRequested()
public void setIsSuccessful(boolean is)
is - true if successful