public class PluginInfo extends Object implements Streamable, ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
Modifier and Type | Field and Description |
---|---|
static String |
ES_PLUGIN_POLICY |
static String |
ES_PLUGIN_PROPERTIES |
EMPTY_PARAMS
Constructor and Description |
---|
PluginInfo() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getClassname() |
String |
getDescription() |
String |
getName() |
String |
getUrl()
We compute the URL for sites: "/_plugin/" + name + "/"
|
String |
getVersion() |
int |
hashCode() |
boolean |
isIsolated() |
boolean |
isJvm() |
boolean |
isSite() |
void |
readFrom(StreamInput in) |
static PluginInfo |
readFromProperties(Path dir)
reads (and validates) plugin metadata descriptor file
|
static PluginInfo |
readFromStream(StreamInput in) |
String |
toString() |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out) |
public static final String ES_PLUGIN_PROPERTIES
public static final String ES_PLUGIN_POLICY
public static PluginInfo readFromProperties(Path dir) throws IOException
IOException
public String getName()
public String getDescription()
public boolean isSite()
public boolean isJvm()
public boolean isIsolated()
public String getClassname()
public String getUrl()
public String getVersion()
public static PluginInfo readFromStream(StreamInput in) throws IOException
IOException
public void readFrom(StreamInput in) throws IOException
readFrom
in interface Streamable
IOException
public void writeTo(StreamOutput out) throws IOException
writeTo
in interface Streamable
IOException
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent
in interface ToXContent
IOException
Copyright © 2009–2016. All rights reserved.