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