Commit | Line | Data |
---|---|---|
eb1bab5b | 1 | /********************************************************************** |
a6e6f7b4 BH |
2 | * Copyright (c) 2012, 2013 Ericsson |
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 | **********************************************************************/ | |
9315aeee | 12 | package org.eclipse.linuxtools.internal.lttng2.core.control.model; |
eb1bab5b BH |
13 | |
14 | import java.util.List; | |
15 | ||
83051fc3 BH |
16 | import org.eclipse.linuxtools.internal.lttng2.core.control.model.impl.BufferType; |
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 BH |
44 | /** |
45 | * @return true if domain is kernel, false for UST | |
46 | */ | |
a6e6f7b4 BH |
47 | boolean isKernel(); |
48 | ||
bbb3538a | 49 | /** |
a6e6f7b4 | 50 | * Sets whether domain is Kernel domain or UST |
bbb3538a BH |
51 | * @param isKernel true for kernel, false for UST |
52 | */ | |
a6e6f7b4 | 53 | void setIsKernel(boolean isKernel); |
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 | } |