1 /**********************************************************************
2 * Copyright (c) 2012 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 **********************************************************************/
12 package org
.eclipse
.linuxtools
.lttng
.ui
.views
.control
.model
;
14 import java
.util
.List
;
17 * <b><u>IChannelInfo</u></b>
19 * Interface for retrieval of trace channel information.
22 public interface IChannelInfo
extends ITraceInfo
{
25 * @return the overwrite mode value.
27 public boolean isOverwriteMode();
29 * Sets the overwrite mode value to the given mode.
30 * @param mode - mode to set.
32 public void setOverwriteMode(boolean mode
);
35 * @return the sub-buffer size.
37 public long getSubBufferSize();
39 * Sets the sub-buffer size to the given value.
40 * @param bufferSize - size to set to set.
42 public void setSubBufferSize(long bufferSize
);
45 * @return the number of sub-buffers.
47 public int getNumberOfSubBuffers();
49 * Sets the number of sub-buffers to the given value.
50 * @param numberOfSubBuffers - value to set.
52 public void setNumberOfSubBuffers(int numberOfSubBuffers
);
55 * @return the switch timer interval.
57 public long getSwitchTimer();
59 * Sets the switch timer interval to the given value.
60 * @param timer - timer value to set.
62 public void setSwitchTimer(long timer
);
65 * @return the read timer interval.
67 public long getReadTimer();
69 * Sets the read timer interval to the given value.
70 * @param timer - timer value to set..
72 public void setReadTimer(long timer
);
75 * @return the output type.
77 public String
getOutputType();
79 * Sets the output type to the given value.
80 * @param type - type to set.
82 public void setOutputType(String type
);
85 * @return the channel state (enabled or disabled).
87 public TraceEnablement
getState();
89 * Sets the channel state (enablement) to the given value.
90 * @param state - state to set.
92 public void setState(TraceEnablement state
);
94 * Sets the channel state (enablement) to the value specified by the given name.
95 * @param stateName - state to set.
97 public void setState(String stateName
);
100 * @return all event information as array.
102 public IEventInfo
[] getEvents();
104 * Sets the event information specified by given list.
105 * @param events - all event information to set.
107 public void setEvents(List
<IEventInfo
> events
);
109 * Adds a single event information.
110 * @param event - event information to add.
112 public void addEvent(IEventInfo event
);
This page took 0.033792 seconds and 6 git commands to generate.