Writeable
, ToXContent
, ToXContentObject
public class PluginInfo extends java.lang.Object implements Writeable, ToXContentObject
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
Writeable.Reader<V>, Writeable.Writer<V>
Modifier and Type | Field | Description |
---|---|---|
static java.lang.String |
ES_PLUGIN_POLICY |
|
static java.lang.String |
ES_PLUGIN_PROPERTIES |
EMPTY_PARAMS
Constructor | Description |
---|---|
PluginInfo(java.lang.String name,
java.lang.String description,
java.lang.String version,
Version elasticsearchVersion,
java.lang.String javaVersion,
java.lang.String classname,
java.util.List<java.lang.String> extendedPlugins,
boolean hasNativeController) |
Construct plugin info.
|
PluginInfo(StreamInput in) |
Construct plugin info from a stream.
|
Modifier and Type | Method | Description |
---|---|---|
boolean |
equals(java.lang.Object o) |
|
java.lang.String |
getClassname() |
The entry point to the plugin.
|
java.lang.String |
getDescription() |
The description of the plugin.
|
Version |
getElasticsearchVersion() |
The version of Elasticsearch the plugin was built for.
|
java.util.List<java.lang.String> |
getExtendedPlugins() |
Other plugins this plugin extends through SPI.
|
java.lang.String |
getJavaVersion() |
The version of Java the plugin was built with.
|
java.lang.String |
getName() |
The name of the plugin.
|
java.lang.String |
getVersion() |
The version of the plugin
|
int |
hashCode() |
|
boolean |
hasNativeController() |
Whether or not the plugin has a native controller.
|
static PluginInfo |
readFromProperties(java.nio.file.Path path) |
Reads the plugin descriptor file.
|
java.lang.String |
toString() |
|
java.lang.String |
toString(java.lang.String prefix) |
|
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
|
void |
writeTo(StreamOutput out) |
Write this into the StreamOutput.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
isFragment
public static final java.lang.String ES_PLUGIN_PROPERTIES
public static final java.lang.String ES_PLUGIN_POLICY
public PluginInfo(java.lang.String name, java.lang.String description, java.lang.String version, Version elasticsearchVersion, java.lang.String javaVersion, java.lang.String classname, java.util.List<java.lang.String> extendedPlugins, boolean hasNativeController)
name
- the name of the plugindescription
- a description of the pluginversion
- an opaque version identifier for the pluginelasticsearchVersion
- the version of Elasticsearch the plugin was built forjavaVersion
- the version of Java the plugin was built withclassname
- the entry point to the pluginextendedPlugins
- other plugins this plugin extends through SPIhasNativeController
- whether or not the plugin has a native controllerpublic PluginInfo(StreamInput in) throws java.io.IOException
in
- the streamjava.io.IOException
- if an I/O exception occurred reading the plugin info from the streampublic void writeTo(StreamOutput out) throws java.io.IOException
Writeable
public static PluginInfo readFromProperties(java.nio.file.Path path) throws java.io.IOException
path
- the path to the root directory for the pluginjava.io.IOException
- if an I/O exception occurred reading the plugin descriptorpublic java.lang.String getName()
public java.lang.String getDescription()
public java.lang.String getClassname()
public java.util.List<java.lang.String> getExtendedPlugins()
public java.lang.String getVersion()
public Version getElasticsearchVersion()
public java.lang.String getJavaVersion()
public boolean hasNativeController()
true
if the plugin has a native controllerpublic XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent
in interface ToXContent
java.io.IOException
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toString(java.lang.String prefix)