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
;
17 import org
.eclipse
.linuxtools
.internal
.lttng2
.core
.control
.model
.impl
.BufferType
;
21 * Interface for retrieval of trace channel information.
24 * @author Bernd Hufmann
26 public interface IChannelInfo
extends ITraceInfo
{
28 // ------------------------------------------------------------------------
30 // ------------------------------------------------------------------------
32 * Default value for overwrite mode.
34 public final static boolean DEFAULT_OVERWRITE_MODE
= false;
37 * @return the overwrite mode value.
39 boolean isOverwriteMode();
41 * Sets the overwrite mode value to the given mode.
42 * @param mode - mode to set.
44 void setOverwriteMode(boolean mode
);
47 * @return the sub-buffer size.
49 long getSubBufferSize();
51 * Sets the sub-buffer size to the given value.
52 * @param bufferSize - size to set to set.
54 void setSubBufferSize(long bufferSize
);
57 * @return the number of sub-buffers.
59 int getNumberOfSubBuffers();
61 * Sets the number of sub-buffers to the given value.
62 * @param numberOfSubBuffers - value to set.
64 void setNumberOfSubBuffers(int numberOfSubBuffers
);
67 * @return the switch timer interval.
69 long getSwitchTimer();
71 * Sets the switch timer interval to the given value.
72 * @param timer - timer value to set.
74 void setSwitchTimer(long timer
);
77 * @return the read timer interval.
81 * Sets the read timer interval to the given value.
82 * @param timer - timer value to set..
84 void setReadTimer(long timer
);
87 * @return the output type.
89 String
getOutputType();
91 * Sets the output type to the given value.
92 * @param type - type to set.
94 void setOutputType(String type
);
97 * @return the channel state (enabled or disabled).
99 TraceEnablement
getState();
101 * Sets the channel state (enablement) to the given value.
102 * @param state - state to set.
104 void setState(TraceEnablement state
);
106 * Sets the channel state (enablement) to the value specified by the given name.
107 * @param stateName - state to set.
109 void setState(String stateName
);
112 * @return all event information as array.
114 IEventInfo
[] getEvents();
116 * Sets the event information specified by given list.
117 * @param events - all event information to set.
119 void setEvents(List
<IEventInfo
> events
);
121 * Adds a single event information.
122 * @param event - event information to add.
124 void addEvent(IEventInfo event
);
126 * Sets the maximum size of trace files
127 * @param maxSizeTraceFiles - maximum size
129 void setMaxSizeTraceFiles(int maxSizeTraceFiles
);
131 * Sets the maximum number of trace files
132 * @param maxNumberTraceFiles - maximum number
134 void setMaxNumberTraceFiles(int maxNumberTraceFiles
);
136 * @return maximum size of trace files
138 int getMaxSizeTraceFiles();
140 * @return maximum number of trace files
142 int getMaxNumberTraceFiles();
144 * Sets per UID buffers
145 * @param buffersUID - enable or not
147 void setBufferType(BufferType buffersUID
);
149 * @return the value of buffersUID (enable or not)
151 BufferType
getBufferType();
This page took 0.034525 seconds and 5 git commands to generate.