1 /*******************************************************************************
2 * Copyright (c) 2011 Ericsson
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
10 * Patrick Tasse - Initial API and implementation
12 *******************************************************************************/
14 package org
.eclipse
.linuxtools
.internal
.lttng
.core
.tracecontrol
.utility
;
16 import java
.util
.HashSet
;
18 public class LiveTraceManager
{
20 private static final HashSet
<String
> fLiveTraceSet
= new HashSet
<String
>();
22 public static void setLiveTrace(String tracePath
, boolean live
) {
24 fLiveTraceSet
.add(tracePath
);
26 fLiveTraceSet
.remove(tracePath
);
30 public static boolean isLiveTrace(String tracePath
) {
31 return fLiveTraceSet
.contains(tracePath
);
This page took 0.055809 seconds and 5 git commands to generate.