Package org.opends.server.backends
Record Class RebuildConfig
java.lang.Object
java.lang.Record
org.opends.server.backends.RebuildConfig
- Record Components:
baseDn- the local backend's base DN for which to rebuild indexesrebuildIndexSelection- how to select indexes to rebuildrebuildList- the user-provided list of indexes to rebuild. Only significant when rebuildIndexSelection isRebuildConfig.RebuildIndexSelection.USER_DEFINEDtmpDirectory- the temporary directory for rebuild-indexsetUntrusted- whether indexes should be forcefully marked as untrusted
public record RebuildConfig(Dn baseDn, RebuildConfig.RebuildIndexSelection rebuildIndexSelection, Collection<String> rebuildList, String tmpDirectory, boolean setUntrusted)
extends Record
Configuration for the indexType rebuild process.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumIdentifies which indexes will be selected for rebuild. -
Constructor Summary
ConstructorsConstructorDescriptionRebuildConfig(Dn baseDn, RebuildConfig.RebuildIndexSelection rebuildIndexSelection, Collection<String> rebuildList, String tmpDirectory, boolean setUntrusted) Builds a new rebuild config object. -
Method Summary
Modifier and TypeMethodDescriptionbaseDn()Returns the value of thebaseDnrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanTest if this rebuild config includes any system indexes to rebuild.Returns the value of therebuildIndexSelectionrecord component.Returns the value of therebuildListrecord component.booleanReturns the value of thesetUntrustedrecord component.Returns the value of thetmpDirectoryrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RebuildConfig
public RebuildConfig(Dn baseDn, RebuildConfig.RebuildIndexSelection rebuildIndexSelection, Collection<String> rebuildList, String tmpDirectory, boolean setUntrusted) Builds a new rebuild config object.
-
-
Method Details
-
includesSystemIndex
public boolean includesSystemIndex()Test if this rebuild config includes any system indexes to rebuild.- Returns:
- True if rebuilding of system indexes are included. False otherwise.
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
baseDn
Returns the value of thebaseDnrecord component.- Returns:
- the value of the
baseDnrecord component
-
rebuildIndexSelection
Returns the value of therebuildIndexSelectionrecord component.- Returns:
- the value of the
rebuildIndexSelectionrecord component
-
rebuildList
Returns the value of therebuildListrecord component.- Returns:
- the value of the
rebuildListrecord component
-
tmpDirectory
Returns the value of thetmpDirectoryrecord component.- Returns:
- the value of the
tmpDirectoryrecord component
-
setUntrusted
public boolean setUntrusted()Returns the value of thesetUntrustedrecord component.- Returns:
- the value of the
setUntrustedrecord component
-