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
FieldsModifier and TypeFieldDescription -
Constructor Summary
ConstructorsConstructorDescriptionCoordinationDiagnosticsDetails(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 aCoordinationDiagnosticsDetailsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecurrentMasterrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thenodeToClusterFormationDescriptionMaprecord component.Returns the value of therecentMastersrecord component.Returns the value of theremoteExceptionMessagerecord component.Returns the value of theremoteExceptionStackTracerecord component.final StringtoString()Returns a string representation of this record class.voidwriteTo(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 aCoordinationDiagnosticsDetailsrecord class.- Parameters:
currentMaster- the value for thecurrentMasterrecord componentrecentMasters- the value for therecentMastersrecord componentremoteExceptionMessage- the value for theremoteExceptionMessagerecord componentremoteExceptionStackTrace- the value for theremoteExceptionStackTracerecord componentnodeToClusterFormationDescriptionMap- the value for thenodeToClusterFormationDescriptionMaprecord component
-
-
Method Details
-
writeTo
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin 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 thecurrentMasterrecord component.- Returns:
- the value of the
currentMasterrecord component
-
recentMasters
Returns the value of therecentMastersrecord component.- Returns:
- the value of the
recentMastersrecord component
-
remoteExceptionMessage
Returns the value of theremoteExceptionMessagerecord component.- Returns:
- the value of the
remoteExceptionMessagerecord component
-
remoteExceptionStackTrace
Returns the value of theremoteExceptionStackTracerecord component.- Returns:
- the value of the
remoteExceptionStackTracerecord component
-
nodeToClusterFormationDescriptionMap
Returns the value of thenodeToClusterFormationDescriptionMaprecord component.- Returns:
- the value of the
nodeToClusterFormationDescriptionMaprecord component
-