Record Class ProjectScriptDiagnostic.Details.Schedule
java.lang.Object
java.lang.Record
com.inductiveautomation.ignition.common.script.ProjectScriptDiagnostic.Details.Schedule
- Record Components:
cronExpression- the project-authored cron expression the script runs on.running- false when the execution queue is idle.queueDepth- the jobs waiting behind the current run.
- All Implemented Interfaces:
ProjectScriptDiagnostic.Details
- Enclosing interface:
ProjectScriptDiagnostic.Details
public static record ProjectScriptDiagnostic.Details.Schedule(String cronExpression, boolean running, int queueDepth)
extends Record
implements ProjectScriptDiagnostic.Details
A scheduled script's cron schedule and the state of the queue its jobs run through.
-
Nested Class Summary
Nested classes/interfaces inherited from interface ProjectScriptDiagnostic.Details
ProjectScriptDiagnostic.Details.MessageHandler, ProjectScriptDiagnostic.Details.Schedule, ProjectScriptDiagnostic.Details.Timer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecronExpressionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of thequeueDepthrecord component.booleanrunning()Returns the value of therunningrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Schedule
Creates an instance of aSchedulerecord class.- Parameters:
cronExpression- the value for thecronExpressionrecord componentrunning- the value for therunningrecord componentqueueDepth- the value for thequeueDepthrecord component
-
-
Method Details
-
toString
-
hashCode
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
cronExpression
Returns the value of thecronExpressionrecord component.- Returns:
- the value of the
cronExpressionrecord component
-
running
-
queueDepth
public int queueDepth()Returns the value of thequeueDepthrecord component.- Returns:
- the value of the
queueDepthrecord component
-