analysis : Introduce ISegmentListener
authorJean-Christian Kouame <jean-christian.kouame@ericsson.com>
Tue, 23 Feb 2016 23:58:19 +0000 (18:58 -0500)
committerGenevieve Bastien <gbastien+lttng@versatic.net>
Thu, 17 Mar 2016 01:58:59 +0000 (21:58 -0400)
This patch add a listener for segments creation

Change-Id: I1da2cf3f6f91599ef4fc1a92f05306e90db0dc03
Signed-off-by: Jean-Christian Kouame <jean-christian.kouame@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/67195
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Genevieve Bastien <gbastien+lttng@versatic.net>
Reviewed-by: Genevieve Bastien <gbastien+lttng@versatic.net>
Reviewed-by: Hudson CI
tmf/org.eclipse.tracecompass.tmf.analysis.xml.core/META-INF/MANIFEST.MF
tmf/org.eclipse.tracecompass.tmf.analysis.xml.core/src/org/eclipse/tracecompass/internal/tmf/analysis/xml/core/pattern/stateprovider/ISegmentListener.java [new file with mode: 0644]

index 2111229a28778005f3172d0446fff0dfbd9a8006..a24da4c8da0ca045b2f26a0ebfe73abe367a452d 100644 (file)
@@ -13,6 +13,7 @@ Require-Bundle: org.eclipse.core.runtime,
  org.eclipse.tracecompass.tmf.core,
  org.eclipse.tracecompass.segmentstore.core
 Export-Package: org.eclipse.tracecompass.internal.tmf.analysis.xml.core;x-friends:="org.eclipse.tracecompass.tmf.analysis.xml.core.tests",
+ org.eclipse.tracecompass.internal.tmf.analysis.xml.core.pattern.stateprovider;x-internal:=true,
  org.eclipse.tracecompass.tmf.analysis.xml.core.model,
  org.eclipse.tracecompass.tmf.analysis.xml.core.model.readonly,
  org.eclipse.tracecompass.tmf.analysis.xml.core.model.readwrite,
diff --git a/tmf/org.eclipse.tracecompass.tmf.analysis.xml.core/src/org/eclipse/tracecompass/internal/tmf/analysis/xml/core/pattern/stateprovider/ISegmentListener.java b/tmf/org.eclipse.tracecompass.tmf.analysis.xml.core/src/org/eclipse/tracecompass/internal/tmf/analysis/xml/core/pattern/stateprovider/ISegmentListener.java
new file mode 100644 (file)
index 0000000..4c581cc
--- /dev/null
@@ -0,0 +1,33 @@
+/*******************************************************************************
+ * Copyright (c) 2016 Ericsson
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *******************************************************************************/
+package org.eclipse.tracecompass.internal.tmf.analysis.xml.core.pattern.stateprovider;
+
+import org.eclipse.jdt.annotation.NonNull;
+import org.eclipse.tracecompass.segmentstore.core.ISegment;
+
+/**
+ * Listener for segment creation.
+ * <p>
+ * Segment store analyses could build their store based on segments created by
+ * another analysis. In this case, the segment store analysis should implement
+ * this listener in order to receive the segments as they are created.
+ *
+ * @author Jean-Christian Kouame
+ *
+ */
+public interface ISegmentListener {
+
+    /**
+     * Called each time a segment will be created
+     *
+     * @param segment
+     *            The new segment
+     */
+    void onNewSegment(@NonNull ISegment segment);
+}
This page took 0.031071 seconds and 5 git commands to generate.