| 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 | import java.util.List; |
| 15 | |
| 16 | /** |
| 17 | * <p> |
| 18 | * Interface for retrieval of UST provider information. |
| 19 | * </p> |
| 20 | * |
| 21 | * @author Bernd Hufmann |
| 22 | */ |
| 23 | public interface IUstProviderInfo extends ITraceInfo { |
| 24 | |
| 25 | /** |
| 26 | * @return the process ID of the UST provider. |
| 27 | */ |
| 28 | int getPid(); |
| 29 | |
| 30 | /** |
| 31 | * Sets the process ID of the UST provider to the given value. |
| 32 | * @param pid - process ID to set |
| 33 | */ |
| 34 | void setPid(int pid); |
| 35 | |
| 36 | /** |
| 37 | * @return all event information as array. |
| 38 | */ |
| 39 | IBaseEventInfo[] getEvents(); |
| 40 | |
| 41 | /** |
| 42 | * Sets the event information specified by given list. |
| 43 | * @param events - all event information to set. |
| 44 | */ |
| 45 | void setEvents(List<IBaseEventInfo> events); |
| 46 | |
| 47 | /** |
| 48 | * Adds a single event information. |
| 49 | * @param event - event information to add. |
| 50 | */ |
| 51 | void addEvent(IBaseEventInfo event); |
| 52 | } |