Package org.opends.server.tools.tasks
Record Class TaskScheduleInformation.TaskImplementation
java.lang.Object
java.lang.Record
org.opends.server.tools.tasks.TaskScheduleInformation.TaskImplementation
- Record Components:
taskClass- the class that implements the utility to executetaskObjectclass- the objectclass used to represent scheduled instances of this utility in the task backendtaskAttributes- specific attributes to be added to the task entry
- Enclosing class:
- TaskScheduleInformation
public static record TaskScheduleInformation.TaskImplementation(Class<?> taskClass, String taskObjectclass, List<Attribute> taskAttributes)
extends Record
A task is sent to the server to execute a utility immediately or at a later time.
The task is represented by an entry in the task backend.
This record holds metadata used to build the task entry sent to the server.
-
Constructor Summary
ConstructorsConstructorDescriptionTaskImplementation(Class<?> taskClass, String taskObjectclass, List<Attribute> taskAttributes) Creates an instance of aTaskImplementationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thetaskAttributesrecord component.Class<?>Returns the value of thetaskClassrecord component.Returns the value of thetaskObjectclassrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TaskImplementation
public TaskImplementation(Class<?> taskClass, String taskObjectclass, List<Attribute> taskAttributes) Creates an instance of aTaskImplementationrecord class.- Parameters:
taskClass- the value for thetaskClassrecord componenttaskObjectclass- the value for thetaskObjectclassrecord componenttaskAttributes- the value for thetaskAttributesrecord component
-
-
Method Details
-
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). -
taskClass
Returns the value of thetaskClassrecord component.- Returns:
- the value of the
taskClassrecord component
-
taskObjectclass
Returns the value of thetaskObjectclassrecord component.- Returns:
- the value of the
taskObjectclassrecord component
-
taskAttributes
Returns the value of thetaskAttributesrecord component.- Returns:
- the value of the
taskAttributesrecord component
-