java.lang.Object
java.lang.Record
me.ahoo.cosid.internal.RuntimePlan.Machine
- Record Components:
name- "default" or the name of a named machinespec- the machinenamespace- the namespace of its slot, unique among the machines of the runtimeownerKey- the owner key of a leased slot (07 ยง1.1); empty for a static one
- Enclosing class:
RuntimePlan
public static record RuntimePlan.Machine(String name, MachineSpec spec, String namespace, Optional<String> ownerKey)
extends Record
A machine to start.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.Returns the value of thenamespacerecord component.ownerKey()Returns the value of theownerKeyrecord component.spec()Returns the value of thespecrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
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). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
spec
Returns the value of thespecrecord component.- Returns:
- the value of the
specrecord component
-
namespace
Returns the value of thenamespacerecord component.- Returns:
- the value of the
namespacerecord component
-
ownerKey
Returns the value of theownerKeyrecord component.- Returns:
- the value of the
ownerKeyrecord component
-