Record Class PreflightResource.DataNode
java.lang.Object
java.lang.Record
org.graylog2.bootstrap.preflight.web.resources.PreflightResource.DataNode
- Enclosing class:
- PreflightResource
public static record PreflightResource.DataNode(String nodeId, String transportAddress, DataNodeProvisioningConfig.State status, String errorMsg, String hostname, String shortNodeId, DataNodeStatus dataNodeStatus)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionDataNode(String nodeId, String transportAddress, DataNodeProvisioningConfig.State status, String errorMsg, String hostname, String shortNodeId, DataNodeStatus dataNodeStatus) Creates an instance of aDataNoderecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedataNodeStatusrecord component.final booleanIndicates whether some other object is "equal to" this one.errorMsg()Returns the value of theerrorMsgrecord component.final inthashCode()Returns a hash code value for this object.hostname()Returns the value of thehostnamerecord component.nodeId()Returns the value of thenodeIdrecord component.Returns the value of theshortNodeIdrecord component.status()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetransportAddressrecord component.
-
Constructor Details
-
DataNode
public DataNode(String nodeId, String transportAddress, DataNodeProvisioningConfig.State status, String errorMsg, String hostname, String shortNodeId, DataNodeStatus dataNodeStatus) Creates an instance of aDataNoderecord class.- Parameters:
nodeId- the value for thenodeIdrecord componenttransportAddress- the value for thetransportAddressrecord componentstatus- the value for thestatusrecord componenterrorMsg- the value for theerrorMsgrecord componenthostname- the value for thehostnamerecord componentshortNodeId- the value for theshortNodeIdrecord componentdataNodeStatus- the value for thedataNodeStatusrecord 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). -
nodeId
Returns the value of thenodeIdrecord component.- Returns:
- the value of the
nodeIdrecord component
-
transportAddress
Returns the value of thetransportAddressrecord component.- Returns:
- the value of the
transportAddressrecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
errorMsg
Returns the value of theerrorMsgrecord component.- Returns:
- the value of the
errorMsgrecord component
-
hostname
Returns the value of thehostnamerecord component.- Returns:
- the value of the
hostnamerecord component
-
shortNodeId
Returns the value of theshortNodeIdrecord component.- Returns:
- the value of the
shortNodeIdrecord component
-
dataNodeStatus
Returns the value of thedataNodeStatusrecord component.- Returns:
- the value of the
dataNodeStatusrecord component
-