java.lang.Object
java.lang.Record
org.elasticsearch.plugins.PluginRuntimeInfo
- Record Components:
descriptor
- Static information about the pluginisOfficial
-true
if the plugin is an official plugin, orfalse
otherwise. For nodes before 8.3.0 this isnull
.pluginApiInfo
- Runtime information about a custom plugin
- All Implemented Interfaces:
Writeable
,ToXContent
,ToXContentObject
public record PluginRuntimeInfo(PluginDescriptor descriptor, Boolean isOfficial, PluginApiInfo pluginApiInfo)
extends Record
implements Writeable, ToXContentObject
Runtime information about a plugin that was loaded.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
Field Summary
Fields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS
-
Constructor Summary
ConstructorsConstructorDescriptionPluginRuntimeInfo
(PluginDescriptor descriptor) PluginRuntimeInfo
(PluginDescriptor descriptor, Boolean isOfficial, PluginApiInfo pluginApiInfo) Creates an instance of aPluginRuntimeInfo
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedescriptor
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 theisOfficial
record component.Returns the value of thepluginApiInfo
record component.final String
toString()
Returns a string representation of this record class.toXContent
(XContentBuilder builder, ToXContent.Params params) void
writeTo
(StreamOutput out) Write this into the StreamOutput.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.elasticsearch.xcontent.ToXContentObject
isFragment
-
Constructor Details
-
PluginRuntimeInfo
-
PluginRuntimeInfo
- Throws:
IOException
-
PluginRuntimeInfo
public PluginRuntimeInfo(PluginDescriptor descriptor, @Nullable Boolean isOfficial, @Nullable PluginApiInfo pluginApiInfo) Creates an instance of aPluginRuntimeInfo
record class.- Parameters:
descriptor
- the value for thedescriptor
record componentisOfficial
- the value for theisOfficial
record componentpluginApiInfo
- the value for thepluginApiInfo
record component
-
-
Method Details
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
toXContent
in interfaceToXContent
- Throws:
IOException
-
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)
. -
descriptor
Returns the value of thedescriptor
record component.- Returns:
- the value of the
descriptor
record component
-
isOfficial
Returns the value of theisOfficial
record component.- Returns:
- the value of the
isOfficial
record component
-
pluginApiInfo
Returns the value of thepluginApiInfo
record component.- Returns:
- the value of the
pluginApiInfo
record component
-