tmf: Use tabs in statistics view for each traces
[deliverable/tracecompass.git] / org.eclipse.linuxtools.lttng.core / src / org / eclipse / linuxtools / internal / lttng / core / tracecontrol / utility / LiveTraceManager.java
1 /*******************************************************************************
2 * Copyright (c) 2011 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 * Patrick Tasse - Initial API and implementation
11 *
12 *******************************************************************************/
13
14 package org.eclipse.linuxtools.internal.lttng.core.tracecontrol.utility;
15
16 import java.util.HashSet;
17
18 public class LiveTraceManager {
19
20 private static final HashSet<String> fLiveTraceSet = new HashSet<String>();
21
22 public static void setLiveTrace(String tracePath, boolean live) {
23 if (live) {
24 fLiveTraceSet.add(tracePath);
25 } else {
26 fLiveTraceSet.remove(tracePath);
27 }
28 }
29
30 public static boolean isLiveTrace(String tracePath) {
31 return fLiveTraceSet.contains(tracePath);
32 }
33 }
This page took 0.036845 seconds and 5 git commands to generate.