Class BackendDescriptor
- java.lang.Object
-
- org.opends.guitools.controlpanel.datamodel.BackendDescriptor
-
public class BackendDescriptor extends Object
The class that describes the backend configuration.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBackendDescriptor.PluggableTypeAn enumeration describing the different pluggable backends.static classBackendDescriptor.TypeAn enumeration describing the type of backend.
-
Constructor Summary
Constructors Constructor Description BackendDescriptor(String backendID, Set<BaseDNDescriptor> baseDns, Set<IndexDescriptor> indexes, Set<VLVIndexDescriptor> vlvIndexes, int entries, boolean isEnabled, BackendDescriptor.Type type)Constructor for this class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)StringgetBackendID()Returns the ID of the Backend.SortedSet<BaseDNDescriptor>getBaseDns()Returns the Base DN objects associated with the backend.intgetEntries()Return the number of entries in the backendSortedSet<IndexDescriptor>getIndexes()Returns the index objects associated with the backend.SearchResultEntrygetMonitoringEntry()Returns the monitoring entry information.BackendDescriptor.PluggableTypegetPluggableType()Get the type of pluggable backend.BackendDescriptor.TypegetType()Returns the type of the backend.SortedSet<VLVIndexDescriptor>getVLVIndexes()Returns the vlv index objects associated with the backend.inthashCode()booleanisConfigBackend()Tells whether this is a configuration backend or not.booleanisEnabled()Tells whether this backend is enabled or not.voidsetEntries(int entries)Sets the number of entries contained in this backend.voidsetMonitoringEntry(SearchResultEntry sr)Sets the monitoring entry corresponding to this backend.voidsetPluggableType(BackendDescriptor.PluggableType pluggableType)Set the type of pluggable backend.StringtoString()
-
-
-
Constructor Detail
-
BackendDescriptor
public BackendDescriptor(String backendID, Set<BaseDNDescriptor> baseDns, Set<IndexDescriptor> indexes, Set<VLVIndexDescriptor> vlvIndexes, int entries, boolean isEnabled, BackendDescriptor.Type type)
Constructor for this class.- Parameters:
backendID- the backend ID of the Backend.baseDns- the base DNs associated with the Backend.indexes- the indexes defined in the backend.vlvIndexes- the VLV indexes defined in the backend.entries- the number of entries in the Backend.isEnabled- whether the backend is enabled or not.type- the type of the backend.
-
-
Method Detail
-
getBackendID
public String getBackendID()
Returns the ID of the Backend.- Returns:
- the ID of the Backend.
-
getBaseDns
public SortedSet<BaseDNDescriptor> getBaseDns()
Returns the Base DN objects associated with the backend.- Returns:
- the Base DN objects associated with the backend.
-
getVLVIndexes
public SortedSet<VLVIndexDescriptor> getVLVIndexes()
Returns the vlv index objects associated with the backend.- Returns:
- the vlv index objects associated with the backend.
-
getIndexes
public SortedSet<IndexDescriptor> getIndexes()
Returns the index objects associated with the backend.- Returns:
- the index objects associated with the backend.
-
getEntries
public int getEntries()
Return the number of entries in the backend. -1 indicates that the number of entries could not be found.- Returns:
- the number of entries in the backend.
-
getMonitoringEntry
public SearchResultEntry getMonitoringEntry()
Returns the monitoring entry information.- Returns:
- the monitoring entry information.
-
isConfigBackend
public boolean isConfigBackend()
Tells whether this is a configuration backend or not.- Returns:
trueif this is a configuration backend,falseotherwise.
-
setEntries
public void setEntries(int entries)
Sets the number of entries contained in this backend.- Parameters:
entries- the number of entries contained in this backend.
-
setMonitoringEntry
public void setMonitoringEntry(SearchResultEntry sr)
Sets the monitoring entry corresponding to this backend.- Parameters:
sr- the monitoring entry corresponding to this backend.
-
getType
public BackendDescriptor.Type getType()
Returns the type of the backend.- Returns:
- the type of the backend.
-
isEnabled
public boolean isEnabled()
Tells whether this backend is enabled or not.- Returns:
trueif this is backend is enabled,falseotherwise.
-
setPluggableType
public void setPluggableType(BackendDescriptor.PluggableType pluggableType)
Set the type of pluggable backend.- Parameters:
pluggableType- the type of pluggable backend.
-
getPluggableType
public BackendDescriptor.PluggableType getPluggableType()
Get the type of pluggable backend.- Returns:
- the type of pluggable backend.
-
-