tmf: lttngControl: new enum TraceChannelOutputType
[deliverable/tracecompass.git] / org.eclipse.linuxtools.lttng2.control.core / src / org / eclipse / linuxtools / internal / lttng2 / control / core / 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 10 * Bernd Hufmann - Initial API and implementation
e799e5f3 11 * Simon Delisle - Updated for support of LTTng Tools 2.2
eb1bab5b 12 **********************************************************************/
8e8c0226 13package org.eclipse.linuxtools.internal.lttng2.control.core.model;
eb1bab5b
BH
14
15import java.util.List;
16
8e8c0226 17import org.eclipse.linuxtools.internal.lttng2.control.core.model.impl.BufferType;
83051fc3 18
eb1bab5b 19/**
eb1bab5b
BH
20 * <p>
21 * Interface for retrieval of trace channel information.
22 * </p>
a6e6f7b4 23 *
dbd4432d 24 * @author Bernd Hufmann
eb1bab5b
BH
25 */
26public interface IChannelInfo extends ITraceInfo {
27
bbb3538a
BH
28 // ------------------------------------------------------------------------
29 // Constants
30 // ------------------------------------------------------------------------
31 /**
32 * Default value for overwrite mode.
33 */
34 public final static boolean DEFAULT_OVERWRITE_MODE = false;
a6e6f7b4 35
eb1bab5b
BH
36 /**
37 * @return the overwrite mode value.
38 */
a6e6f7b4 39 boolean isOverwriteMode();
eb1bab5b
BH
40 /**
41 * Sets the overwrite mode value to the given mode.
42 * @param mode - mode to set.
43 */
a6e6f7b4 44 void setOverwriteMode(boolean mode);
eb1bab5b
BH
45
46 /**
47 * @return the sub-buffer size.
48 */
a6e6f7b4 49 long getSubBufferSize();
eb1bab5b
BH
50 /**
51 * Sets the sub-buffer size to the given value.
52 * @param bufferSize - size to set to set.
53 */
a6e6f7b4 54 void setSubBufferSize(long bufferSize);
eb1bab5b
BH
55
56 /**
57 * @return the number of sub-buffers.
58 */
a6e6f7b4 59 int getNumberOfSubBuffers();
eb1bab5b
BH
60 /**
61 * Sets the number of sub-buffers to the given value.
62 * @param numberOfSubBuffers - value to set.
63 */
a6e6f7b4 64 void setNumberOfSubBuffers(int numberOfSubBuffers);
eb1bab5b
BH
65
66 /**
67 * @return the switch timer interval.
68 */
a6e6f7b4 69 long getSwitchTimer();
eb1bab5b
BH
70 /**
71 * Sets the switch timer interval to the given value.
72 * @param timer - timer value to set.
73 */
a6e6f7b4
BH
74 void setSwitchTimer(long timer);
75
eb1bab5b
BH
76 /**
77 * @return the read timer interval.
78 */
a6e6f7b4 79 long getReadTimer();
eb1bab5b
BH
80 /**
81 * Sets the read timer interval to the given value.
82 * @param timer - timer value to set..
83 */
a6e6f7b4 84 void setReadTimer(long timer);
eb1bab5b
BH
85
86 /**
87 * @return the output type.
88 */
0ad9fc89 89 TraceChannelOutputType getOutputType();
eb1bab5b
BH
90 /**
91 * Sets the output type to the given value.
92 * @param type - type to set.
93 */
a6e6f7b4 94 void setOutputType(String type);
0ad9fc89
JRJ
95 /**
96 * Sets the output type to the given value.
97 * @param type - type to set.
98 */
99 void setOutputType(TraceChannelOutputType type);
a6e6f7b4 100
eb1bab5b
BH
101 /**
102 * @return the channel state (enabled or disabled).
103 */
a6e6f7b4 104 TraceEnablement getState();
eb1bab5b
BH
105 /**
106 * Sets the channel state (enablement) to the given value.
107 * @param state - state to set.
108 */
a6e6f7b4 109 void setState(TraceEnablement state);
eb1bab5b
BH
110 /**
111 * Sets the channel state (enablement) to the value specified by the given name.
112 * @param stateName - state to set.
113 */
a6e6f7b4 114 void setState(String stateName);
eb1bab5b
BH
115
116 /**
117 * @return all event information as array.
118 */
a6e6f7b4 119 IEventInfo[] getEvents();
eb1bab5b
BH
120 /**
121 * Sets the event information specified by given list.
122 * @param events - all event information to set.
123 */
a6e6f7b4 124 void setEvents(List<IEventInfo> events);
eb1bab5b
BH
125 /**
126 * Adds a single event information.
127 * @param event - event information to add.
128 */
a6e6f7b4 129 void addEvent(IEventInfo event);
e799e5f3
SD
130 /**
131 * Sets the maximum size of trace files
132 * @param maxSizeTraceFiles - maximum size
133 */
134 void setMaxSizeTraceFiles(int maxSizeTraceFiles);
135 /**
136 * Sets the maximum number of trace files
137 * @param maxNumberTraceFiles - maximum number
138 */
139 void setMaxNumberTraceFiles(int maxNumberTraceFiles);
140 /**
141 * @return maximum size of trace files
142 */
143 int getMaxSizeTraceFiles();
144 /**
145 * @return maximum number of trace files
146 */
147 int getMaxNumberTraceFiles();
148 /**
149 * Sets per UID buffers
150 * @param buffersUID - enable or not
151 */
83051fc3 152 void setBufferType(BufferType buffersUID);
e799e5f3
SD
153 /**
154 * @return the value of buffersUID (enable or not)
155 */
83051fc3 156 BufferType getBufferType();
eb1bab5b 157}
This page took 0.0549 seconds and 5 git commands to generate.