Class PluginInfo
- java.lang.Object
-
- org.hansken.plugin.extraction.api.PluginInfo
-
public final class PluginInfo extends Object
Information about anextraction plugin
, such as the author or a human-readable description.Example PluginInfo:
PluginInfo.builderFor(this) .id("nfi.nl", "digest", "sha111") .pluginVersion("0.2.1") .description("Calculates hashes from data streams.") .author(Author.builder() .name("name") .email("test@email.com") .organisation("organisation") .build()) .maturityLevel(MaturityLevel.PROOF_OF_CONCEPT) .hqlMatcher("hql-lite query") .webpageUrl("https://github.com/myOrg/digestPlugin") .license("Apache License 2.0") .resources(Resources.builder() .maximumCpu(1) .maximumMemory(1000) .build()) .build();
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PluginInfo.Builder
A builder forplugin information
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Author
author()
Get theauthor
of this plugin.static PluginInfo.Builder
builderFor(BaseExtractionPlugin plugin)
Start creating newplugin information
for the given plugin.static PluginInfo.Builder
builderFor(PluginType type)
Start creating newplugin information
for a plugin of given type.int
deferredIterations()
Get the number of extraction iterations before the deferred plugin can be applied on traces.String
description()
Get a human readable description of this plugin.String
fullName()
Get the full name of thisplugin
, based on the id.String
hqlMatcher()
Get the hqlMatcher of this plugin in string format.PluginId
id()
Get the the unique id of this plugin, consisting of domain, category and name.String
license()
Get the name of the license of this plugin.MaturityLevel
maturityLevel()
Get thematurity level
of this plugin.String
name()
Deprecated.Useid()
instead.PluginType
pluginType()
String
pluginVersion()
Get the version of thisplugin
.PluginResources
resources()
Get theresources
of this plugin.String
webpageUrl()
Get the url of this plugin, could point to git repo or webpage that explains the plugin.
-
-
-
Method Detail
-
builderFor
public static PluginInfo.Builder builderFor(BaseExtractionPlugin plugin)
Start creating newplugin information
for the given plugin.- Parameters:
plugin
- the plugin to create the plugin information for- Returns:
- a builder for plugin metadata
-
builderFor
public static PluginInfo.Builder builderFor(PluginType type)
Start creating newplugin information
for a plugin of given type.- Parameters:
type
- the type of plugin to create the plugin information for- Returns:
- a builder for plugin metadata
-
pluginType
public PluginType pluginType()
- Returns:
- the type of this plugin
-
name
@Deprecated public String name()
Deprecated.Useid()
instead.Get the name of thisplugin
.- Returns:
- the name of this plugin
-
fullName
public String fullName()
Get the full name of thisplugin
, based on the id. This name will be shown in the Hansken GUI.- Returns:
- the full name of this plugin, based on the id
-
pluginVersion
public String pluginVersion()
Get the version of thisplugin
.- Returns:
- the version of this plugin
-
description
public String description()
Get a human readable description of this plugin.- Returns:
- a description of this plugin
-
maturityLevel
public MaturityLevel maturityLevel()
Get thematurity level
of this plugin.- Returns:
- the maturity level of this plugin
-
hqlMatcher
public String hqlMatcher()
Get the hqlMatcher of this plugin in string format.- Returns:
- the matcher of this plugin
-
webpageUrl
public String webpageUrl()
Get the url of this plugin, could point to git repo or webpage that explains the plugin.- Returns:
- the url of this plugin
-
deferredIterations
public int deferredIterations()
Get the number of extraction iterations before the deferred plugin can be applied on traces. Only relevant for deferred plugins; default value is 1.- Returns:
- the number of iterations set of this plugin
-
id
public PluginId id()
Get the the unique id of this plugin, consisting of domain, category and name.- Returns:
- the url of this plugin
-
license
public String license()
Get the name of the license of this plugin.- Returns:
- the name of the license of this plugin
-
resources
public PluginResources resources()
Get theresources
of this plugin.- Returns:
- the resources of this plugin
-
-