Package com.isode.dsapi.config
Class MESH
java.lang.Object
com.isode.dsapi.config.MESH
MESH keeps track of configuration information related to the
multimaster configuration.
This information may come from the DSAs themselves ("hard"). In future it may come from locally saved information ("soft") such as information read from preferences when the UI starts so that it can have some bootstrap knowledge.
Note that DSAs may report inconsistent information, e.g. if the configurations read from different DSAs are themselves inconsistent.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classObject representing per-group state.static enumstatic classSet of distinct MESH groups (where a group is all of the servers in a particular MESH configuration).static classObject representing per-group state.static classObject representing per-server state.static enumstatic classTop-level object returned to callers. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic MESH.StateGet the current state.static booleanisServerOnline(DN serverDN) Check if multimaster server is up (at last check).static voidserverOffline(DN server_dn) Notify of failure to scan a DSA.static voidserverOnline(MESHManager mesh) Add a MESH configuration (MESHManager) to the overview.static voidserverRemoved(Integer id, DN dn) Notify of server removal.
-
Constructor Details
-
MESH
public MESH()
-
-
Method Details
-
serverOnline
Add a MESH configuration (MESHManager) to the overview.- Parameters:
mesh- MESHManager object, must not be null and can replace one that has already been added.
-
serverOffline
Notify of failure to scan a DSA.- Parameters:
server_dn- DN of server that could not be scanned.
-
serverRemoved
Notify of server removal.- Parameters:
server_dn- DN of server that was removed.
-
isServerOnline
Check if multimaster server is up (at last check).- Parameters:
serverDN- DN of server to check. Must not be null.- Returns:
- true if the server was up at last check, false otherwise.
-
getCurrentState
Get the current state.- Returns:
- MESH.State object representing the current state. Never null.
-