Class FailoverAgreement

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

public class FailoverAgreement extends ManagedObject
Failover agreement object. It is intended that no attributes of this class should be modified. TODO: it might be sensible to combine stuff in here with that in ShadowAgreement, since they'll have the same set of fields trac 3031
Since:
15.0
Author:
dsm
  • Constructor Details

  • Method Details

    • load

      public void load(Entry entry) throws ConfigOpFailedException
      Populate the fields in this object based on the contents of an Entry.

      The original class doc says that "It is intended that no attributes of this class should be modified" which I think means that there are no setters in the class, but it is possible for callers to call this method to refresh the object in line with the current DSA contents.

      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()
      Returns:
      agreement/GDAM ID, will never be null
    • getGdamDN

      public DN getGdamDN()
      Returns:
      GDAM DN, will never be null
    • getDsaDN

      public DN getDsaDN()
      Returns:
      failover DSA DN, will never be null
    • getLastUpdateTime

      public Date getLastUpdateTime()
      Determine the time when the last update was reported.
      Returns:
      last update time, which will be null if no update time is reported.
    • getLastErrorTime

      public Date getLastErrorTime()
      Determine the time when the last error was reported
      Returns:
      last error time, which will be null if no error time is reported.
    • getLastError

      public int getLastError()
      Determine the value of the last error (if any).
      Returns:
      last error, which will be zero if no error has been reported.
    • commit

      public void commit() throws ReadFailedException, ConfigOpFailedException
      Override the superclass method with one that always throws a ConfigOpFailedException, since it's never expected that anyone write back this type of entry.
      Overrides:
      commit in class ManagedObject
      Throws:
      ConfigOpFailedException - always
      ReadFailedException - never
      See Also: