Commit | Line | Data |
---|---|---|
eb1bab5b | 1 | /********************************************************************** |
ba3a9bd2 | 2 | * Copyright (c) 2012, 2013 Ericsson |
d4514365 | 3 | * |
eb1bab5b BH |
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 | |
d4514365 BH |
8 | * |
9 | * Contributors: | |
eb1bab5b | 10 | * Bernd Hufmann - Initial API and implementation |
ba3a9bd2 | 11 | * Bernd Hufmann - Updated for support of LTTng Tools 2.1 |
eb1bab5b | 12 | **********************************************************************/ |
9315aeee | 13 | package org.eclipse.linuxtools.internal.lttng2.core.control.model; |
eb1bab5b | 14 | |
d4514365 BH |
15 | import java.util.List; |
16 | ||
eb1bab5b | 17 | /** |
eb1bab5b BH |
18 | * <p> |
19 | * Interface for retrieval of basic trace event information. | |
20 | * </p> | |
d4514365 | 21 | * |
dbd4432d | 22 | * @author Bernd Hufmann |
eb1bab5b BH |
23 | */ |
24 | public interface IBaseEventInfo extends ITraceInfo { | |
25 | ||
26 | /** | |
27 | * @return the trace event type | |
28 | */ | |
29 | public TraceEventType getEventType(); | |
d4514365 | 30 | |
eb1bab5b | 31 | /** |
d4514365 | 32 | * Sets the trace event type to the given type |
eb1bab5b BH |
33 | * @param type - type to set |
34 | */ | |
35 | public void setEventType(TraceEventType type); | |
d4514365 | 36 | |
eb1bab5b BH |
37 | /** |
38 | * Sets the trace event type to the type specified by the given name. | |
39 | * @param typeName - event type name | |
40 | */ | |
41 | public void setEventType(String typeName); | |
d4514365 | 42 | |
eb1bab5b BH |
43 | /** |
44 | * @return the trace event log level | |
45 | */ | |
46 | public TraceLogLevel getLogLevel(); | |
d4514365 | 47 | |
eb1bab5b | 48 | /** |
d4514365 | 49 | * Sets the trace event log level to the given level |
eb1bab5b BH |
50 | * @param level - event log level to set |
51 | */ | |
52 | public void setLogLevel(TraceLogLevel level); | |
d4514365 | 53 | |
eb1bab5b BH |
54 | /** |
55 | * Sets the trace event log level to the level specified by the given name. | |
56 | * @param levelName - event log level name | |
57 | */ | |
58 | public void setLogLevel(String levelName); | |
59 | ||
d4514365 BH |
60 | /** |
61 | * Returns the field information (if exists) | |
62 | * @return the field information or null | |
63 | */ | |
64 | public IFieldInfo[] getFields(); | |
65 | ||
66 | /** | |
67 | * @param field The field to add | |
68 | */ | |
69 | public void addField(IFieldInfo field); | |
70 | ||
71 | /** | |
72 | * Sets the fields | |
73 | * @param fields The fields | |
74 | */ | |
75 | public void setFields(List<IFieldInfo> fields); | |
76 | ||
77 | /** | |
78 | * Returns filter expression. | |
79 | * @return filter expression | |
80 | */ | |
81 | public String getFilterExpression(); | |
82 | ||
83 | /** | |
84 | * Sets the filter expression. | |
85 | * @param filter The filter expression to set | |
86 | */ | |
87 | public void setFilterExpression(String filter); | |
88 | ||
eb1bab5b | 89 | } |