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 class
Object representing per-group state.static enum
static class
Set of distinct MESH groups (where a group is all of the servers in a particular MESH configuration).static class
Object representing per-group state.static class
Object representing per-server state.static enum
static class
Top-level object returned to callers. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic MESH.State
Get the current state.static boolean
isServerOnline
(DN serverDN) Check if multimaster server is up (at last check).static void
serverOffline
(DN server_dn) Notify of failure to scan a DSA.static void
serverOnline
(MESHManager mesh) Add a MESH configuration (MESHManager) to the overview.static void
serverRemoved
(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.
-