public class UptimeStatus extends Document
Constructor and Description |
---|
UptimeStatus() |
Modifier and Type | Method and Description |
---|---|
void |
addToHistory(boolean relay,
long startMillis,
java.util.SortedSet<java.lang.String> flags)
Adds all given uptime history objects that don't overlap with
existing uptime history objects.
|
void |
clearDirty() |
void |
compressHistory()
Compresses the history of uptime objects by merging adjacent
intervals.
|
java.util.SortedSet<UptimeHistory> |
getBridgeHistory() |
java.util.SortedSet<UptimeHistory> |
getRelayHistory() |
boolean |
isDirty() |
void |
setFromDocumentString(java.lang.String documentString) |
java.lang.String |
toDocumentString() |
getDocumentString, setDocumentString
public boolean isDirty()
public void clearDirty()
public java.util.SortedSet<UptimeHistory> getRelayHistory()
public java.util.SortedSet<UptimeHistory> getBridgeHistory()
public void setFromDocumentString(java.lang.String documentString)
setFromDocumentString
in class Document
public void addToHistory(boolean relay, long startMillis, java.util.SortedSet<java.lang.String> flags)
public void compressHistory()
public java.lang.String toDocumentString()
toDocumentString
in class Document