|
Kieker 1.6 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object kieker.analysis.plugin.AbstractPlugin
public abstract class AbstractPlugin
Do not inherit directly from this class! Instead inherit from the class AbstractFilterPlugin
or
AbstractReaderPlugin
.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface kieker.analysis.plugin.IPlugin |
---|
IPlugin.PluginInputPortReference, IPlugin.STATE |
Field Summary | |
---|---|
static String |
CONFIG_NAME
|
Constructor Summary | |
---|---|
AbstractPlugin(Configuration configuration)
Each Plugin requires a constructor with a single Configuration object and an array of repositories! |
Method Summary | |
---|---|
boolean |
areAllRepositoryPortsConnected()
This method checks whether all repository ports of the current plugin are connected. |
static void |
connect(AbstractPlugin src,
String outputPortName,
AbstractPlugin dst,
String inputPortName)
This method connects two plugins. |
void |
connect(String reponame,
AbstractRepository repository)
Connects the given repository to this plugin via the given name. |
String[] |
getAllDisplayNames()
|
String[] |
getAllInputPortNames()
|
String[] |
getAllOutputPortNames()
|
String[] |
getAllRepositoryPortNames()
|
List<IPlugin.PluginInputPortReference> |
getConnectedPlugins(String outputPortName)
Delivers the plugins with their ports which are connected with the given output port. |
Map<String,AbstractRepository> |
getCurrentRepositories()
This method delivers an array of AbstractRepository containing the current repositories of this instance. |
Set<AbstractPlugin> |
getIncomingPlugins(boolean transitive)
Returns the plugins which provide data to this plugin. |
String |
getName()
This method delivers the current name of this plugin instance. |
String |
getPluginDescription()
This method delivers the description of this plugin type. |
String |
getPluginName()
This method delivers the plugin name of this plugin. |
IPlugin.STATE |
getState()
|
static boolean |
isConnectionAllowed(AbstractPlugin src,
String output,
AbstractPlugin dst,
String input)
This method checks whether two plugins can be connected. |
void |
shutdown(boolean error)
|
boolean |
start()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface kieker.analysis.plugin.IPlugin |
---|
getCurrentConfiguration, init, terminate |
Field Detail |
---|
public static final String CONFIG_NAME
Constructor Detail |
---|
public AbstractPlugin(Configuration configuration)
Method Detail |
---|
public final void connect(String reponame, AbstractRepository repository) throws AnalysisConfigurationException
IPlugin
AnalysisController.connect
instead!
connect
in interface IPlugin
reponame
- The name of the port to connect the repository.repository
- The repository which should be used.
AnalysisConfigurationException
- if the repository-port is invalid, the repository itself is incompatible or the port is already used.public static final void connect(AbstractPlugin src, String outputPortName, AbstractPlugin dst, String inputPortName) throws AnalysisConfigurationException
AnalysisController.connect
instead!
src
- The source plugin.outputPortName
- The output port of the source plugin.dst
- The destination plugin.inputPortName
- The input port of the destination port.
AnalysisConfigurationException
- if any given plugin is invalid, any output or input port doesn't exist or if they are incompatible.
Furthermore the destination plugin must not be a reader.public static final boolean isConnectionAllowed(AbstractPlugin src, String output, AbstractPlugin dst, String input)
src
- The source plugin.output
- The output port of the source plugin.dst
- The destination plugin.input
- The input port of the destination port.
public final String getName()
IPlugin
getName
in interface IPlugin
public final String getPluginName()
IPlugin
getPluginName
in interface IPlugin
public final String getPluginDescription()
IPlugin
getPluginDescription
in interface IPlugin
public final boolean areAllRepositoryPortsConnected()
public final Map<String,AbstractRepository> getCurrentRepositories()
IPlugin
AbstractRepository
containing the current repositories of this instance. In other words: The constructor should
be able to use the given object to initialize a new instance of this class with the same intern properties.
getCurrentRepositories
in interface IPlugin
public final String[] getAllOutputPortNames()
getAllOutputPortNames
in interface IPlugin
public final String[] getAllInputPortNames()
getAllInputPortNames
in interface IPlugin
public final String[] getAllDisplayNames()
getAllDisplayNames
in interface IPlugin
public final String[] getAllRepositoryPortNames()
public final List<IPlugin.PluginInputPortReference> getConnectedPlugins(String outputPortName)
IPlugin
getConnectedPlugins
in interface IPlugin
outputPortName
- The name of the output port.
public final IPlugin.STATE getState()
getState
in interface IPlugin
public final boolean start()
public final void shutdown(boolean error)
public Set<AbstractPlugin> getIncomingPlugins(boolean transitive)
transitive
- Denotes whether indirect (i.e. non-immediate) providers should be returned
|
Kieker 1.6 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |