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