class LeaseRequestState extends Object
Constructor and Description |
---|
LeaseRequestState(Job onGranted,
Job onFailed,
long expiration,
LeaseSet requested) |
Modifier and Type | Method and Description |
---|---|
long |
getExpiration()
when the request for the lease set expires
|
LeaseSet |
getGranted()
created lease set from client - FIXME always null
|
boolean |
getIsSuccessful()
whether the request was successful in the time allotted
|
Job |
getOnFailed()
what to do if the lease set create fails / times out
|
Job |
getOnGranted()
what to do once the lease set is created
|
LeaseSet |
getRequested()
lease set that is being requested
|
void |
setGranted(LeaseSet ls)
FIXME unused - why?
|
void |
setIsSuccessful(boolean is) |
String |
toString() |
public LeaseRequestState(Job onGranted, Job onFailed, long expiration, LeaseSet requested)
expiration
- 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 LeaseSet getGranted()
public void setGranted(LeaseSet ls)
public LeaseSet getRequested()
public Job getOnGranted()
public Job getOnFailed()
public long getExpiration()
public boolean getIsSuccessful()
public void setIsSuccessful(boolean is)