| 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 | **********************************************************************/ |
| 12 | package org.eclipse.linuxtools.internal.lttng2.ui.views.control.dialogs; |
| 13 | |
| 14 | import java.util.List; |
| 15 | |
| 16 | import org.eclipse.linuxtools.internal.lttng2.core.control.model.LogLevelType; |
| 17 | import org.eclipse.linuxtools.internal.lttng2.core.control.model.TraceLogLevel; |
| 18 | |
| 19 | /** |
| 20 | * <p> |
| 21 | * Interface for providing information about UST events to be enabled. |
| 22 | * </p> |
| 23 | * |
| 24 | * @author Bernd Hufmann |
| 25 | */ |
| 26 | public interface IEnableUstEvents { |
| 27 | |
| 28 | // ------------------------------------------------------------------------ |
| 29 | // Accessors |
| 30 | // ------------------------------------------------------------------------ |
| 31 | |
| 32 | /** |
| 33 | * @return a flag whether the tracepoints shall be configured. |
| 34 | */ |
| 35 | public boolean isTracepoints(); |
| 36 | |
| 37 | /** |
| 38 | * @return a flag indicating whether all tracepoints shall be enabled or not. |
| 39 | */ |
| 40 | public boolean isAllTracePoints(); |
| 41 | |
| 42 | /** |
| 43 | * @return a list of event names to be enabled. |
| 44 | */ |
| 45 | public List<String> getEventNames(); |
| 46 | |
| 47 | /** |
| 48 | * @return a flag whether events using wildcards should be enabled |
| 49 | */ |
| 50 | public boolean isWildcard(); |
| 51 | |
| 52 | /** |
| 53 | * @return a wildcard |
| 54 | */ |
| 55 | public String getWildcard(); |
| 56 | |
| 57 | /** |
| 58 | * @return a flag whether events using log levels should be enabled |
| 59 | */ |
| 60 | public boolean isLogLevel(); |
| 61 | |
| 62 | /** |
| 63 | * @return a log level type (loglevel or loglevel-only) |
| 64 | */ |
| 65 | public LogLevelType getLogLevelType(); |
| 66 | |
| 67 | /** |
| 68 | * @return a log level |
| 69 | */ |
| 70 | public TraceLogLevel getLogLevel(); |
| 71 | |
| 72 | /** |
| 73 | * @return a event name for the log level enable action |
| 74 | */ |
| 75 | public String getLogLevelEventName(); |
| 76 | |
| 77 | } |