Commit | Line | Data |
---|---|---|
eb1bab5b | 1 | /********************************************************************** |
ed902a2b | 2 | * Copyright (c) 2012, 2014 Ericsson |
a6e6f7b4 | 3 | * |
eb1bab5b BH |
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 | |
a6e6f7b4 BH |
8 | * |
9 | * Contributors: | |
eb1bab5b BH |
10 | * Bernd Hufmann - Initial API and implementation |
11 | **********************************************************************/ | |
9bc60be7 | 12 | package org.eclipse.tracecompass.internal.lttng2.control.core.model; |
eb1bab5b BH |
13 | |
14 | import java.util.List; | |
15 | ||
9bc60be7 | 16 | import org.eclipse.tracecompass.internal.lttng2.control.core.model.impl.BufferType; |
83051fc3 | 17 | |
eb1bab5b | 18 | /** |
eb1bab5b BH |
19 | * <p> |
20 | * Interface for retrieval of trace domain information. | |
21 | * </p> | |
a6e6f7b4 | 22 | * |
dbd4432d | 23 | * @author Bernd Hufmann |
eb1bab5b | 24 | */ |
eb1bab5b | 25 | public interface IDomainInfo extends ITraceInfo { |
a6e6f7b4 | 26 | |
eb1bab5b | 27 | /** |
a6e6f7b4 | 28 | * @return information about all channels |
eb1bab5b | 29 | */ |
a6e6f7b4 BH |
30 | IChannelInfo[] getChannels(); |
31 | ||
eb1bab5b BH |
32 | /** |
33 | * Sets the channel information specified by given list. | |
34 | * @param channels - all channel information to set. | |
35 | */ | |
a6e6f7b4 BH |
36 | void setChannels(List<IChannelInfo> channels); |
37 | ||
eb1bab5b BH |
38 | /** |
39 | * Adds a single channel information. | |
40 | * @param channel - channel information to add. | |
41 | */ | |
a6e6f7b4 BH |
42 | void addChannel(IChannelInfo channel); |
43 | ||
bbb3538a | 44 | /** |
1bc37054 | 45 | * @return the domain type ({@link TraceDomainType}) |
bbb3538a | 46 | */ |
1bc37054 | 47 | TraceDomainType getDomain(); |
a6e6f7b4 | 48 | |
bbb3538a | 49 | /** |
1bc37054 BR |
50 | * Sets the domain type. |
51 | * @param domain - the domain type ({@link TraceDomainType}) | |
bbb3538a | 52 | */ |
1bc37054 | 53 | void setDomain(TraceDomainType domain); |
bbb3538a | 54 | |
ca8c54b3 SD |
55 | /** |
56 | * @return Information about the buffer type | |
57 | */ | |
83051fc3 | 58 | BufferType getBufferType(); |
ca8c54b3 SD |
59 | |
60 | /** | |
61 | * Sets the buffer type | |
62 | * | |
63 | * @param bufferType | |
64 | * The buffer type | |
65 | */ | |
83051fc3 | 66 | void setBufferType(BufferType bufferType); |
ca8c54b3 | 67 | |
eb1bab5b BH |
68 | |
69 | } |