diff --git a/src/main/java/kieker/gui/common/domain/AbstractExecution.java b/src/main/java/kieker/gui/common/domain/AbstractExecution.java index 5ee4c195918db3ba748afa31687a6e20f5cda993..e979d6960bba36119ef9a93a7889a3554e2a4a6e 100644 --- a/src/main/java/kieker/gui/common/domain/AbstractExecution.java +++ b/src/main/java/kieker/gui/common/domain/AbstractExecution.java @@ -35,7 +35,7 @@ public abstract class AbstractExecution<T extends AbstractExecution<T>> { this.operation = operation; } - public int getTraceDepth() { + public final int getTraceDepth() { int traceDepth = this.children.isEmpty() ? 0 : 1; int maxChildrenTraceDepth = 0; @@ -47,7 +47,7 @@ public abstract class AbstractExecution<T extends AbstractExecution<T>> { return traceDepth; } - public int getTraceSize() { + public final int getTraceSize() { int traceSize = 1; for (final T child : this.children) { @@ -56,11 +56,11 @@ public abstract class AbstractExecution<T extends AbstractExecution<T>> { return traceSize; } - public boolean isFailed() { + public final boolean isFailed() { return (this.failedCause != null); } - public boolean containsFailure() { + public final boolean containsFailure() { if (this.isFailed()) { return true; } @@ -74,36 +74,36 @@ public abstract class AbstractExecution<T extends AbstractExecution<T>> { return false; } - public String getFailedCause() { + public final String getFailedCause() { return this.failedCause; } - public void setFailedCause(final String failedCause) { + public final void setFailedCause(final String failedCause) { this.failedCause = failedCause; } - public String getContainer() { + public final String getContainer() { return this.container; } - public String getComponent() { + public final String getComponent() { return this.component; } - public String getOperation() { + public final String getOperation() { return this.operation; } - public List<T> getChildren() { + public final List<T> getChildren() { return this.children; } - public void addExecutionEntry(final T entry) { + public final void addExecutionEntry(final T entry) { this.children.add(entry); entry.parent = (T) this; } - public T getParent() { + public final T getParent() { return this.parent; } diff --git a/src/main/java/kieker/gui/common/model/importer/stages/ReadingComposite.java b/src/main/java/kieker/gui/common/model/importer/stages/ReadingComposite.java index 531506dd2d476a4809dd11cd66d91ea6c291e310..1d7e5ac3e55b11e72745587f76084ca9c4533890 100644 --- a/src/main/java/kieker/gui/common/model/importer/stages/ReadingComposite.java +++ b/src/main/java/kieker/gui/common/model/importer/stages/ReadingComposite.java @@ -1,3 +1,19 @@ +/*************************************************************************** + * Copyright 2014 Kieker Project (http://kieker-monitoring.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 kieker.gui.common.model.importer.stages; import java.io.File; diff --git a/src/main/java/kieker/gui/common/model/importer/stages/TraceReconstructionComposite.java b/src/main/java/kieker/gui/common/model/importer/stages/TraceReconstructionComposite.java index 74c61e4556471f243173a5cb723656ee7069c42d..8d3feb558f08e59892201859989e5e5194d9e289 100644 --- a/src/main/java/kieker/gui/common/model/importer/stages/TraceReconstructionComposite.java +++ b/src/main/java/kieker/gui/common/model/importer/stages/TraceReconstructionComposite.java @@ -1,3 +1,19 @@ +/*************************************************************************** + * Copyright 2014 Kieker Project (http://kieker-monitoring.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 kieker.gui.common.model.importer.stages; import java.util.List; diff --git a/src/main/java/kieker/gui/subview/aggregatedtraces/util/AggregatedExecutionAvgDurationComparator.java b/src/main/java/kieker/gui/subview/aggregatedtraces/util/AggregatedExecutionAvgDurationComparator.java index 78b6cc18d1f97f0ef9c58c8cd4ed3756ead81747..6631d4a29de2bf56d89b94ecc98f618dc783459b 100644 --- a/src/main/java/kieker/gui/subview/aggregatedtraces/util/AggregatedExecutionAvgDurationComparator.java +++ b/src/main/java/kieker/gui/subview/aggregatedtraces/util/AggregatedExecutionAvgDurationComparator.java @@ -21,7 +21,7 @@ import kieker.gui.subview.util.AbstractDirectedComparator; import org.eclipse.swt.SWT; -public class AggregatedExecutionAvgDurationComparator extends AbstractDirectedComparator<AggregatedExecution> { +public final class AggregatedExecutionAvgDurationComparator extends AbstractDirectedComparator<AggregatedExecution> { private static final long serialVersionUID = 1L; diff --git a/src/main/java/kieker/gui/subview/aggregatedtraces/util/AggregatedExecutionCallComparator.java b/src/main/java/kieker/gui/subview/aggregatedtraces/util/AggregatedExecutionCallComparator.java index 01cc0c016c8abf2bbbf9a4625ff3ca7f46a58bee..032095808ba4d8f58982b9148604c135ad4b9a9a 100644 --- a/src/main/java/kieker/gui/subview/aggregatedtraces/util/AggregatedExecutionCallComparator.java +++ b/src/main/java/kieker/gui/subview/aggregatedtraces/util/AggregatedExecutionCallComparator.java @@ -21,7 +21,7 @@ import kieker.gui.subview.util.AbstractDirectedComparator; import org.eclipse.swt.SWT; -public class AggregatedExecutionCallComparator extends AbstractDirectedComparator<AggregatedExecution> { +public final class AggregatedExecutionCallComparator extends AbstractDirectedComparator<AggregatedExecution> { private static final long serialVersionUID = 1L; diff --git a/src/main/java/kieker/gui/subview/aggregatedtraces/util/AggregatedExecutionMaxDurationComparator.java b/src/main/java/kieker/gui/subview/aggregatedtraces/util/AggregatedExecutionMaxDurationComparator.java index 00c97763e3028de5de071187775201b7614155f4..639403216e1145dff69c3f8edaec73aa29dd74f7 100644 --- a/src/main/java/kieker/gui/subview/aggregatedtraces/util/AggregatedExecutionMaxDurationComparator.java +++ b/src/main/java/kieker/gui/subview/aggregatedtraces/util/AggregatedExecutionMaxDurationComparator.java @@ -21,7 +21,7 @@ import kieker.gui.subview.util.AbstractDirectedComparator; import org.eclipse.swt.SWT; -public class AggregatedExecutionMaxDurationComparator extends AbstractDirectedComparator<AggregatedExecution> { +public final class AggregatedExecutionMaxDurationComparator extends AbstractDirectedComparator<AggregatedExecution> { private static final long serialVersionUID = 1L; diff --git a/src/main/java/kieker/gui/subview/aggregatedtraces/util/AggregatedExecutionMinDurationComparator.java b/src/main/java/kieker/gui/subview/aggregatedtraces/util/AggregatedExecutionMinDurationComparator.java index c5cdff3b9941ff5ee48fcbb86e70a7f8cdb8dc22..8b8fb32384417819da44050955628d7561698ec1 100644 --- a/src/main/java/kieker/gui/subview/aggregatedtraces/util/AggregatedExecutionMinDurationComparator.java +++ b/src/main/java/kieker/gui/subview/aggregatedtraces/util/AggregatedExecutionMinDurationComparator.java @@ -21,7 +21,7 @@ import kieker.gui.subview.util.AbstractDirectedComparator; import org.eclipse.swt.SWT; -public class AggregatedExecutionMinDurationComparator extends AbstractDirectedComparator<AggregatedExecution> { +public final class AggregatedExecutionMinDurationComparator extends AbstractDirectedComparator<AggregatedExecution> { private static final long serialVersionUID = 1L; diff --git a/src/main/java/kieker/gui/subview/aggregatedtraces/util/AggregatedExecutionTotalDurationComparator.java b/src/main/java/kieker/gui/subview/aggregatedtraces/util/AggregatedExecutionTotalDurationComparator.java index 11ff7ef3fd550c6629a3ebbdb72d183d1443abcb..962d395270deb41a6129276d2755d7adcb5018f5 100644 --- a/src/main/java/kieker/gui/subview/aggregatedtraces/util/AggregatedExecutionTotalDurationComparator.java +++ b/src/main/java/kieker/gui/subview/aggregatedtraces/util/AggregatedExecutionTotalDurationComparator.java @@ -1,3 +1,19 @@ +/*************************************************************************** + * Copyright 2014 Kieker Project (http://kieker-monitoring.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 kieker.gui.subview.aggregatedtraces.util; import kieker.gui.common.domain.AggregatedExecution; @@ -5,7 +21,7 @@ import kieker.gui.subview.util.AbstractDirectedComparator; import org.eclipse.swt.SWT; -public class AggregatedExecutionTotalDurationComparator extends AbstractDirectedComparator<AggregatedExecution> { +public final class AggregatedExecutionTotalDurationComparator extends AbstractDirectedComparator<AggregatedExecution> { private static final long serialVersionUID = 1L; diff --git a/src/main/java/kieker/gui/subview/traces/View.java b/src/main/java/kieker/gui/subview/traces/View.java index adfd11356f60c4402aa2000de3c914ad017dfcdc..467e713a7737edc7f9ed1dcfce79c27bd8ff078a 100644 --- a/src/main/java/kieker/gui/subview/traces/View.java +++ b/src/main/java/kieker/gui/subview/traces/View.java @@ -47,7 +47,7 @@ import org.eclipse.swt.widgets.TreeColumn; import org.eclipse.swt.widgets.TreeItem; import org.eclipse.wb.swt.SWTResourceManager; -public class View implements Observer, ISubView { +public final class View implements Observer, ISubView { private final IModel<Execution> model; private final Model tracesSubViewModel; diff --git a/src/main/java/kieker/gui/subview/traces/util/ExecutionDurationComparator.java b/src/main/java/kieker/gui/subview/traces/util/ExecutionDurationComparator.java index 77e5379ff23b6e86cb90e1e1c15a7193bffa7282..4e7c38b8bab66617969488ba887d609533554e88 100644 --- a/src/main/java/kieker/gui/subview/traces/util/ExecutionDurationComparator.java +++ b/src/main/java/kieker/gui/subview/traces/util/ExecutionDurationComparator.java @@ -21,7 +21,7 @@ import kieker.gui.subview.util.AbstractDirectedComparator; import org.eclipse.swt.SWT; -public class ExecutionDurationComparator extends AbstractDirectedComparator<Execution> { +public final class ExecutionDurationComparator extends AbstractDirectedComparator<Execution> { private static final long serialVersionUID = 1L; diff --git a/src/main/java/kieker/gui/subview/traces/util/ExecutionTraceIDComparator.java b/src/main/java/kieker/gui/subview/traces/util/ExecutionTraceIDComparator.java index a8e459f7972960c30344da4c59f939af84cd754a..21b0e4f3f6c9a4d2ace531e0f2c832be6c31881b 100644 --- a/src/main/java/kieker/gui/subview/traces/util/ExecutionTraceIDComparator.java +++ b/src/main/java/kieker/gui/subview/traces/util/ExecutionTraceIDComparator.java @@ -21,7 +21,7 @@ import kieker.gui.subview.util.AbstractDirectedComparator; import org.eclipse.swt.SWT; -public class ExecutionTraceIDComparator extends AbstractDirectedComparator<Execution> { +public final class ExecutionTraceIDComparator extends AbstractDirectedComparator<Execution> { private static final long serialVersionUID = 1L; diff --git a/src/main/java/kieker/gui/subview/util/AbstractDataModelProxy.java b/src/main/java/kieker/gui/subview/util/AbstractDataModelProxy.java index 3b1d6b262f409574b33a7562fc97418432ec0bac..9f5d96f8cef9968ab0fb4a1fdb4425abb588f5dd 100644 --- a/src/main/java/kieker/gui/subview/util/AbstractDataModelProxy.java +++ b/src/main/java/kieker/gui/subview/util/AbstractDataModelProxy.java @@ -1,3 +1,19 @@ +/*************************************************************************** + * Copyright 2014 Kieker Project (http://kieker-monitoring.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 kieker.gui.subview.util; import java.util.Observable; diff --git a/src/main/java/kieker/gui/subview/util/ExecutionComponentComparator.java b/src/main/java/kieker/gui/subview/util/ExecutionComponentComparator.java index 3e84a7decacac77c51407e7ef0bcd6127d22772e..792298ffc8d809904bde118e16209668e0bc4a90 100644 --- a/src/main/java/kieker/gui/subview/util/ExecutionComponentComparator.java +++ b/src/main/java/kieker/gui/subview/util/ExecutionComponentComparator.java @@ -20,7 +20,7 @@ import kieker.gui.common.domain.AbstractExecution; import org.eclipse.swt.SWT; -public class ExecutionComponentComparator extends AbstractDirectedComparator<AbstractExecution<?>> { +public final class ExecutionComponentComparator extends AbstractDirectedComparator<AbstractExecution<?>> { private static final long serialVersionUID = 1L; diff --git a/src/main/java/kieker/gui/subview/util/ExecutionContainerComparator.java b/src/main/java/kieker/gui/subview/util/ExecutionContainerComparator.java index 25950ef044159d37039ffc6cdab8c4b4b4352a51..5b03329b07790c167b100c02272ae68ae0cadaa4 100644 --- a/src/main/java/kieker/gui/subview/util/ExecutionContainerComparator.java +++ b/src/main/java/kieker/gui/subview/util/ExecutionContainerComparator.java @@ -20,7 +20,7 @@ import kieker.gui.common.domain.AbstractExecution; import org.eclipse.swt.SWT; -public class ExecutionContainerComparator extends AbstractDirectedComparator<AbstractExecution<?>> { +public final class ExecutionContainerComparator extends AbstractDirectedComparator<AbstractExecution<?>> { private static final long serialVersionUID = 1L; diff --git a/src/main/java/kieker/gui/subview/util/ExecutionOperationComparator.java b/src/main/java/kieker/gui/subview/util/ExecutionOperationComparator.java index 16e039f01c25c1c3c4ca2c4bd31223f380cba27d..9eee013ebab5995886721a1084f4a0044c5c1106 100644 --- a/src/main/java/kieker/gui/subview/util/ExecutionOperationComparator.java +++ b/src/main/java/kieker/gui/subview/util/ExecutionOperationComparator.java @@ -20,7 +20,7 @@ import kieker.gui.common.domain.AbstractExecution; import org.eclipse.swt.SWT; -public class ExecutionOperationComparator extends AbstractDirectedComparator<AbstractExecution<?>> { +public final class ExecutionOperationComparator extends AbstractDirectedComparator<AbstractExecution<?>> { private static final long serialVersionUID = 1L; diff --git a/src/main/java/kieker/gui/subview/util/IModel.java b/src/main/java/kieker/gui/subview/util/IModel.java index cb4defdee4c6e53bf8fddbf4b71383aced869ca8..6871dce6f56bfc3240c23b833535b585409e8aea 100644 --- a/src/main/java/kieker/gui/subview/util/IModel.java +++ b/src/main/java/kieker/gui/subview/util/IModel.java @@ -1,3 +1,19 @@ +/*************************************************************************** + * Copyright 2014 Kieker Project (http://kieker-monitoring.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 kieker.gui.subview.util; import java.util.List; diff --git a/src/test/java/kieker/gui/common/model/importer/ImportAnalysisConfigurationTest.java b/src/test/java/kieker/gui/common/model/importer/ImportAnalysisConfigurationTest.java index b99884f7146b9791f6d0bb235c18587dabb6ab0b..4ebaf98e9d37dd9cdbde34181b5a32944a14d8a4 100644 --- a/src/test/java/kieker/gui/common/model/importer/ImportAnalysisConfigurationTest.java +++ b/src/test/java/kieker/gui/common/model/importer/ImportAnalysisConfigurationTest.java @@ -1,3 +1,19 @@ +/*************************************************************************** + * Copyright 2014 Kieker Project (http://kieker-monitoring.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 kieker.gui.common.model.importer; import static org.hamcrest.Matchers.empty; @@ -12,7 +28,7 @@ import org.junit.Test; import teetime.framework.Analysis; -public class ImportAnalysisConfigurationTest { +public final class ImportAnalysisConfigurationTest { @Test public void exampleLogImportShouldWork() { diff --git a/src/test/java/kieker/gui/common/model/importer/stages/TraceReconstructorTest.java b/src/test/java/kieker/gui/common/model/importer/stages/TraceReconstructorTest.java index cd3a13f97d5aaba8d032e454203a1d223cac4c19..badd659fbfcce8aa2e4f6add75bd985f16c8deed 100644 --- a/src/test/java/kieker/gui/common/model/importer/stages/TraceReconstructorTest.java +++ b/src/test/java/kieker/gui/common/model/importer/stages/TraceReconstructorTest.java @@ -1,3 +1,19 @@ +/*************************************************************************** + * Copyright 2014 Kieker Project (http://kieker-monitoring.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 kieker.gui.common.model.importer.stages; import static org.hamcrest.Matchers.hasSize; @@ -13,7 +29,6 @@ import kieker.common.record.flow.trace.operation.AfterOperationEvent; import kieker.common.record.flow.trace.operation.AfterOperationFailedEvent; import kieker.common.record.flow.trace.operation.BeforeOperationEvent; import kieker.gui.common.domain.Execution; -import kieker.gui.common.model.importer.stages.TraceReconstructor; import org.junit.Before; import org.junit.Test; @@ -22,7 +37,7 @@ import teetime.framework.pipe.IPipeFactory; import teetime.framework.pipe.SingleElementPipeFactory; import teetime.stage.CollectorSink; -public class TraceReconstructorTest { +public final class TraceReconstructorTest { private List<Execution> traceCollectorList; private TraceReconstructor reconstructorUnderTest;