Package com.isode.dsapi.config
Class MESH.Group
java.lang.Object
com.isode.dsapi.config.MESH.Group
- Enclosing class:
- MESH
Set of distinct MESH groups (where a group is all of the servers in
a particular MESH configuration).
-
Constructor Summary
ConstructorsConstructorDescriptionGroup(MESHManager mesh) Create MESH group report object based on the given initial MESH configuration. -
Method Summary
Modifier and TypeMethodDescriptionGet the current state for this MESH group.voidserverOnline(MESHManager mesh) Called to update reports after has come back online.booleanserverRemoved(MESHManager mesh) Called to update reports after a server has been removed.
-
Constructor Details
-
Group
Create MESH group report object based on the given initial MESH configuration.- Parameters:
mesh- MESHManager object representing latest configuration. Must not be null.
-
-
Method Details
-
serverOnline
Called to update reports after has come back online.- Parameters:
mesh- Configuration object loaded from server.
-
serverRemoved
Called to update reports after a server has been removed.- Parameters:
mesh- Configuration object loaded from server.- Returns:
- true if the Group is now empty, false otherwise.
-
getCurrentState
Get the current state for this MESH group.- Returns:
- GroupState object. Never null.
-