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