|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.hd.d.pg2k.svrCore.GenUtils.RemoteFlagInfo
private static final class GenUtils.RemoteFlagInfo
Immutable information about each remote URI flag.
| Field Summary | |
|---|---|
(package private) long |
checkStarted
Time we started (re)checking the status of this flag, or zero if no check is underway. |
(package private) java.lang.Boolean |
flagIsPresent
Status of the remote flag; null if not known. |
(package private) java.net.URI |
flagURI
Flag URI; not null. |
(package private) long |
lastPollCompleted
Time of the last completed poll, or zero if none. |
(package private) long |
lastStateChange
Time of last state change, or zero if none. |
| Constructor Summary | |
|---|---|
(package private) |
GenUtils.RemoteFlagInfo(java.net.URI flagURI)
Construct an (initial) instance with unknown status and no check underway. |
private |
GenUtils.RemoteFlagInfo(java.net.URI flagURI,
java.lang.Boolean flagIsPresent,
long lastPollCompleted,
long checkStarted,
long lastStateChange)
Create a new instance from scratch. |
| Method Summary | |
|---|---|
GenUtils.RemoteFlagInfo |
checkComplete(java.lang.Boolean remoteFlagIsNowPresent)
Mark remote flag check complete with the given status. |
boolean |
checkIsNeeded()
Returns true if a new check should be started. |
boolean |
checkIsRunning()
Returns true iff a check is currently being run. |
boolean |
isStale()
Returns true if the last check was so long ago that any data held is probably stale. |
(package private) GenUtils.RemoteFlagInfo |
startCheckNow()
Note the start of a status check (called just before starting a check). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
final java.net.URI flagURI
final java.lang.Boolean flagIsPresent
FALSE indicates that the remote flag is definitely absent and thus we need not be in low-power mode (if no other flags are present).
A null value indicates that the remote value is unknown.
final long lastPollCompleted
final long checkStarted
final long lastStateChange
| Constructor Detail |
|---|
private GenUtils.RemoteFlagInfo(java.net.URI flagURI,
java.lang.Boolean flagIsPresent,
long lastPollCompleted,
long checkStarted,
long lastStateChange)
GenUtils.RemoteFlagInfo(java.net.URI flagURI)
| Method Detail |
|---|
public boolean checkIsRunning()
public boolean checkIsNeeded()
public boolean isStale()
GenUtils.RemoteFlagInfo startCheckNow()
public GenUtils.RemoteFlagInfo checkComplete(java.lang.Boolean remoteFlagIsNowPresent)
If the status has changed, this is noted.
|
DHD Multimedia Gallery V1.57.21 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||