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