lttng: Rename lttng2 feature/plugins to lttng2.control
[deliverable/tracecompass.git] / org.eclipse.linuxtools.lttng2.control.core / src / org / eclipse / linuxtools / internal / lttng2 / control / core / model / IBaseEventInfo.java
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.control.core.model;
14
15 import java.util.List;
16
17 /**
18 * <p>
19 * Interface for retrieval of basic trace event information.
20 * </p>
21 *
22 * @author Bernd Hufmann
23 */
24 public interface IBaseEventInfo extends ITraceInfo {
25
26 /**
27 * @return the trace event type
28 */
29 TraceEventType getEventType();
30
31 /**
32 * Sets the trace event type to the given type
33 * @param type - type to set
34 */
35 void setEventType(TraceEventType type);
36
37 /**
38 * Sets the trace event type to the type specified by the given name.
39 * @param typeName - event type name
40 */
41 void setEventType(String typeName);
42
43 /**
44 * @return the trace event log level
45 */
46 TraceLogLevel getLogLevel();
47
48 /**
49 * Sets the trace event log level to the given level
50 * @param level - event log level to set
51 */
52 void setLogLevel(TraceLogLevel level);
53
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 void setLogLevel(String levelName);
59
60 /**
61 * Returns the field information (if exists)
62 * @return the field information or null
63 */
64 IFieldInfo[] getFields();
65
66 /**
67 * @param field The field to add
68 */
69 void addField(IFieldInfo field);
70
71 /**
72 * Sets the fields
73 * @param fields The fields
74 */
75 void setFields(List<IFieldInfo> fields);
76
77 /**
78 * Returns filter expression.
79 * @return filter expression
80 */
81 String getFilterExpression();
82
83 /**
84 * Sets the filter expression.
85 * @param filter The filter expression to set
86 */
87 void setFilterExpression(String filter);
88
89 }
This page took 0.032049 seconds and 5 git commands to generate.