Skip to content
Snippets Groups Projects
Commit 3917cb03 authored by Sören Henning's avatar Sören Henning
Browse files

first version of deployment dependency graphs with level: containers and

components
parent f23ab50b
No related branches found
No related tags found
1 merge request!19Trace aggr analysis
...@@ -6,9 +6,10 @@ package kieker.analysis; ...@@ -6,9 +6,10 @@ package kieker.analysis;
import java.io.File; import java.io.File;
import kieker.analysis.dev.ComponentStatisticsDecoratorStage; import kieker.analysis.dev.ComponentStatisticsDecoratorStage;
import kieker.analysis.dev.DotOperationsDependencyExportStage;
import kieker.analysis.dev.OperationsStatisticsDecoratorStage; import kieker.analysis.dev.OperationsStatisticsDecoratorStage;
import kieker.analysis.dev.SoftwareSystemCreatorStage; import kieker.analysis.dev.SoftwareSystemCreatorStage;
import kieker.analysis.dev.dependencygraphs.DeploymentDependencyGraphLevel;
import kieker.analysis.dev.dependencygraphs.DotOperationsDependencyExportStage;
import kieker.analysis.dev.dependencygraphs.OperationsDependencyGraphCreatorStage; import kieker.analysis.dev.dependencygraphs.OperationsDependencyGraphCreatorStage;
import kieker.analysis.domain.AggregatedTrace; import kieker.analysis.domain.AggregatedTrace;
import kieker.analysis.domain.Trace; import kieker.analysis.domain.Trace;
...@@ -99,16 +100,25 @@ public class TraceAnalysisConfiguration extends Configuration { ...@@ -99,16 +100,25 @@ public class TraceAnalysisConfiguration extends Configuration {
ComponentStatisticsDecoratorStage componentsStatisticsDecorator = new ComponentStatisticsDecoratorStage(); ComponentStatisticsDecoratorStage componentsStatisticsDecorator = new ComponentStatisticsDecoratorStage();
Distributor<SoftwareSystem> x2SoftwareSystemDistributor = new Distributor<>(new CopyByReferenceStrategy()); // TODO name required Distributor<SoftwareSystem> x2SoftwareSystemDistributor = new Distributor<>(new CopyByReferenceStrategy()); // TODO name required
// ContainerStatisticsDecoratorStage containersStatisticsDecorator = new ContainerStatisticsDecoratorStage(); //TODO remove // ContainerStatisticsDecoratorStage containersStatisticsDecorator = new ContainerStatisticsDecoratorStage(); //TODO remove
OperationsDependencyGraphCreatorStage operationsDependencyGraphCreator = new OperationsDependencyGraphCreatorStage(); // TODO temp OperationsDependencyGraphCreatorStage operationsDependencyGraphCreator = new OperationsDependencyGraphCreatorStage(DeploymentDependencyGraphLevel.OPERATION);
DotOperationsDependencyExportStage dotDependencyExporter = new DotOperationsDependencyExportStage(graphFilesOutputDir); DotOperationsDependencyExportStage dotOperationsDependencyExporter = new DotOperationsDependencyExportStage(graphFilesOutputDir);
OperationsDependencyGraphCreatorStage componentDependencyGraphCreator = new OperationsDependencyGraphCreatorStage(DeploymentDependencyGraphLevel.COMPONENT);
DotOperationsDependencyExportStage dotComponentDependencyExporter = new DotOperationsDependencyExportStage(graphFilesOutputDir);
OperationsDependencyGraphCreatorStage containerDependencyGraphCreator = new OperationsDependencyGraphCreatorStage(DeploymentDependencyGraphLevel.CONTAINER);
DotOperationsDependencyExportStage dotContainerDependencyExporter = new DotOperationsDependencyExportStage(graphFilesOutputDir);
super.connectPorts(aggregatedTraceDistributor.getNewOutputPort(), softwareSystemCreator.getInputPort()); super.connectPorts(aggregatedTraceDistributor.getNewOutputPort(), softwareSystemCreator.getInputPort());
super.connectPorts(softwareSystemCreator.getOutputPort(), operationsStatisticsDecorator.getInputPort()); super.connectPorts(softwareSystemCreator.getOutputPort(), operationsStatisticsDecorator.getInputPort());
super.connectPorts(operationsStatisticsDecorator.getOutputPort(), x1SoftwareSystemDistributor.getInputPort()); super.connectPorts(operationsStatisticsDecorator.getOutputPort(), x1SoftwareSystemDistributor.getInputPort());
super.connectPorts(x1SoftwareSystemDistributor.getNewOutputPort(), operationsDependencyGraphCreator.getInputPort());
super.connectPorts(operationsDependencyGraphCreator.getOutputPort(), dotOperationsDependencyExporter.getInputPort());
// super.connectPorts(x1SoftwareSystemDistributor.getNewOutputPort(), componentsStatisticsDecorator.getInputPort()); // super.connectPorts(x1SoftwareSystemDistributor.getNewOutputPort(), componentsStatisticsDecorator.getInputPort());
// super.connectPorts(componentsStatisticsDecorator.getOutputPort(), x2SoftwareSystemDistributor.getInputPort()); // super.connectPorts(componentsStatisticsDecorator.getOutputPort(), x2SoftwareSystemDistributor.getInputPort());
super.connectPorts(x1SoftwareSystemDistributor.getNewOutputPort(), operationsDependencyGraphCreator.getInputPort()); super.connectPorts(x1SoftwareSystemDistributor.getNewOutputPort(), x2SoftwareSystemDistributor.getInputPort());
super.connectPorts(operationsDependencyGraphCreator.getOutputPort(), dotDependencyExporter.getInputPort()); super.connectPorts(x2SoftwareSystemDistributor.getNewOutputPort(), componentDependencyGraphCreator.getInputPort());
super.connectPorts(componentDependencyGraphCreator.getOutputPort(), dotComponentDependencyExporter.getInputPort());
super.connectPorts(x2SoftwareSystemDistributor.getNewOutputPort(), containerDependencyGraphCreator.getInputPort());
super.connectPorts(containerDependencyGraphCreator.getOutputPort(), dotContainerDependencyExporter.getInputPort());
/* /*
* *
......
...@@ -32,7 +32,17 @@ public class DeploymentDependencyGraphCreator { ...@@ -32,7 +32,17 @@ public class DeploymentDependencyGraphCreator {
public Graph create(final SoftwareSystem softwareSystem) { public Graph create(final SoftwareSystem softwareSystem) {
Graph graph = new GraphImpl(); Graph graph = new GraphImpl();
graph.setName("OperationsDependencyGraph"); // TODO switch (this.depth) {
case COMPONENT:
graph.setName("DeploymentComponentsDependencyGraph");
break;
case CONTAINER:
graph.setName("DeploymentContainersDependencyGraph");
break;
case OPERATION:
graph.setName("DeploymentOperationsDependencyGraph");
break;
}
for (Container container : softwareSystem.getContainers()) { for (Container container : softwareSystem.getContainers()) {
......
package kieker.analysis.dev; package kieker.analysis.dev.dependencygraphs;
import java.util.function.Function; import java.util.function.Function;
......
package kieker.analysis.dev.dependencygraphs; package kieker.analysis.dev.dependencygraphs;
import java.util.Collection;
import kieker.analysis.domain.systemdependency.SoftwareSystem; import kieker.analysis.domain.systemdependency.SoftwareSystem;
import kieker.analysis.util.graph.Graph; import kieker.analysis.util.graph.Graph;
...@@ -9,8 +11,12 @@ public class OperationsDependencyGraphCreatorStage extends AbstractTransformatio ...@@ -9,8 +11,12 @@ public class OperationsDependencyGraphCreatorStage extends AbstractTransformatio
private final DeploymentDependencyGraphCreator graphCreator; private final DeploymentDependencyGraphCreator graphCreator;
public OperationsDependencyGraphCreatorStage() { public OperationsDependencyGraphCreatorStage(final DeploymentDependencyGraphLevel depth) {
this.graphCreator = new DeploymentDependencyGraphCreator(DeploymentDependencyGraphLevel.OPERATION); this.graphCreator = new DeploymentDependencyGraphCreator(depth);
}
public OperationsDependencyGraphCreatorStage(final DeploymentDependencyGraphLevel depth, final Collection<DeploymentDependencyGraphLevel> relations) {
this.graphCreator = new DeploymentDependencyGraphCreator(depth, relations);
} }
@Override @Override
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment