| 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 | **********************************************************************/ |
| 12 | package org.eclipse.linuxtools.internal.lttng2.core.control.model; |
| 13 | |
| 14 | /** |
| 15 | * <p> |
| 16 | * Interface for retrieval of trace event information. |
| 17 | * </p> |
| 18 | * |
| 19 | * @author Bernd Hufmann |
| 20 | */ |
| 21 | public interface IEventInfo extends IBaseEventInfo { |
| 22 | |
| 23 | /** |
| 24 | * @return the event state (enabled or disabled). |
| 25 | */ |
| 26 | TraceEnablement getState(); |
| 27 | |
| 28 | /** |
| 29 | * Sets the event state (enablement) to the given value. |
| 30 | * @param state - state to set. |
| 31 | */ |
| 32 | void setState(TraceEnablement state); |
| 33 | |
| 34 | /** |
| 35 | * Sets the event state (enablement) to the value specified by the given name. |
| 36 | * @param stateName - state to set. |
| 37 | */ |
| 38 | void setState(String stateName); |
| 39 | |
| 40 | } |