Package org.graylog2.indexer.datanode
Record Class MigrationConfiguration
java.lang.Object
java.lang.Record
org.graylog2.indexer.datanode.MigrationConfiguration
- All Implemented Interfaces:
MongoEntity
public record MigrationConfiguration(@Nullable String id, org.joda.time.DateTime created, List<IndexMigrationConfiguration> indices, List<String> certificates, List<LogEntry> logs)
extends Record
implements MongoEntity
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMigrationConfiguration(String id, org.joda.time.DateTime created, List<IndexMigrationConfiguration> indices, List<String> certificates, List<LogEntry> logs) Creates an instance of aMigrationConfigurationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecertificatesrecord component.org.joda.time.DateTimecreated()Returns the value of thecreatedrecord component.final booleanIndicates whether some other object is "equal to" this one.static MigrationConfigurationforIndices(List<String> indices, List<String> trustedCertificates) getConfigForIndexName(String indexName) final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.indices()Returns the value of theindicesrecord component.logs()Returns the value of thelogsrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
FIELD_ID
- See Also:
-
FIELD_INDICES
- See Also:
-
FIELD_CREATED
- See Also:
-
FIELD_LOGS
- See Also:
-
FIELD_CERTIFICATES
- See Also:
-
-
Constructor Details
-
MigrationConfiguration
public MigrationConfiguration(@Nullable String id, org.joda.time.DateTime created, List<IndexMigrationConfiguration> indices, List<String> certificates, List<LogEntry> logs) Creates an instance of aMigrationConfigurationrecord class.- Parameters:
id- the value for theidrecord componentcreated- the value for thecreatedrecord componentindices- the value for theindicesrecord componentcertificates- the value for thecertificatesrecord componentlogs- the value for thelogsrecord component
-
-
Method Details
-
forIndices
public static MigrationConfiguration forIndices(List<String> indices, List<String> trustedCertificates) - Parameters:
indices-trustedCertificates- PEM encoded list of certificates that the migration should trust- Returns:
-
getConfigForIndexName
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
id
Returns the value of theidrecord component.- Specified by:
idin interfaceMongoEntity- Returns:
- the value of the
idrecord component
-
created
public org.joda.time.DateTime created()Returns the value of thecreatedrecord component.- Returns:
- the value of the
createdrecord component
-
indices
Returns the value of theindicesrecord component.- Returns:
- the value of the
indicesrecord component
-
certificates
Returns the value of thecertificatesrecord component.- Returns:
- the value of the
certificatesrecord component
-
logs
Returns the value of thelogsrecord component.- Returns:
- the value of the
logsrecord component
-