Module org.elasticsearch.server
Record Class CoordinationDiagnosticsService.CoordinationDiagnosticsDetails
java.lang.Object
java.lang.Record
org.elasticsearch.cluster.coordination.CoordinationDiagnosticsService.CoordinationDiagnosticsDetails
- All Implemented Interfaces:
Writeable
- Enclosing class:
- CoordinationDiagnosticsService
public static record CoordinationDiagnosticsService.CoordinationDiagnosticsDetails(DiscoveryNode currentMaster, List<DiscoveryNode> recentMasters, String remoteExceptionMessage, String remoteExceptionStackTrace, Map<String,String> nodeToClusterFormationDescriptionMap)
extends Record
implements Writeable
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
Field Summary
Modifier and TypeFieldDescription -
Constructor Summary
ConstructorDescriptionCoordinationDiagnosticsDetails
(DiscoveryNode currentMaster, List<DiscoveryNode> recentMasters, Exception remoteException, Map<String, String> nodeToClusterFormationDescriptionMap) CoordinationDiagnosticsDetails
(DiscoveryNode currentMaster, List<DiscoveryNode> recentMasters, String remoteExceptionMessage, String remoteExceptionStackTrace, Map<String, String> nodeToClusterFormationDescriptionMap) Creates an instance of aCoordinationDiagnosticsDetails
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecurrentMaster
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of thenodeToClusterFormationDescriptionMap
record component.Returns the value of therecentMasters
record component.Returns the value of theremoteExceptionMessage
record component.Returns the value of theremoteExceptionStackTrace
record component.final String
toString()
Returns a string representation of this record class.void
writeTo
(StreamOutput out) Write this into the StreamOutput.
-
Field Details
-
EMPTY
-
-
Constructor Details
-
CoordinationDiagnosticsDetails
public CoordinationDiagnosticsDetails(DiscoveryNode currentMaster, List<DiscoveryNode> recentMasters, Exception remoteException, Map<String, String> nodeToClusterFormationDescriptionMap) -
CoordinationDiagnosticsDetails
- Throws:
IOException
-
CoordinationDiagnosticsDetails
public CoordinationDiagnosticsDetails(DiscoveryNode currentMaster, List<DiscoveryNode> recentMasters, @Nullable String remoteExceptionMessage, @Nullable String remoteExceptionStackTrace, @Nullable Map<String, String> nodeToClusterFormationDescriptionMap) Creates an instance of aCoordinationDiagnosticsDetails
record class.- Parameters:
currentMaster
- the value for thecurrentMaster
record componentrecentMasters
- the value for therecentMasters
record componentremoteExceptionMessage
- the value for theremoteExceptionMessage
record componentremoteExceptionStackTrace
- the value for theremoteExceptionStackTrace
record componentnodeToClusterFormationDescriptionMap
- the value for thenodeToClusterFormationDescriptionMap
record component
-
-
Method Details
-
writeTo
Description copied from interface:Writeable
Write this into the StreamOutput.- Specified by:
writeTo
in interfaceWriteable
- 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)
. -
currentMaster
Returns the value of thecurrentMaster
record component.- Returns:
- the value of the
currentMaster
record component
-
recentMasters
Returns the value of therecentMasters
record component.- Returns:
- the value of the
recentMasters
record component
-
remoteExceptionMessage
Returns the value of theremoteExceptionMessage
record component.- Returns:
- the value of the
remoteExceptionMessage
record component
-
remoteExceptionStackTrace
Returns the value of theremoteExceptionStackTrace
record component.- Returns:
- the value of the
remoteExceptionStackTrace
record component
-
nodeToClusterFormationDescriptionMap
Returns the value of thenodeToClusterFormationDescriptionMap
record component.- Returns:
- the value of the
nodeToClusterFormationDescriptionMap
record component
-