Class PluginInfo
java.lang.Object
org.hansken.plugin.extraction.api.PluginInfo
Information about an
extraction 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 -
Method Summary
Modifier and TypeMethodDescriptionauthor()
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
Get the number of extraction iterations before the deferred plugin can be applied on traces.Get a human readable description of this plugin.fullName()
Get the full name of thisplugin
, based on the id.Get the hqlMatcher of this plugin in string format.id()
Get the the unique id of this plugin, consisting of domain, category and name.license()
Get the name of the license of this plugin.Get thematurity level
of this plugin.name()
Deprecated.Get the version of thisplugin
.Get theresources
of this plugin.Get a list of possible transform methods this plugin provides.Get the url of this plugin, could point to git repo or webpage that explains the plugin.
-
Method Details
-
builderFor
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
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
- Returns:
- the type of this plugin
-
name
Deprecated.Useid()
instead.Get the name of thisplugin
.- Returns:
- the name of this plugin
-
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
Get the version of thisplugin
.- Returns:
- the version of this plugin
-
description
Get a human readable description of this plugin.- Returns:
- a description of this plugin
-
author
Get theauthor
of this plugin.- Returns:
- the author of this plugin.
-
maturityLevel
Get thematurity level
of this plugin.- Returns:
- the maturity level of this plugin
-
hqlMatcher
Get the hqlMatcher of this plugin in string format.- Returns:
- the matcher of this plugin
-
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
Get the the unique id of this plugin, consisting of domain, category and name.- Returns:
- the url of this plugin
-
license
Get the name of the license of this plugin.- Returns:
- the name of the license of this plugin
-
transformers
Get a list of possible transform methods this plugin provides.- Returns:
- list of transform methods
-
resources
Get theresources
of this plugin.- Returns:
- the resources of this plugin
-
id()
instead.