Commit | Line | Data |
---|---|---|
b732adaa MS |
1 | /******************************************************************************* |
2 | * Copyright (c) 2014 Wind River Systems, Inc. and others | |
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 | * Markus Schorn - Initial API and implementation | |
11 | *******************************************************************************/ | |
12 | ||
13 | package org.eclipse.tracecompass.internal.lttng2.control.ui.views.model.impl; | |
14 | ||
15 | import java.util.Collections; | |
16 | import java.util.List; | |
17 | ||
18 | import org.eclipse.core.commands.ExecutionException; | |
19 | import org.eclipse.core.runtime.IProgressMonitor; | |
20 | import org.eclipse.tracecompass.internal.lttng2.control.core.model.IBaseEventInfo; | |
21 | import org.eclipse.tracecompass.internal.lttng2.control.core.model.IChannelInfo; | |
22 | import org.eclipse.tracecompass.internal.lttng2.control.core.model.ISessionInfo; | |
23 | import org.eclipse.tracecompass.internal.lttng2.control.core.model.ISnapshotInfo; | |
24 | import org.eclipse.tracecompass.internal.lttng2.control.core.model.IUstProviderInfo; | |
25 | import org.eclipse.tracecompass.internal.lttng2.control.core.model.LogLevelType; | |
26 | import org.eclipse.tracecompass.internal.lttng2.control.core.model.TraceLogLevel; | |
27 | import org.eclipse.tracecompass.internal.lttng2.control.ui.views.service.ILttngControlService; | |
28 | import org.eclipse.tracecompass.internal.lttng2.control.ui.views.service.LttngVersion; | |
29 | import org.osgi.framework.Version; | |
30 | ||
31 | class NullControlService implements ILttngControlService { | |
32 | ||
33 | @Override | |
34 | public LttngVersion getVersion() { | |
35 | return new LttngVersion(Version.emptyVersion.toString()); | |
36 | } | |
37 | ||
38 | @Override | |
39 | public String getVersionString() { | |
40 | return Version.emptyVersion.toString(); | |
41 | } | |
42 | ||
43 | @Override | |
44 | public boolean isVersionSupported(String version) { | |
45 | return false; | |
46 | } | |
47 | ||
48 | @Override | |
49 | public String[] getSessionNames(IProgressMonitor monitor) throws ExecutionException { | |
50 | return new String[0]; | |
51 | } | |
52 | ||
53 | @Override | |
54 | public ISessionInfo getSession(String sessionName, IProgressMonitor monitor) throws ExecutionException { | |
55 | return null; | |
56 | } | |
57 | ||
58 | @Override | |
59 | public ISnapshotInfo getSnapshotInfo(String sessionName, IProgressMonitor monitor) throws ExecutionException { | |
60 | return null; | |
61 | } | |
62 | ||
63 | @Override | |
64 | public List<IBaseEventInfo> getKernelProvider(IProgressMonitor monitor) throws ExecutionException { | |
65 | return Collections.emptyList(); | |
66 | } | |
67 | ||
68 | @Override | |
69 | public List<IUstProviderInfo> getUstProvider() throws ExecutionException { | |
70 | return Collections.emptyList(); | |
71 | } | |
72 | ||
73 | @Override | |
74 | public List<IUstProviderInfo> getUstProvider(IProgressMonitor monitor) throws ExecutionException { | |
75 | return Collections.emptyList(); | |
76 | } | |
77 | ||
78 | @Override | |
79 | public ISessionInfo createSession(ISessionInfo sessionInfo, IProgressMonitor monitor) throws ExecutionException { | |
80 | return null; | |
81 | } | |
82 | ||
83 | @Override | |
84 | public void destroySession(String sessionName, IProgressMonitor monitor) throws ExecutionException { | |
85 | } | |
86 | ||
87 | @Override | |
88 | public void startSession(String sessionName, IProgressMonitor monitor) throws ExecutionException { | |
89 | } | |
90 | ||
91 | @Override | |
92 | public void stopSession(String sessionName, IProgressMonitor monitor) throws ExecutionException { | |
93 | } | |
94 | ||
95 | @Override | |
96 | public void enableChannels(String sessionName, List<String> channelNames, boolean isKernel, IChannelInfo info, IProgressMonitor monitor) throws ExecutionException { | |
97 | } | |
98 | ||
99 | @Override | |
100 | public void disableChannels(String sessionName, List<String> channelNames, boolean isKernel, IProgressMonitor monitor) throws ExecutionException { | |
101 | } | |
102 | ||
103 | @Override | |
104 | public void enableEvents(String sessionName, String channelName, List<String> eventNames, boolean isKernel, String filterExpression, IProgressMonitor monitor) throws ExecutionException { | |
105 | } | |
106 | ||
107 | @Override | |
108 | public void enableSyscalls(String sessionName, String channelName, IProgressMonitor monitor) throws ExecutionException { | |
109 | } | |
110 | ||
111 | @Override | |
112 | public void enableProbe(String sessionName, String channelName, String eventName, boolean isFunction, String probe, IProgressMonitor monitor) throws ExecutionException { | |
113 | } | |
114 | ||
115 | @Override | |
116 | public void enableLogLevel(String sessionName, String channelName, String eventName, LogLevelType logLevelType, TraceLogLevel level, String filterExpression, IProgressMonitor monitor) throws ExecutionException { | |
117 | } | |
118 | ||
119 | @Override | |
120 | public void disableEvent(String sessionName, String channelName, List<String> eventNames, boolean isKernel, IProgressMonitor monitor) throws ExecutionException { | |
121 | } | |
122 | ||
123 | @Override | |
124 | public List<String> getContextList(IProgressMonitor monitor) throws ExecutionException { | |
125 | return Collections.emptyList(); | |
126 | } | |
127 | ||
128 | @Override | |
129 | public void addContexts(String sessionName, String channelName, String eventName, boolean isKernel, List<String> contexts, IProgressMonitor monitor) throws ExecutionException { | |
130 | } | |
131 | ||
132 | @Override | |
133 | public void calibrate(boolean isKernel, IProgressMonitor monitor) throws ExecutionException { | |
134 | } | |
135 | ||
136 | @Override | |
137 | public void recordSnapshot(String sessionName, IProgressMonitor monitor) throws ExecutionException { | |
138 | } | |
139 | ||
140 | @Override | |
141 | public void runCommands(IProgressMonitor monitor, List<String> commands) throws ExecutionException { | |
142 | } | |
143 | } |