Record Class ClientOrchestrator.ScriptStatusEntry
java.lang.Object
java.lang.Record
com.botwithus.bot.api.script.ClientOrchestrator.ScriptStatusEntry
- Enclosing interface:
ClientOrchestrator
-
Constructor Summary
ConstructorsConstructorDescriptionScriptStatusEntry(String clientName, String scriptName, String version, boolean running, boolean clientAlive) Creates an instance of aScriptStatusEntryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theclientAliverecord component.Returns the value of theclientNamerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanrunning()Returns the value of therunningrecord component.Returns the value of thescriptNamerecord component.final StringtoString()Returns a string representation of this record class.version()Returns the value of theversionrecord component.
-
Constructor Details
-
ScriptStatusEntry
public ScriptStatusEntry(String clientName, String scriptName, String version, boolean running, boolean clientAlive) Creates an instance of aScriptStatusEntryrecord class.- Parameters:
clientName- the value for theclientNamerecord componentscriptName- the value for thescriptNamerecord componentversion- the value for theversionrecord componentrunning- the value for therunningrecord componentclientAlive- the value for theclientAliverecord 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. -
clientName
Returns the value of theclientNamerecord component.- Returns:
- the value of the
clientNamerecord component
-
scriptName
Returns the value of thescriptNamerecord component.- Returns:
- the value of the
scriptNamerecord component
-
version
Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-
running
public boolean running()Returns the value of therunningrecord component.- Returns:
- the value of the
runningrecord component
-
clientAlive
public boolean clientAlive()Returns the value of theclientAliverecord component.- Returns:
- the value of the
clientAliverecord component
-