|
Kieker 1.9 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IAnalysisController
This is the interface to AnalysisController
, allowing not only to access read-methods but also to modify the analysis itself.
Field Summary |
---|
Fields inherited from interface kieker.analysis.IProjectContext |
---|
CONFIG_PROPERTY_NAME_PROJECT_NAME, CONFIG_PROPERTY_NAME_RECORDS_TIME_UNIT |
Method Summary | |
---|---|
void |
connect(AbstractPlugin src,
String outputPortName,
AbstractPlugin dst,
String inputPortName)
This method should be used to connect two plugins. |
void |
connect(AbstractPlugin plugin,
String repositoryPort,
AbstractRepository repository)
Connects the given repository to this plugin via the given name. |
Collection<AbstractFilterPlugin> |
getFilters()
Delivers an unmodifiable collection of all filters. |
Collection<AbstractReaderPlugin> |
getReaders()
Delivers an unmodifiable collection of all readers. |
Collection<AbstractRepository> |
getRepositories()
Delivers an unmodifiable collection of all repositories. |
void |
registerStateObserver(AnalysisController.IStateObserver stateObserver)
Registers the given instance as a new state observer. |
void |
run()
Starts an AnalysisController instance. |
void |
saveToFile(File file)
This method can be used to store the current configuration of this analysis controller in a specified file. |
void |
saveToFile(String pathname)
This method can be used to store the current configuration of this analysis controller in a specified file. |
void |
terminate()
Initiates a termination of the analysis. |
void |
terminate(boolean error)
Initiates a termination of the analysis. |
void |
unregisterStateObserver(AnalysisController.IStateObserver stateObserver)
Unregisters the given instance from the state observers. |
Methods inherited from interface kieker.analysis.IProjectContext |
---|
getCurrentConfiguration, getProjectName, getProperty, getState |
Method Detail |
---|
void registerStateObserver(AnalysisController.IStateObserver stateObserver)
stateObserver
- The observer to be registered.void unregisterStateObserver(AnalysisController.IStateObserver stateObserver)
stateObserver
- The observer to be unregistered.void saveToFile(File file) throws IOException, AnalysisConfigurationException
file
- The file in which the configuration will be stored.
IOException
- If an exception during the storage occurred.
AnalysisConfigurationException
- If the current configuration is somehow invalid.saveToFile(String)
void saveToFile(String pathname) throws IOException, AnalysisConfigurationException
#saveToFile(File)
.
pathname
- The pathname of the file in which the configuration will be stored.
IOException
- If an exception during the storage occurred.
AnalysisConfigurationException
- If the current configuration is somehow invalid.saveToFile(File)
void connect(AbstractPlugin src, String outputPortName, AbstractPlugin dst, String inputPortName) throws IllegalStateException, AnalysisConfigurationException
src
- The source plugin.outputPortName
- The output port of the source plugin.dst
- The destination plugin.inputPortName
- The input port of the destination port.
IllegalStateException
- If this instance has already been started or has already been terminated.
AnalysisConfigurationException
- If the port names or the given plugins are invalid or not compatible.void connect(AbstractPlugin plugin, String repositoryPort, AbstractRepository repository) throws IllegalStateException, AnalysisConfigurationException
plugin
- The plugin to be connected.repositoryPort
- The name of the port to connect the repository.repository
- The repository which should be used.
IllegalStateException
- If this instance has already been started or has already been terminated.
AnalysisConfigurationException
- If the port names or the given objects are invalid or not compatible.void run() throws IllegalStateException, AnalysisConfigurationException
AnalysisController
instance.
The method returns after all configured readers finished reading and all analysis plug-ins terminated
On errors during the initialization, Exceptions are thrown.
IllegalStateException
- If the current instance has already been started or already been terminated.
AnalysisConfigurationException
- If plugins with mandatory repositories have not been connected properly or couldn't be initialized.void terminate()
void terminate(boolean error)
error
- Determines whether this is a normal termination or an termination due to an error during the analysis.Collection<AbstractReaderPlugin> getReaders()
Collection<AbstractFilterPlugin> getFilters()
Collection<AbstractRepository> getRepositories()
|
Kieker 1.9 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |