Package gda.commandqueue
Record Class JythonCommandCommandProvider
java.lang.Object
java.lang.Record
gda.commandqueue.JythonCommandCommandProvider
- All Implemented Interfaces:
CommandProvider,Serializable
public record JythonCommandCommandProvider(String commandToRun, String description, String settingsPath)
extends Record
implements CommandProvider
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionJythonCommandCommandProvider(String commandToRun, String description, String settingsPath) Creates an instance of aJythonCommandCommandProviderrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecommandToRunrecord component.Returns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.If the command is of the form "run 'script'" then use JythonScriptFileCommandProvider.getCommand as this handles pauses whilst JythonCommandRunnerCommand does notfinal inthashCode()Returns a hash code value for this object.Returns the value of thesettingsPathrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
JythonCommandCommandProvider
Creates an instance of aJythonCommandCommandProviderrecord class.- Parameters:
commandToRun- the value for thecommandToRunrecord componentdescription- the value for thedescriptionrecord componentsettingsPath- the value for thesettingsPathrecord component
-
-
Method Details
-
getCommand
If the command is of the form "run 'script'" then use JythonScriptFileCommandProvider.getCommand as this handles pauses whilst JythonCommandRunnerCommand does not- Specified by:
getCommandin interfaceCommandProvider- Throws:
IOException
-
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). -
commandToRun
Returns the value of thecommandToRunrecord component.- Returns:
- the value of the
commandToRunrecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
settingsPath
Returns the value of thesettingsPathrecord component.- Returns:
- the value of the
settingsPathrecord component
-