public class PluginInfo extends Object implements Streamable, Serializable, ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
Modifier and Type | Field and Description |
---|---|
static String |
DESCRIPTION_NOT_AVAILABLE |
static String |
VERSION_NOT_AVAILABLE |
EMPTY_PARAMS
Constructor and Description |
---|
PluginInfo() |
PluginInfo(String name,
String description,
boolean site,
boolean jvm,
String version)
Information about plugins
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getDescription() |
String |
getName() |
String |
getUrl()
We compute the URL for sites: "/_plugin/" + name + "/"
|
String |
getVersion() |
int |
hashCode() |
boolean |
isJvm() |
boolean |
isSite() |
void |
readFrom(StreamInput in) |
static PluginInfo |
readPluginInfo(StreamInput in) |
String |
toString() |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out) |
public static final String DESCRIPTION_NOT_AVAILABLE
public static final String VERSION_NOT_AVAILABLE
public PluginInfo()
public PluginInfo(String name, String description, boolean site, boolean jvm, String version)
name
- Its namedescription
- Its descriptionsite
- true if it's a site pluginjvm
- true if it's a jvm pluginversion
- Version number is applicable (NA otherwise)public String getName()
public String getDescription()
public boolean isSite()
public boolean isJvm()
public String getUrl()
public String getVersion()
public static PluginInfo readPluginInfo(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–2015. All rights reserved.