Commit | Line | Data |
---|---|---|
eb1bab5b BH |
1 | /********************************************************************** |
2 | * Copyright (c) 2012 Ericsson | |
3 | * | |
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 | |
8 | * | |
9 | * Contributors: | |
10 | * Bernd Hufmann - Initial API and implementation | |
11 | **********************************************************************/ | |
31a6a4e4 | 12 | package org.eclipse.linuxtools.internal.lttng.ui.views.control.model; |
eb1bab5b BH |
13 | |
14 | import java.util.List; | |
15 | ||
16 | /** | |
17 | * <b><u>ISessionInfo</u></b> | |
18 | * <p> | |
19 | * Interface for retrieval of trace session information. | |
20 | * </p> | |
21 | */ | |
22 | public interface ISessionInfo extends ITraceInfo { | |
23 | ||
24 | /** | |
25 | * @return the session state state (active or inactive). | |
26 | */ | |
27 | public TraceSessionState getSessionState(); | |
28 | /** | |
29 | * Sets the session state to the given value. | |
30 | * @param state - state to set. | |
31 | */ | |
32 | public void setSessionState(TraceSessionState state); | |
33 | ||
34 | /** | |
35 | * Sets the event state to the value specified by the given name. | |
36 | * @param stateName - state to set. | |
37 | */ | |
38 | public void setSessionState(String stateName); | |
39 | ||
40 | /** | |
41 | * @return path string where session is located. | |
42 | */ | |
43 | public String getSessionPath(); | |
44 | ||
45 | /** | |
46 | * Sets the path string (where session is located) to the given value. | |
47 | * @param path - session path to set. | |
48 | */ | |
49 | public void setSessionPath(String path); | |
50 | ||
51 | /** | |
52 | * @return all domain information as array. | |
53 | */ | |
54 | public IDomainInfo[] getDomains(); | |
55 | ||
56 | /** | |
57 | * Sets all domain information specified by given list. | |
58 | * @param domains - all domain information to set. | |
59 | */ | |
60 | public void setDomains(List<IDomainInfo> domains); | |
61 | ||
62 | /** | |
63 | * Adds a single domain information. | |
64 | * @param domain - domain information to add. | |
65 | */ | |
66 | public void addDomain(IDomainInfo domainInfo); | |
67 | } |