Package com.isode.dsapi.config
Class MESHServerReport
java.lang.Object
com.isode.dsapi.config.ManagedObject
com.isode.dsapi.config.MESHServerReport
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
-
Field Summary
Fields inherited from class com.isode.dsapi.config.ManagedObject
logger
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.isode.dsapi.config.ManagedObject
addAttribute, addAttribute, addAttribute, addAttributeValue, addAttributeValue, addEntry, addOC, checkMandatory, checkMandatory, checkMandatory, checkMandatory, commit, commitNoRefresh, createAP, createAttributeType, createDN, createPA, createRDN, createRDN, getAttribute, getAttributeDefaultWhenNull, getIsodeDirectorySession, getMultiValueBer, getMultiValuedInteger, getMultiValuedInteger, getMultiValuedString, getMultiValuedString, getPA, getValue, getValueAttrTypeFromOID, getValueBer, getValueBoolean, getValueDate, getValueDate, getValueDN, getValueInteger, getValueInteger, getValueString, getValueString, getValueStringFromAttribute, hasAttributeChanged, hasChanges, remove, removeAttr, removeStringValue, reset, reset, updateAttr, updateAttr, updateAttr, updateBoolean, updateDN, updateInteger, updateMultiValuedBER, updateMultiValuedInteger, updateMultiValuedString, updatePA, updatePA, updateString
-
Constructor Details
-
MESHServerReport
Constructor.- Parameters:
entry
- Entry to create from. Must not be null.ds
- Isode directory session. Must not be null.- Throws:
ConfigOpFailedException
- if mandatory attributes are not loaded
-
-
Method Details
-
load
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 classManagedObject
- 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
Get the server ID.- Returns:
- ID of the represented server, never null.
-
getDN
Get the server DN.- Overrides:
getDN
in classManagedObject
- Returns:
- DN of the represented server, never null.
-
getState
Get the server state as a string. FIXME: replace pure integer representation with an enum.- Returns:
- The server state, never null.
-