public class PluginInfo extends java.lang.Object implements Writeable, ToXContent
Writeable.Reader<V>, Writeable.Writer<V>
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ES_PLUGIN_POLICY |
static java.lang.String |
ES_PLUGIN_PROPERTIES |
EMPTY_PARAMS
Constructor and Description |
---|
PluginInfo(StreamInput in)
Construct plugin info from a stream.
|
PluginInfo(java.lang.String name,
java.lang.String description,
java.lang.String version,
java.lang.String classname,
boolean hasNativeController)
Construct plugin info.
|
Modifier and Type | Method and 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.
|
java.lang.String |
getName()
The name of the plugin.
|
java.lang.String |
getVersion()
The version of Elasticsearch the plugin was built for.
|
int |
hashCode() |
boolean |
hasNativeController()
Whether or not the plugin has a native controller.
|
static PluginInfo |
readFromProperties(java.nio.file.Path path)
Reads and validates the plugin descriptor file.
|
java.lang.String |
toString() |
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, java.lang.String classname, boolean hasNativeController)
name
- the name of the plugindescription
- a description of the pluginversion
- the version of Elasticsearch the plugin is built forclassname
- the entry point to the pluginhasNativeController
- 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.lang.String getVersion()
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