control: command support for enabling all tracepoints/syscalls
[deliverable/tracecompass.git] / lttng / org.eclipse.tracecompass.lttng2.control.ui.tests / stubs / org / eclipse / tracecompass / internal / lttng2 / control / stubs / dialogs / EnableEventsDialogStub.java
CommitLineData
a26d90be 1/**********************************************************************
60ae41e1 2 * Copyright (c) 2012, 2014 Ericsson
cfdb727a 3 *
a26d90be
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
cfdb727a
AM
8 *
9 * Contributors:
a26d90be
BH
10 * Bernd Hufmann - Initial API and implementation
11 **********************************************************************/
9bc60be7 12package org.eclipse.tracecompass.internal.lttng2.control.stubs.dialogs;
a26d90be
BH
13
14import java.util.ArrayList;
15import java.util.List;
16
9bc60be7
AM
17import org.eclipse.tracecompass.internal.lttng2.control.core.model.LogLevelType;
18import org.eclipse.tracecompass.internal.lttng2.control.core.model.TraceLogLevel;
19import org.eclipse.tracecompass.internal.lttng2.control.ui.views.dialogs.IEnableEventsDialog;
20import org.eclipse.tracecompass.internal.lttng2.control.ui.views.model.impl.TraceDomainComponent;
21import org.eclipse.tracecompass.internal.lttng2.control.ui.views.model.impl.TraceProviderGroup;
a26d90be
BH
22
23/**
cfdb727a 24 * Enable events dialog stub implementation.
a26d90be 25 */
cfdb727a 26@SuppressWarnings("javadoc")
a26d90be
BH
27public class EnableEventsDialogStub implements IEnableEventsDialog {
28
29 // ------------------------------------------------------------------------
30 // Attributes
31 // ------------------------------------------------------------------------
32 private boolean fIsKernel;
33 private boolean fIsTracePoints;
9ee91a86 34 private boolean fIsAllEvents;
a26d90be
BH
35 private boolean fIsAllTracePoints;
36 private boolean fIsSysCalls;
37 private boolean fIsDynamicProbe;
38 private String fProbeEventName;
39 private String fDynamicProbe;
40 private boolean fIsFunctionProbe;
41 private String fFunctionEventName;
42 private String fFunctionProbe;
43 private boolean fIsWildcard;
44 private String fWildcard;
45 private boolean fIsLogLevel;
46 private String fLogLevelEventName;
47 private TraceLogLevel fLogLevel;
48 private LogLevelType fLogLevelType;
d4514365 49 private String fFilter;
e0838ca1 50 private List<String> fNames = new ArrayList<>();
a26d90be
BH
51
52 // ------------------------------------------------------------------------
53 // Accessors
54 // ------------------------------------------------------------------------
55 public void setIsKernel(boolean isKernel) {
56 fIsKernel = isKernel;
57 }
58
9ee91a86
BH
59 public void setIsAllEvents(boolean isAllEvents) {
60 fIsAllEvents = isAllEvents;
61 }
62
a26d90be
BH
63 public void setIsTracePoints(boolean isTracePoints) {
64 fIsTracePoints = isTracePoints;
65 }
66
67 public void setIsAllTracePoints(boolean isAllTracePoints) {
68 fIsAllTracePoints = isAllTracePoints;
69 }
70
71 public void setIsSysCalls(boolean isSysCalls) {
72 this.fIsSysCalls = isSysCalls;
73 }
74
75 public void setIsDynamicProbe(boolean isDynamicProbe) {
76 fIsDynamicProbe = isDynamicProbe;
77 }
78
79 public void setProbeEventName(String probeEventName) {
80 fProbeEventName = probeEventName;
81 }
82
83 public void setDynamicProbe(String dynamicProbe) {
84 fDynamicProbe = dynamicProbe;
85 }
86
87 public void setIsFunctionProbe(boolean isFunctionProbe) {
88 fIsFunctionProbe = isFunctionProbe;
89 }
90
91 public void setFunctionEventName(String functionEventName) {
92 fFunctionEventName = functionEventName;
93 }
94
95 public void setFunctionProbe(String functionProbe) {
96 fFunctionProbe = functionProbe;
97 }
98
99 public void setIsWildcard(boolean isWildcard) {
100 fIsWildcard = isWildcard;
101 }
102
103 public void setWildcard(String wildcard) {
104 fWildcard = wildcard;
105 }
106
107 public void setIsLogLevel(boolean isLogLevel) {
108 fIsLogLevel = isLogLevel;
109 }
110
111 public void setLogLevelEventName(String logLevelEventName) {
112 fLogLevelEventName = logLevelEventName;
113 }
114
115 public void setLogLevel(TraceLogLevel logLevel) {
116 fLogLevel = logLevel;
117 }
118
119 public void setLogLevelType(LogLevelType logLevelType) {
120 fLogLevelType = logLevelType;
121 }
cfdb727a 122
a26d90be
BH
123 public void setNames(List<String> names) {
124 fNames = names;
125 }
126
d4514365
BH
127 public void setFilterExpression(String filter) {
128 fFilter = filter;
129 }
130
9ee91a86
BH
131 @Override
132 public boolean isAllEvents() {
133 return fIsAllEvents;
134 }
135
a26d90be
BH
136 @Override
137 public boolean isTracepoints() {
138 return fIsTracePoints;
139 }
140
141 @Override
142 public boolean isAllTracePoints() {
143 return fIsAllTracePoints;
144 }
145
146 @Override
147 public boolean isSysCalls() {
148 return fIsSysCalls;
149 }
150
151 @Override
152 public boolean isAllSysCalls() {
153 return fIsSysCalls;
154 }
155
156 @Override
157 public List<String> getEventNames() {
158 return fNames;
159 }
160
161 @Override
162 public boolean isDynamicProbe() {
163 return fIsDynamicProbe;
164 }
165
166 @Override
167 public String getProbeEventName() {
168 return fProbeEventName;
169 }
170
171 @Override
172 public String getProbeName() {
173 return fDynamicProbe;
174 }
175
176 @Override
177 public boolean isDynamicFunctionProbe() {
178 return fIsFunctionProbe;
179 }
180
181 @Override
182 public String getFunctionEventName() {
183 return fFunctionEventName;
184 }
185
186 @Override
187 public String getFunction() {
188 return fFunctionProbe;
189 }
190
191 @Override
192 public boolean isWildcard() {
193 return fIsWildcard;
194 }
195
196 @Override
197 public String getWildcard() {
198 return fWildcard;
199 }
200
201 @Override
202 public boolean isLogLevel() {
203 return fIsLogLevel;
204 }
205
206 @Override
207 public LogLevelType getLogLevelType() {
208 return fLogLevelType;
209 }
210
211 @Override
212 public TraceLogLevel getLogLevel() {
213 return fLogLevel;
214 }
215
216 @Override
217 public String getLogLevelEventName() {
218 return fLogLevelEventName;
219 }
220
221 @Override
222 public boolean isKernel() {
223 return fIsKernel;
224 }
225
226 @Override
227 public void setTraceProviderGroup(TraceProviderGroup providerGroup) {
228 }
229
230 @Override
231 public void setTraceDomainComponent(TraceDomainComponent domain) {
232 }
233
234 @Override
235 public int open() {
236 return 0;
237 }
d4514365
BH
238
239 @Override
240 public String getFilterExpression() {
241 return fFilter;
242 }
243
a26d90be 244}
This page took 0.080871 seconds and 5 git commands to generate.