Package org.graylog2.indexer.migration
Record Class RemoteReindexIndex
java.lang.Object
java.lang.Record
org.graylog2.indexer.migration.RemoteReindexIndex
public record RemoteReindexIndex(String taskId, String name, RemoteReindexingMigrationAdapter.Status status, org.joda.time.DateTime created, org.joda.time.Duration took, IndexMigrationProgress progress, String errorMsg)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionRemoteReindexIndex(String taskId, String name, RemoteReindexingMigrationAdapter.Status status, org.joda.time.DateTime created, org.joda.time.Duration took, IndexMigrationProgress progress, String errorMsg) Creates an instance of aRemoteReindexIndexrecord class. -
Method Summary
Modifier and TypeMethodDescriptionorg.joda.time.DateTimecreated()Returns the value of thecreatedrecord component.final booleanIndicates whether some other object is "equal to" this one.errorMsg()Returns the value of theerrorMsgrecord component.final inthashCode()Returns a hash code value for this object.booleanname()Returns the value of thenamerecord component.static RemoteReindexIndexnoBackgroundTaskYet(String indexName) progress()Returns the value of theprogressrecord component.status()Returns the value of thestatusrecord component.taskId()Returns the value of thetaskIdrecord component.org.joda.time.Durationtook()Returns the value of thetookrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RemoteReindexIndex
public RemoteReindexIndex(String taskId, String name, RemoteReindexingMigrationAdapter.Status status, org.joda.time.DateTime created, org.joda.time.Duration took, IndexMigrationProgress progress, String errorMsg) Creates an instance of aRemoteReindexIndexrecord class.- Parameters:
taskId- the value for thetaskIdrecord componentname- the value for thenamerecord componentstatus- the value for thestatusrecord componentcreated- the value for thecreatedrecord componenttook- the value for thetookrecord componentprogress- the value for theprogressrecord componenterrorMsg- the value for theerrorMsgrecord component
-
-
Method Details
-
noBackgroundTaskYet
-
isCompleted
public boolean isCompleted() -
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). -
taskId
Returns the value of thetaskIdrecord component.- Returns:
- the value of the
taskIdrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
created
public org.joda.time.DateTime created()Returns the value of thecreatedrecord component.- Returns:
- the value of the
createdrecord component
-
took
public org.joda.time.Duration took()Returns the value of thetookrecord component.- Returns:
- the value of the
tookrecord component
-
progress
Returns the value of theprogressrecord component.- Returns:
- the value of the
progressrecord component
-
errorMsg
Returns the value of theerrorMsgrecord component.- Returns:
- the value of the
errorMsgrecord component
-