Class MESHServerReport

java.lang.Object
com.isode.dsapi.config.ManagedObject
com.isode.dsapi.config.MESHServerReport

public class MESHServerReport extends ManagedObject
MESHServerReport encapsulates the reported state of a MESH server (as reported a particular multimaster server). This maps to a single virtual entry, named by the DSA DN. Such entries area always subordinate to 'cn=mesh,cn=config'.
Since:
16.3
Author:
dsm
  • Constructor Details

  • Method Details

    • load

      public void load(Entry entry) throws ConfigOpFailedException
      Description copied from class: ManagedObject
      Load values from an entry. No directory operation should be done in this method.

      Mandatory variables are assigned only after everything is ok. This is done so during re-loading, if there are exceptions and even then the object is used, there is no crash by using mandatory variables that are assumed to have non-null values.

      Specified by:
      load in class ManagedObject
      Parameters:
      entry - Entry representing the object, could be null if the existing entry has to be reloaded
      Throws:
      ConfigOpFailedException - if mandatory attributes are not loaded
    • getID

      public Integer getID()
      Get the server ID.
      Returns:
      ID of the represented server, never null.
    • getDN

      public DN getDN()
      Get the server DN.
      Overrides:
      getDN in class ManagedObject
      Returns:
      DN of the represented server, never null.
    • getState

      public Integer getState()
      Get the server state as a string. FIXME: replace pure integer representation with an enum.
      Returns:
      The server state, never null.