| /********************************************************************** |
| * Copyright (c) 2012, 2014 Ericsson |
| * |
| * All rights reserved. This program and the accompanying materials are |
| * made available under the terms of the Eclipse Public License 2.0 which |
| * accompanies this distribution, and is available at |
| * https://www.eclipse.org/legal/epl-2.0/ |
| * |
| * SPDX-License-Identifier: EPL-2.0 |
| * |
| * Contributors: |
| * Bernd Hufmann - Initial API and implementation |
| **********************************************************************/ |
| package org.eclipse.tracecompass.internal.lttng2.control.core.model; |
| |
| /** |
| * <p> |
| * Interface for retrieval of trace event information. |
| * </p> |
| * |
| * @author Bernd Hufmann |
| */ |
| public interface IEventInfo extends IBaseEventInfo { |
| |
| /** |
| * @return the event state (enabled or disabled). |
| */ |
| TraceEnablement getState(); |
| |
| /** |
| * Sets the event state (enablement) to the given value. |
| * @param state - state to set. |
| */ |
| void setState(TraceEnablement state); |
| |
| /** |
| * Sets the event state (enablement) to the value specified by the given name. |
| * @param stateName - state to set. |
| */ |
| void setState(String stateName); |
| |
| /** |
| * Returns the log level type. |
| * @return log level type. |
| */ |
| LogLevelType getLogLevelType(); |
| |
| /** |
| * Sets the LogLevelType. |
| * @param type - log level type |
| */ |
| void setLogLevelType(LogLevelType type); |
| |
| /** |
| * Sets the LogLevelType based on given short name. |
| * @param shortName - short name of type |
| */ |
| void setLogLevelType(String shortName); |
| |
| } |