1 /**********************************************************************
2 * Copyright (c) 2012, 2013 Ericsson
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
10 * Bernd Hufmann - Initial API and implementation
11 * Simon Delisle - Updated for support of LTTng Tools 2.2
12 **********************************************************************/
13 package org
.eclipse
.linuxtools
.internal
.lttng2
.core
.control
.model
;
15 import java
.util
.List
;
19 * Interface for retrieval of trace channel information.
22 * @author Bernd Hufmann
24 public interface IChannelInfo
extends ITraceInfo
{
26 // ------------------------------------------------------------------------
28 // ------------------------------------------------------------------------
30 * Default value for overwrite mode.
32 public final static boolean DEFAULT_OVERWRITE_MODE
= false;
35 * @return the overwrite mode value.
37 boolean isOverwriteMode();
39 * Sets the overwrite mode value to the given mode.
40 * @param mode - mode to set.
42 void setOverwriteMode(boolean mode
);
45 * @return the sub-buffer size.
47 long getSubBufferSize();
49 * Sets the sub-buffer size to the given value.
50 * @param bufferSize - size to set to set.
52 void setSubBufferSize(long bufferSize
);
55 * @return the number of sub-buffers.
57 int getNumberOfSubBuffers();
59 * Sets the number of sub-buffers to the given value.
60 * @param numberOfSubBuffers - value to set.
62 void setNumberOfSubBuffers(int numberOfSubBuffers
);
65 * @return the switch timer interval.
67 long getSwitchTimer();
69 * Sets the switch timer interval to the given value.
70 * @param timer - timer value to set.
72 void setSwitchTimer(long timer
);
75 * @return the read timer interval.
79 * Sets the read timer interval to the given value.
80 * @param timer - timer value to set..
82 void setReadTimer(long timer
);
85 * @return the output type.
87 String
getOutputType();
89 * Sets the output type to the given value.
90 * @param type - type to set.
92 void setOutputType(String type
);
95 * @return the channel state (enabled or disabled).
97 TraceEnablement
getState();
99 * Sets the channel state (enablement) to the given value.
100 * @param state - state to set.
102 void setState(TraceEnablement state
);
104 * Sets the channel state (enablement) to the value specified by the given name.
105 * @param stateName - state to set.
107 void setState(String stateName
);
110 * @return all event information as array.
112 IEventInfo
[] getEvents();
114 * Sets the event information specified by given list.
115 * @param events - all event information to set.
117 void setEvents(List
<IEventInfo
> events
);
119 * Adds a single event information.
120 * @param event - event information to add.
122 void addEvent(IEventInfo event
);
124 * Sets the maximum size of trace files
125 * @param maxSizeTraceFiles - maximum size
127 void setMaxSizeTraceFiles(int maxSizeTraceFiles
);
129 * Sets the maximum number of trace files
130 * @param maxNumberTraceFiles - maximum number
132 void setMaxNumberTraceFiles(int maxNumberTraceFiles
);
134 * @return maximum size of trace files
136 int getMaxSizeTraceFiles();
138 * @return maximum number of trace files
140 int getMaxNumberTraceFiles();
142 * Sets per UID buffers
143 * @param buffersUID - enable or not
145 void setBuffersUID(boolean buffersUID
);
147 * @return the value of buffersUID (enable or not)
149 boolean isBuffersUID();
This page took 0.033004 seconds and 5 git commands to generate.