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 execute
taskObjectclass - the objectclass used to represent scheduled instances of this utility in the task backend
taskAttributes - 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 Details

    • TaskImplementation

      public TaskImplementation(Class<?> taskClass, String taskObjectclass, List<Attribute> taskAttributes)
      Creates an instance of a TaskImplementation record class.
      Parameters:
      taskClass - the value for the taskClass record component
      taskObjectclass - the value for the taskObjectclass record component
      taskAttributes - the value for the taskAttributes record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • taskClass

      public Class<?> taskClass()
      Returns the value of the taskClass record component.
      Returns:
      the value of the taskClass record component
    • taskObjectclass

      public String taskObjectclass()
      Returns the value of the taskObjectclass record component.
      Returns:
      the value of the taskObjectclass record component
    • taskAttributes

      public List<Attribute> taskAttributes()
      Returns the value of the taskAttributes record component.
      Returns:
      the value of the taskAttributes record component