Add support for streaming feature of LTTng Tools 2.1 (part 1)
[deliverable/tracecompass.git] / org.eclipse.linuxtools.lttng2.core / src / org / eclipse / linuxtools / internal / lttng2 / core / control / model / ISessionInfo.java
CommitLineData
eb1bab5b
BH
1/**********************************************************************
2 * Copyright (c) 2012 Ericsson
b0318660 3 *
eb1bab5b
BH
4 * All rights reserved. This program and the accompanying materials are
5 * made available under the terms of the Eclipse Public License v1.0 which
6 * accompanies this distribution, and is available at
7 * http://www.eclipse.org/legal/epl-v10.html
b0318660
AM
8 *
9 * Contributors:
eb1bab5b
BH
10 * Bernd Hufmann - Initial API and implementation
11 **********************************************************************/
9315aeee 12package org.eclipse.linuxtools.internal.lttng2.core.control.model;
eb1bab5b
BH
13
14import java.util.List;
15
16/**
eb1bab5b
BH
17 * <p>
18 * Interface for retrieval of trace session information.
19 * </p>
b0318660 20 *
dbd4432d 21 * @author Bernd Hufmann
eb1bab5b
BH
22 */
23public interface ISessionInfo extends ITraceInfo {
24
25 /**
26 * @return the session state state (active or inactive).
27 */
28 public TraceSessionState getSessionState();
29 /**
30 * Sets the session state to the given value.
31 * @param state - state to set.
32 */
33 public void setSessionState(TraceSessionState state);
b0318660 34
eb1bab5b
BH
35 /**
36 * Sets the event state to the value specified by the given name.
37 * @param stateName - state to set.
38 */
39 public void setSessionState(String stateName);
b0318660 40
eb1bab5b
BH
41 /**
42 * @return path string where session is located.
43 */
44 public String getSessionPath();
b0318660 45
eb1bab5b
BH
46 /**
47 * Sets the path string (where session is located) to the given value.
48 * @param path - session path to set.
49 */
50 public void setSessionPath(String path);
b0318660 51
eb1bab5b
BH
52 /**
53 * @return all domain information as array.
54 */
55 public IDomainInfo[] getDomains();
b0318660 56
eb1bab5b
BH
57 /**
58 * Sets all domain information specified by given list.
59 * @param domains - all domain information to set.
60 */
61 public void setDomains(List<IDomainInfo> domains);
b0318660 62
eb1bab5b
BH
63 /**
64 * Adds a single domain information.
b0318660 65 * @param domainInfo domain information to add.
eb1bab5b
BH
66 */
67 public void addDomain(IDomainInfo domainInfo);
f3b33d40
BH
68
69 /**
70 * Returns if session is streamed over network
71 * @return <code>true</code> if streamed over network else <code>false</code>
72 */
73 public boolean isStreamedTrace();
74
75 /**
76 * Sets whether the trace is streamed or not
77 * @param isStreamedTrace <code>true</code> if streamed over network else <code>false</code>
78 */
79 public void setStreamedTrace(boolean isStreamedTrace);
eb1bab5b 80}
This page took 0.066198 seconds and 5 git commands to generate.