lttng: fix sonar warnings about redundant modifier in interfaces
[deliverable/tracecompass.git] / org.eclipse.linuxtools.lttng2.core / src / org / eclipse / linuxtools / internal / lttng2 / core / control / model / ISessionInfo.java
CommitLineData
eb1bab5b 1/**********************************************************************
ba3a9bd2 2 * Copyright (c) 2012, 2013 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 10 * Bernd Hufmann - Initial API and implementation
ba3a9bd2 11 * Bernd Hufmann - Updated for support of LTTng Tools 2.1
eb1bab5b 12 **********************************************************************/
9315aeee 13package org.eclipse.linuxtools.internal.lttng2.core.control.model;
eb1bab5b
BH
14
15import java.util.List;
16
17/**
eb1bab5b
BH
18 * <p>
19 * Interface for retrieval of trace session information.
20 * </p>
b0318660 21 *
dbd4432d 22 * @author Bernd Hufmann
eb1bab5b
BH
23 */
24public interface ISessionInfo extends ITraceInfo {
25
26 /**
27 * @return the session state state (active or inactive).
28 */
a6e6f7b4 29 TraceSessionState getSessionState();
eb1bab5b
BH
30 /**
31 * Sets the session state to the given value.
32 * @param state - state to set.
33 */
a6e6f7b4 34 void setSessionState(TraceSessionState state);
b0318660 35
eb1bab5b
BH
36 /**
37 * Sets the event state to the value specified by the given name.
38 * @param stateName - state to set.
39 */
a6e6f7b4 40 void setSessionState(String stateName);
b0318660 41
eb1bab5b
BH
42 /**
43 * @return path string where session is located.
44 */
a6e6f7b4 45 String getSessionPath();
b0318660 46
eb1bab5b
BH
47 /**
48 * Sets the path string (where session is located) to the given value.
49 * @param path - session path to set.
50 */
a6e6f7b4 51 void setSessionPath(String path);
b0318660 52
eb1bab5b
BH
53 /**
54 * @return all domain information as array.
55 */
a6e6f7b4 56 IDomainInfo[] getDomains();
b0318660 57
eb1bab5b
BH
58 /**
59 * Sets all domain information specified by given list.
60 * @param domains - all domain information to set.
61 */
a6e6f7b4 62 void setDomains(List<IDomainInfo> domains);
b0318660 63
eb1bab5b
BH
64 /**
65 * Adds a single domain information.
b0318660 66 * @param domainInfo domain information to add.
eb1bab5b 67 */
a6e6f7b4 68 void addDomain(IDomainInfo domainInfo);
f3b33d40
BH
69
70 /**
71 * Returns if session is streamed over network
72 * @return <code>true</code> if streamed over network else <code>false</code>
73 */
a6e6f7b4 74 boolean isStreamedTrace();
f3b33d40
BH
75
76 /**
77 * Sets whether the trace is streamed or not
78 * @param isStreamedTrace <code>true</code> if streamed over network else <code>false</code>
79 */
a6e6f7b4 80 void setStreamedTrace(boolean isStreamedTrace);
eb1bab5b 81}
This page took 0.038483 seconds and 5 git commands to generate.