Package org.opends.server.tools.tasks
Record Class TaskScheduleInformation
java.lang.Object
java.lang.Record
org.opends.server.tools.tasks.TaskScheduleInformation
- Record Components:
taskImplementation
- the task implementationtaskScheduleUserData
- the task schedule user data
public record TaskScheduleInformation(TaskScheduleInformation.TaskImplementation taskImplementation, TaskScheduleInformation.TaskScheduleUserData taskScheduleUserData)
extends Record
Interface for tools that are capable of scheduling a task remotely through the task backend.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final record
A task is sent to the server to execute a utility immediately or at a later time.static final record
A generic data structure that contains the data that the user provided to schedule a task. -
Constructor Summary
ConstructorsConstructorDescriptionTaskScheduleInformation
(TaskScheduleInformation.TaskImplementation taskImplementation, TaskScheduleInformation.TaskScheduleUserData taskScheduleUserData) Creates an instance of aTaskScheduleInformation
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 thetaskImplementation
record component.Returns the value of thetaskScheduleUserData
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
TaskScheduleInformation
public TaskScheduleInformation(TaskScheduleInformation.TaskImplementation taskImplementation, TaskScheduleInformation.TaskScheduleUserData taskScheduleUserData) Creates an instance of aTaskScheduleInformation
record class.- Parameters:
taskImplementation
- the value for thetaskImplementation
record componenttaskScheduleUserData
- the value for thetaskScheduleUserData
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)
. -
taskImplementation
Returns the value of thetaskImplementation
record component.- Returns:
- the value of the
taskImplementation
record component
-
taskScheduleUserData
Returns the value of thetaskScheduleUserData
record component.- Returns:
- the value of the
taskScheduleUserData
record component
-