1 /**********************************************************************
2 * Copyright (c) 2012, 2014 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
.tracecompass
.internal
.lttng2
.control
.stubs
.dialogs
;
14 import java
.util
.ArrayList
;
15 import java
.util
.List
;
17 import org
.eclipse
.tracecompass
.internal
.lttng2
.control
.core
.model
.TraceDomainType
;
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
;
25 * Enable events dialog stub implementation.
27 @SuppressWarnings("javadoc")
28 public class EnableEventsDialogStub
implements IEnableEventsDialog
{
30 // ------------------------------------------------------------------------
32 // ------------------------------------------------------------------------
33 private boolean fIsTracePoints
;
34 private boolean fIsAllEvents
;
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
;
49 private String fFilter
;
50 private List
<String
> fNames
= new ArrayList
<>();
51 private List
<String
> fExcludedEvents
;
52 private TraceDomainType fDomain
;
54 // ------------------------------------------------------------------------
56 // ------------------------------------------------------------------------
57 public void setDomain(TraceDomainType domain
) {
61 public void setIsAllEvents(boolean isAllEvents
) {
62 fIsAllEvents
= isAllEvents
;
65 public void setIsTracePoints(boolean isTracePoints
) {
66 fIsTracePoints
= isTracePoints
;
69 public void setIsAllTracePoints(boolean isAllTracePoints
) {
70 fIsAllTracePoints
= isAllTracePoints
;
73 public void setIsSysCalls(boolean isSysCalls
) {
74 this.fIsSysCalls
= isSysCalls
;
77 public void setIsDynamicProbe(boolean isDynamicProbe
) {
78 fIsDynamicProbe
= isDynamicProbe
;
81 public void setProbeEventName(String probeEventName
) {
82 fProbeEventName
= probeEventName
;
85 public void setDynamicProbe(String dynamicProbe
) {
86 fDynamicProbe
= dynamicProbe
;
89 public void setIsFunctionProbe(boolean isFunctionProbe
) {
90 fIsFunctionProbe
= isFunctionProbe
;
93 public void setFunctionEventName(String functionEventName
) {
94 fFunctionEventName
= functionEventName
;
97 public void setFunctionProbe(String functionProbe
) {
98 fFunctionProbe
= functionProbe
;
101 public void setIsWildcard(boolean isWildcard
) {
102 fIsWildcard
= isWildcard
;
105 public void setWildcard(String wildcard
) {
106 fWildcard
= wildcard
;
109 public void setIsLogLevel(boolean isLogLevel
) {
110 fIsLogLevel
= isLogLevel
;
113 public void setLogLevelEventName(String logLevelEventName
) {
114 fLogLevelEventName
= logLevelEventName
;
117 public void setLogLevel(TraceLogLevel logLevel
) {
118 fLogLevel
= logLevel
;
121 public void setLogLevelType(LogLevelType logLevelType
) {
122 fLogLevelType
= logLevelType
;
125 public void setNames(List
<String
> names
) {
129 public void setFilterExpression(String filter
) {
134 public boolean isAllEvents() {
139 public boolean isTracepoints() {
140 return fIsTracePoints
;
144 public boolean isAllTracePoints() {
145 return fIsAllTracePoints
;
149 public boolean isSysCalls() {
154 public boolean isAllSysCalls() {
159 public List
<String
> getEventNames() {
164 public boolean isDynamicProbe() {
165 return fIsDynamicProbe
;
169 public String
getProbeEventName() {
170 return fProbeEventName
;
174 public String
getProbeName() {
175 return fDynamicProbe
;
179 public boolean isDynamicFunctionProbe() {
180 return fIsFunctionProbe
;
184 public String
getFunctionEventName() {
185 return fFunctionEventName
;
189 public String
getFunction() {
190 return fFunctionProbe
;
194 public boolean isWildcard() {
199 public String
getWildcard() {
204 public boolean isLogLevel() {
209 public LogLevelType
getLogLevelType() {
210 return fLogLevelType
;
214 public TraceLogLevel
getLogLevel() {
219 public String
getLogLevelEventName() {
220 return fLogLevelEventName
;
224 public TraceDomainType
getDomain() {
229 public void setTraceProviderGroup(TraceProviderGroup providerGroup
) {
233 public void setTraceDomainComponent(TraceDomainComponent domain
) {
242 public String
getFilterExpression() {
247 public List
<String
> getExcludedEvents() {
248 return fExcludedEvents
;