lttng: Add snapshot support - LTTng Tools v2.3
[deliverable/tracecompass.git] / org.eclipse.linuxtools.lttng2.core / src / org / eclipse / linuxtools / internal / lttng2 / core / control / model / ISessionInfo.java
index 925151f427164b2e5e73ba4bf99fe377c6b24b3f..3fff6a2d56e70b66c15f80649e0d0a428b01b595 100644 (file)
@@ -1,5 +1,5 @@
 /**********************************************************************
- * Copyright (c) 2012 Ericsson
+ * Copyright (c) 2012, 2013 Ericsson
  *
  * All rights reserved. This program and the accompanying materials are
  * made available under the terms of the Eclipse Public License v1.0 which
@@ -8,6 +8,7 @@
  *
  * Contributors:
  *   Bernd Hufmann - Initial API and implementation
+ *   Bernd Hufmann - Updated for support of LTTng Tools 2.1
  **********************************************************************/
 package org.eclipse.linuxtools.internal.lttng2.core.control.model;
 
@@ -25,56 +26,75 @@ public interface ISessionInfo extends ITraceInfo {
     /**
      * @return the session state state (active or inactive).
      */
-    public TraceSessionState getSessionState();
+    TraceSessionState getSessionState();
     /**
      * Sets the session state  to the given value.
      * @param state - state to set.
      */
-    public void setSessionState(TraceSessionState state);
+    void setSessionState(TraceSessionState state);
 
     /**
      * Sets the event state to the value specified by the given name.
      * @param stateName - state to set.
      */
-    public void setSessionState(String stateName);
+    void setSessionState(String stateName);
 
     /**
      * @return path string where session is located.
      */
-    public String getSessionPath();
+    String getSessionPath();
 
     /**
      * Sets the path string (where session is located) to the given value.
      * @param path - session path to set.
      */
-    public void setSessionPath(String path);
+    void setSessionPath(String path);
 
     /**
      * @return all domain information as array.
      */
-    public IDomainInfo[] getDomains();
+    IDomainInfo[] getDomains();
 
     /**
      * Sets all domain information specified by given list.
      * @param domains - all domain information to set.
      */
-    public void setDomains(List<IDomainInfo> domains);
+    void setDomains(List<IDomainInfo> domains);
 
     /**
      * Adds a single domain information.
      * @param domainInfo domain information to add.
      */
-    public void addDomain(IDomainInfo domainInfo);
+    void addDomain(IDomainInfo domainInfo);
 
     /**
      * Returns if session is streamed over network
      * @return <code>true</code> if streamed over network else <code>false</code>
      */
-    public boolean isStreamedTrace();
+    boolean isStreamedTrace();
 
     /**
      * Sets whether the trace is streamed or not
      * @param isStreamedTrace <code>true</code> if streamed over network else <code>false</code>
      */
-    public void setStreamedTrace(boolean isStreamedTrace);
+    void setStreamedTrace(boolean isStreamedTrace);
+
+    /**
+     * Returns whether the session is snapshot session or not
+     * @return <code>true</code> if it is snapshot session else <code>false</code>
+     */
+    boolean isSnapshotSession();
+
+    /**
+     * Gets the snapshot information the session or null if it is not a
+     * snapshot session.
+     * @return snapshot information
+     */
+    ISnapshotInfo getSnapshotInfo();
+
+    /**
+     * Sets the snapshot information of the session
+     * @param setSnapshotInfo - the snapshot data to set.
+     */
+    void setSnapshotInfo(ISnapshotInfo setSnapshotInfo);
 }
This page took 0.025035 seconds and 5 git commands to generate.