Package com.isode.dsapi.config
Class MESH.AgreementInfo
java.lang.Object
com.isode.dsapi.config.MESH.AgreementInfo
- Enclosing class:
- MESH
Object representing per-group state.
-
Method Summary
Modifier and TypeMethodDescriptionGet the agreement ID.Get the string representation of the agreement ID (integer) value.Get the DN of the replicated GDAM.Get the last reported update time.Get the ServerInfo associated with this agreement.getState()
Get the AgreementState.Get a user friendly string representing the agreement state.Get the set of servers (by integer ID) that this agreement is synchronized with.boolean
Whether server is offline.void
loadState
(MESHAgreementReport report) Load information from the given MESHAgreementReport object.
-
Method Details
-
loadState
Load information from the given MESHAgreementReport object.- Parameters:
report
- Report object to load information from.
-
isOffline
public boolean isOffline()Whether server is offline.- Returns:
- true if online, false otherwise.
-
getState
Get the AgreementState.- Returns:
- AgreementState value.
-
getStateString
Get a user friendly string representing the agreement state.- Returns:
- Informational string, never null.
-
getLastUpdateTime
Get the last reported update time.- Returns:
- Update time, may return null.
-
getSyncedWith
Get the set of servers (by integer ID) that this agreement is synchronized with.- Returns:
- Set of Integers, null if offline or not in sync.
-
getOwningServerInfo
Get the ServerInfo associated with this agreement.- Returns:
- ServerInfo object, never null.
-
getAgreementID
Get the agreement ID.- Returns:
- Integer value, never null.
-
getAgreementIDString
Get the string representation of the agreement ID (integer) value.- Returns:
- String value, never null.
-
getGDAMDN
Get the DN of the replicated GDAM.- Returns:
- DN value, never null.
-