Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug fixing in order to run experiment
- Loading branch information
Showing
11 changed files
with
477 additions
and
463 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,32 @@ | ||
kieker.monitoring.name=JIRA | ||
kieker.monitoring.hostname= | ||
kieker.monitoring.metadata=true | ||
|
||
iobserve.analysis.source=org.iobserve.service.source.FileSourceCompositeStage | ||
org.iobserve.service.source.FileSourceCompositeStage.sourceDirectories=/Users/student/git/single-jpetstore-clustering-experiment/fixed/FishLover/kieker-20180328-213823-1404917594578390-UTC-- | ||
|
||
iobserve.analysis.traces=true | ||
iobserve.analysis.dataFlow=true | ||
|
||
iobserve.analysis.model.pcm.directory.db=/Users/student/git/single-jpetstore-clustering-experiment/db | ||
iobserve.analysis.model.pcm.directory.init=/Users/student/git/single-jpetstore-clustering-experiment/pcm | ||
|
||
# trace preparation (note they should be fixed) | ||
iobserve.analysis.behavior.IEntryCallTraceMatcher=org.iobserve.analysis.systems.jira.JIRACallTraceMatcher | ||
iobserve.analysis.behavior.IEntryCallAcceptanceMatcher=org.iobserve.analysis.systems.jira.JIRATraceAcceptanceMatcher | ||
iobserve.analysis.behavior.ITraceSignatureCleanupRewriter=org.iobserve.analysis.systems.jira.JIRASignatureCleanupRewriter | ||
iobserve.analysis.behavior.IModelGenerationFilterFactory=org.iobserve.analysis.systems.jpetstore.JPetStoreEntryCallRulesFactory | ||
|
||
iobserve.analysis.behavior.triggerInterval=1000 | ||
|
||
iobserve.analysis.behavior.sink.baseUrl=/Users/student/git/single-jpetstore-clustering-experiment/results | ||
iobserve.analysis.container.management.sink.visualizationUrl=http://localhost:8080 | ||
|
||
# Example Xmeans | ||
iobserve.analysis.behaviour.filter=org.iobserve.analysis.clustering.xmeans.XMeansBehaviorCompositeStage | ||
org.iobserve.analysis.behavior.clustering.xmeans.XMeansBehaviorCompositeStage.expectedUserGroups=1 | ||
org.iobserve.analysis.behavior.clustering.xmeans.XMeansBehaviorCompositeStage.variance=1 | ||
org.iobserve.analysis.behavior.clustering.xmeans.XMeansBehaviorCompositeStage.prefix=jira | ||
org.iobserve.analysis.behavior.clustering.xmeans.XMeansBehaviorCompositeStage.outputUrl=/Users/student/git/single-jpetstore-clustering-experiment/results | ||
org.iobserve.analysis.behavior.clustering.xmeans.XMeansBehaviorCompositeStage.representativeStrategy=org.iobserve.analysis.systems.jira.JIRARepresentativeStrategy | ||
kieker.monitoring.name=JIRA | ||
kieker.monitoring.hostname= | ||
kieker.monitoring.metadata=true | ||
iobserve.analysis.source=org.iobserve.service.source.FileSourceCompositeStage | ||
org.iobserve.service.source.FileSourceCompositeStage.sourceDirectories=/Users/student/git/single-jpetstore-clustering-experiment/fixed/FishLover/kieker-20180328-213823-1404917594578390-UTC-- | ||
iobserve.analysis.traces=true | ||
iobserve.analysis.dataFlow=false | ||
iobserve.analysis.model.pcm.directory.db=/Users/student/git/single-jpetstore-clustering-experiment/db | ||
iobserve.analysis.model.pcm.directory.init=/Users/student/git/single-jpetstore-clustering-experiment/pcm | ||
# trace preparation (note they should be fixed) | ||
iobserve.analysis.behavior.IEntryCallTraceMatcher=org.iobserve.analysis.systems.jira.JIRACallTraceMatcher | ||
iobserve.analysis.behavior.IEntryCallAcceptanceMatcher=org.iobserve.analysis.systems.jira.JIRATraceAcceptanceMatcher | ||
iobserve.analysis.behavior.ITraceSignatureCleanupRewriter=org.iobserve.analysis.systems.jira.JIRASignatureCleanupRewriter | ||
iobserve.analysis.behavior.IModelGenerationFilterFactory=org.iobserve.analysis.systems.jpetstore.JPetStoreEntryCallRulesFactory | ||
iobserve.analysis.behavior.triggerInterval=1000 | ||
iobserve.analysis.behavior.sink.baseUrl=/Users/student/git/single-jpetstore-clustering-experiment/results | ||
iobserve.analysis.container.management.sink.visualizationUrl=http://localhost:8080 | ||
# Example Xmeans | ||
iobserve.analysis.behavior.filter=org.iobserve.analysis.behavior.clustering.xmeans.XMeansBehaviorCompositeStage | ||
org.iobserve.analysis.behavior.clustering.xmeans.XMeansBehaviorCompositeStage.expectedUserGroups=1 | ||
org.iobserve.analysis.behavior.clustering.xmeans.XMeansBehaviorCompositeStage.variance=1 | ||
org.iobserve.analysis.behavior.clustering.xmeans.XMeansBehaviorCompositeStage.prefix=jira | ||
org.iobserve.analysis.behavior.clustering.xmeans.XMeansBehaviorCompositeStage.outputUrl=/Users/student/git/single-jpetstore-clustering-experiment/results | ||
org.iobserve.analysis.behavior.clustering.xmeans.XMeansBehaviorCompositeStage.representativeStrategy=org.iobserve.analysis.systems.jira.JIRARepresentativeStrategy | ||
# End Example |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
143 changes: 72 additions & 71 deletions
143
...serve/analysis/behavior/clustering/hierarchical/HierarchicalBehaviorModelAggregation.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,71 +1,72 @@ | ||
/*************************************************************************** | ||
* Copyright (C) 2018 iObserve Project (https://www.iobserve-devops.net) | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
***************************************************************************/ | ||
|
||
package org.iobserve.analysis.behavior.clustering.hierarchical; | ||
|
||
import org.iobserve.analysis.behavior.filter.BehaviorModelCreationStage; | ||
import org.iobserve.analysis.behavior.filter.VectorQuantizationClusteringStage; | ||
import org.iobserve.analysis.behavior.models.data.configuration.ISignatureCreationStrategy; | ||
import org.iobserve.analysis.sink.AbstractBehaviorModelOutputSink; | ||
import org.iobserve.analysis.sink.BehaviorModelSink; | ||
|
||
import teetime.framework.CompositeStage; | ||
import teetime.framework.InputPort; | ||
import weka.core.Instances; | ||
|
||
/** | ||
* @author Stephan Lenga | ||
* | ||
*/ | ||
public class HierarchicalBehaviorModelAggregation extends CompositeStage { | ||
//private final VectorQuantizationClusteringStage clustering; | ||
|
||
/** | ||
* Constructor configuration of the aggregation filters. | ||
* | ||
* @param namePrefix | ||
* name prefix | ||
* @param visualizationUrl | ||
* path or url for the sink | ||
* @param signatureCreationStrategy | ||
* signature creation strategy | ||
*/ | ||
public HierarchicalBehaviorModelAggregation(final String namePrefix, final String visualizationUrl, | ||
final ISignatureCreationStrategy signatureCreationStrategy) { | ||
final BehaviorModelCreationStage behaviorModelCreationStage = new BehaviorModelCreationStage(namePrefix); | ||
|
||
// NEED HierarchicalClusteringStage in analysis.behavior.filter | ||
//this.clustering = new HierarchicalClusteringStage(new HierarchicalClustering()); // Arguments | ||
// may be | ||
// necessary | ||
//this.connectPorts(this.clustering.getOutputPort(), behaviorModelCreationStage.getInputPort()); | ||
|
||
/** visualization integration. */ | ||
//final AbstractBehaviorModelOutputSink tIObserveUBM = new BehaviorModelSink(visualizationUrl, | ||
// signatureCreationStrategy); | ||
|
||
//this.connectPorts(behaviorModelCreationStage.getOutputPort(), tIObserveUBM.getInputPort()); | ||
} | ||
|
||
/** | ||
* Get input port. | ||
* | ||
* @return input port | ||
*/ | ||
public InputPort<Instances> getInputPort() { | ||
return this.clustering.getInputPort(); | ||
} | ||
} | ||
/*************************************************************************** | ||
* Copyright (C) 2018 iObserve Project (https://www.iobserve-devops.net) | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
***************************************************************************/ | ||
|
||
package org.iobserve.analysis.behavior.clustering.hierarchical; | ||
|
||
import org.iobserve.analysis.behavior.filter.BehaviorModelCreationStage; | ||
import org.iobserve.analysis.behavior.models.data.configuration.ISignatureCreationStrategy; | ||
|
||
import teetime.framework.CompositeStage; | ||
import teetime.framework.InputPort; | ||
import weka.core.Instances; | ||
|
||
/** | ||
* @author Stephan Lenga | ||
* | ||
*/ | ||
public class HierarchicalBehaviorModelAggregation extends CompositeStage { | ||
// private final VectorQuantizationClusteringStage clustering; | ||
|
||
/** | ||
* Constructor configuration of the aggregation filters. | ||
* | ||
* @param namePrefix | ||
* name prefix | ||
* @param visualizationUrl | ||
* path or url for the sink | ||
* @param signatureCreationStrategy | ||
* signature creation strategy | ||
*/ | ||
public HierarchicalBehaviorModelAggregation(final String namePrefix, final String visualizationUrl, | ||
final ISignatureCreationStrategy signatureCreationStrategy) { | ||
final BehaviorModelCreationStage behaviorModelCreationStage = new BehaviorModelCreationStage(namePrefix); | ||
|
||
// NEED HierarchicalClusteringStage in analysis.behavior.filter | ||
// this.clustering = new HierarchicalClusteringStage(new HierarchicalClustering()); // | ||
// Arguments | ||
// may be | ||
// necessary | ||
// this.connectPorts(this.clustering.getOutputPort(), | ||
// behaviorModelCreationStage.getInputPort()); | ||
|
||
/** visualization integration. */ | ||
// final AbstractBehaviorModelOutputSink tIObserveUBM = new | ||
// BehaviorModelSink(visualizationUrl, | ||
// signatureCreationStrategy); | ||
|
||
// this.connectPorts(behaviorModelCreationStage.getOutputPort(), | ||
// tIObserveUBM.getInputPort()); | ||
} | ||
|
||
/** | ||
* Get input port. | ||
* | ||
* @return input port | ||
*/ | ||
public InputPort<Instances> getInputPort() { | ||
return null; // this.clustering.getInputPort(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.