Class MESH.AgreementInfo

java.lang.Object
com.isode.dsapi.config.MESH.AgreementInfo
Enclosing class:
MESH

public static class MESH.AgreementInfo extends Object
Object representing per-group state.
  • Method Details

    • loadState

      public void loadState(MESHAgreementReport report)
      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

      public MESH.AgreementState getState()
      Get the AgreementState.
      Returns:
      AgreementState value.
    • getStateString

      public String getStateString()
      Get a user friendly string representing the agreement state.
      Returns:
      Informational string, never null.
    • getLastUpdateTime

      public Date getLastUpdateTime()
      Get the last reported update time.
      Returns:
      Update time, may return null.
    • getSyncedWith

      public Set<Integer> 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

      public MESH.ServerInfo getOwningServerInfo()
      Get the ServerInfo associated with this agreement.
      Returns:
      ServerInfo object, never null.
    • getAgreementID

      public Integer getAgreementID()
      Get the agreement ID.
      Returns:
      Integer value, never null.
    • getAgreementIDString

      public String getAgreementIDString()
      Get the string representation of the agreement ID (integer) value.
      Returns:
      String value, never null.
    • getGDAMDN

      public DN getGDAMDN()
      Get the DN of the replicated GDAM.
      Returns:
      DN value, never null.