Update LTTng User Guide for time range and event range selection
[deliverable/tracecompass.git] / org.eclipse.linuxtools.lttng2.core / src / org / eclipse / linuxtools / internal / lttng2 / core / control / model / IChannelInfo.java
CommitLineData
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 12package org.eclipse.linuxtools.internal.lttng2.core.control.model;
eb1bab5b
BH
13
14import java.util.List;
15
16/**
eb1bab5b
BH
17 * <p>
18 * Interface for retrieval of trace channel information.
19 * </p>
a6e6f7b4 20 *
dbd4432d 21 * @author Bernd Hufmann
eb1bab5b
BH
22 */
23public interface IChannelInfo extends ITraceInfo {
24
bbb3538a
BH
25 // ------------------------------------------------------------------------
26 // Constants
27 // ------------------------------------------------------------------------
28 /**
29 * Default value for overwrite mode.
30 */
31 public final static boolean DEFAULT_OVERWRITE_MODE = false;
32 /**
a6e6f7b4 33 * Default value for sub-buffer size for a UST channel.
bbb3538a
BH
34 */
35 public final static long DEFAULT_SUB_BUFFER_SIZE_UST = 4096L;
36 /**
a6e6f7b4 37 * Default value for sub-buffer size for a Kernel channel.
bbb3538a
BH
38 */
39 public final static long DEFAULT_SUB_BUFFER_SIZE_KERNEL = 262144L;
40 /**
a6e6f7b4 41 * Default value for number of sub-buffer a UST channel.
bbb3538a
BH
42 */
43 public final static int DEFAULT_NUMBER_OF_SUB_BUFFERS_UST = 8;
44 /**
a6e6f7b4 45 * Default value for number of sub-buffer a Kernel channel.
bbb3538a
BH
46 */
47 public final static int DEFAULT_NUMBER_OF_SUB_BUFFERS_KERNEL = 4;
48 /**
a6e6f7b4 49 * Default value for number of the switch timer interval.
bbb3538a
BH
50 */
51 public final static long DEFAULT_SWITCH_TIMER = 0;
52 /**
a6e6f7b4 53 * Default value for number of the read timer interval.
bbb3538a
BH
54 */
55 public final static long DEFAULT_READ_TIMER = 200;
a6e6f7b4 56
eb1bab5b
BH
57 /**
58 * @return the overwrite mode value.
59 */
a6e6f7b4 60 boolean isOverwriteMode();
eb1bab5b
BH
61 /**
62 * Sets the overwrite mode value to the given mode.
63 * @param mode - mode to set.
64 */
a6e6f7b4 65 void setOverwriteMode(boolean mode);
eb1bab5b
BH
66
67 /**
68 * @return the sub-buffer size.
69 */
a6e6f7b4 70 long getSubBufferSize();
eb1bab5b
BH
71 /**
72 * Sets the sub-buffer size to the given value.
73 * @param bufferSize - size to set to set.
74 */
a6e6f7b4 75 void setSubBufferSize(long bufferSize);
eb1bab5b
BH
76
77 /**
78 * @return the number of sub-buffers.
79 */
a6e6f7b4 80 int getNumberOfSubBuffers();
eb1bab5b
BH
81 /**
82 * Sets the number of sub-buffers to the given value.
83 * @param numberOfSubBuffers - value to set.
84 */
a6e6f7b4 85 void setNumberOfSubBuffers(int numberOfSubBuffers);
eb1bab5b
BH
86
87 /**
88 * @return the switch timer interval.
89 */
a6e6f7b4 90 long getSwitchTimer();
eb1bab5b
BH
91 /**
92 * Sets the switch timer interval to the given value.
93 * @param timer - timer value to set.
94 */
a6e6f7b4
BH
95 void setSwitchTimer(long timer);
96
eb1bab5b
BH
97 /**
98 * @return the read timer interval.
99 */
a6e6f7b4 100 long getReadTimer();
eb1bab5b
BH
101 /**
102 * Sets the read timer interval to the given value.
103 * @param timer - timer value to set..
104 */
a6e6f7b4 105 void setReadTimer(long timer);
eb1bab5b
BH
106
107 /**
108 * @return the output type.
109 */
a6e6f7b4 110 String getOutputType();
eb1bab5b
BH
111 /**
112 * Sets the output type to the given value.
113 * @param type - type to set.
114 */
a6e6f7b4
BH
115 void setOutputType(String type);
116
eb1bab5b
BH
117 /**
118 * @return the channel state (enabled or disabled).
119 */
a6e6f7b4 120 TraceEnablement getState();
eb1bab5b
BH
121 /**
122 * Sets the channel state (enablement) to the given value.
123 * @param state - state to set.
124 */
a6e6f7b4 125 void setState(TraceEnablement state);
eb1bab5b
BH
126 /**
127 * Sets the channel state (enablement) to the value specified by the given name.
128 * @param stateName - state to set.
129 */
a6e6f7b4 130 void setState(String stateName);
eb1bab5b
BH
131
132 /**
133 * @return all event information as array.
134 */
a6e6f7b4 135 IEventInfo[] getEvents();
eb1bab5b
BH
136 /**
137 * Sets the event information specified by given list.
138 * @param events - all event information to set.
139 */
a6e6f7b4 140 void setEvents(List<IEventInfo> events);
eb1bab5b
BH
141 /**
142 * Adds a single event information.
143 * @param event - event information to add.
144 */
a6e6f7b4 145 void addEvent(IEventInfo event);
eb1bab5b 146}
This page took 0.047926 seconds and 5 git commands to generate.