| 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.core.control.model; |
| 13 | |
| 14 | import java.util.List; |
| 15 | |
| 16 | /** |
| 17 | * <p> |
| 18 | * Interface for retrieval of basic trace event information. |
| 19 | * </p> |
| 20 | * |
| 21 | * @author Bernd Hufmann |
| 22 | */ |
| 23 | public interface IBaseEventInfo extends ITraceInfo { |
| 24 | |
| 25 | /** |
| 26 | * @return the trace event type |
| 27 | */ |
| 28 | public TraceEventType getEventType(); |
| 29 | |
| 30 | /** |
| 31 | * Sets the trace event type to the given type |
| 32 | * @param type - type to set |
| 33 | */ |
| 34 | public void setEventType(TraceEventType type); |
| 35 | |
| 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); |
| 41 | |
| 42 | /** |
| 43 | * @return the trace event log level |
| 44 | */ |
| 45 | public TraceLogLevel getLogLevel(); |
| 46 | |
| 47 | /** |
| 48 | * Sets the trace event log level to the given level |
| 49 | * @param level - event log level to set |
| 50 | */ |
| 51 | public void setLogLevel(TraceLogLevel level); |
| 52 | |
| 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 | |
| 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 | |
| 88 | } |