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 aTaskImplementation
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of thetaskAttributes
record component.Class<?>
Returns the value of thetaskClass
record component.Returns the value of thetaskObjectclass
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
TaskImplementation
public TaskImplementation(Class<?> taskClass, String taskObjectclass, List<Attribute> taskAttributes) Creates an instance of aTaskImplementation
record class.- Parameters:
taskClass
- the value for thetaskClass
record componenttaskObjectclass
- the value for thetaskObjectclass
record componenttaskAttributes
- the value for thetaskAttributes
record 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 thetaskClass
record component.- Returns:
- the value of the
taskClass
record component
-
taskObjectclass
Returns the value of thetaskObjectclass
record component.- Returns:
- the value of the
taskObjectclass
record component
-
taskAttributes
Returns the value of thetaskAttributes
record component.- Returns:
- the value of the
taskAttributes
record component
-