lttng: Fix ControlViewTest
[deliverable/tracecompass.git] / lttng / org.eclipse.tracecompass.lttng2.control.ui / src / org / eclipse / tracecompass / internal / lttng2 / control / ui / views / model / impl / NullControlService.java
CommitLineData
b732adaa 1/*******************************************************************************
364dcfaf 2 * Copyright (c) 2014, 2015 Wind River Systems, Inc. and others
b732adaa
MS
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
364dcfaf 11 * Bernd Hufmann - Update for null safety
b732adaa
MS
12 *******************************************************************************/
13
14package org.eclipse.tracecompass.internal.lttng2.control.ui.views.model.impl;
15
364dcfaf
BH
16import static org.eclipse.tracecompass.common.core.NonNullUtils.checkNotNull;
17
b732adaa
MS
18import java.util.Collections;
19import java.util.List;
20
21import org.eclipse.core.commands.ExecutionException;
22import org.eclipse.core.runtime.IProgressMonitor;
f4da4c59 23import org.eclipse.jdt.annotation.Nullable;
1bc37054 24import org.eclipse.tracecompass.internal.lttng2.control.core.model.TraceDomainType;
b732adaa
MS
25import org.eclipse.tracecompass.internal.lttng2.control.core.model.IBaseEventInfo;
26import org.eclipse.tracecompass.internal.lttng2.control.core.model.IChannelInfo;
27import org.eclipse.tracecompass.internal.lttng2.control.core.model.ISessionInfo;
28import org.eclipse.tracecompass.internal.lttng2.control.core.model.ISnapshotInfo;
a20452b1 29import org.eclipse.tracecompass.internal.lttng2.control.core.model.ITraceLogLevel;
b732adaa
MS
30import org.eclipse.tracecompass.internal.lttng2.control.core.model.IUstProviderInfo;
31import org.eclipse.tracecompass.internal.lttng2.control.core.model.LogLevelType;
b732adaa
MS
32import org.eclipse.tracecompass.internal.lttng2.control.ui.views.service.ILttngControlService;
33import org.eclipse.tracecompass.internal.lttng2.control.ui.views.service.LttngVersion;
b732adaa
MS
34
35class NullControlService implements ILttngControlService {
36
37 @Override
38 public LttngVersion getVersion() {
364dcfaf 39 return LttngVersion.NULL_VERSION;
b732adaa
MS
40 }
41
42 @Override
43 public String getVersionString() {
364dcfaf 44 return checkNotNull(LttngVersion.NULL_VERSION.toString());
b732adaa
MS
45 }
46
47 @Override
48 public boolean isVersionSupported(String version) {
49 return false;
50 }
51
52 @Override
cbc46cc9 53 public List<String> getSessionNames(IProgressMonitor monitor) throws ExecutionException {
aa353506 54 return Collections.EMPTY_LIST;
b732adaa
MS
55 }
56
57 @Override
58 public ISessionInfo getSession(String sessionName, IProgressMonitor monitor) throws ExecutionException {
59 return null;
60 }
61
62 @Override
63 public ISnapshotInfo getSnapshotInfo(String sessionName, IProgressMonitor monitor) throws ExecutionException {
64 return null;
65 }
66
67 @Override
68 public List<IBaseEventInfo> getKernelProvider(IProgressMonitor monitor) throws ExecutionException {
aa353506 69 return Collections.EMPTY_LIST;
b732adaa
MS
70 }
71
72 @Override
73 public List<IUstProviderInfo> getUstProvider() throws ExecutionException {
aa353506 74 return Collections.EMPTY_LIST;
b732adaa
MS
75 }
76
77 @Override
78 public List<IUstProviderInfo> getUstProvider(IProgressMonitor monitor) throws ExecutionException {
aa353506 79 return Collections.EMPTY_LIST;
b732adaa
MS
80 }
81
82 @Override
83 public ISessionInfo createSession(ISessionInfo sessionInfo, IProgressMonitor monitor) throws ExecutionException {
84 return null;
85 }
86
87 @Override
88 public void destroySession(String sessionName, IProgressMonitor monitor) throws ExecutionException {
89 }
90
91 @Override
92 public void startSession(String sessionName, IProgressMonitor monitor) throws ExecutionException {
93 }
94
95 @Override
96 public void stopSession(String sessionName, IProgressMonitor monitor) throws ExecutionException {
97 }
98
99 @Override
1bc37054 100 public void enableChannels(String sessionName, List<String> channelNames, TraceDomainType domain, IChannelInfo info, IProgressMonitor monitor) throws ExecutionException {
b732adaa
MS
101 }
102
103 @Override
1bc37054 104 public void disableChannels(String sessionName, List<String> channelNames, TraceDomainType domain, IProgressMonitor monitor) throws ExecutionException {
b732adaa
MS
105 }
106
107 @Override
1bc37054 108 public void enableEvents(String sessionName, String channelName, List<String> eventNames, TraceDomainType domain, String filterExpression, List<String> excludedEvents, IProgressMonitor monitor) throws ExecutionException {
b732adaa
MS
109 }
110
111 @Override
207ff523 112 public void enableSyscalls(String sessionName, String channelName, List<String> eventNames, IProgressMonitor monitor) throws ExecutionException {
b732adaa
MS
113 }
114
115 @Override
116 public void enableProbe(String sessionName, String channelName, String eventName, boolean isFunction, String probe, IProgressMonitor monitor) throws ExecutionException {
117 }
118
119 @Override
a20452b1 120 public void enableLogLevel(String sessionName, String channelName, List<String> eventName, LogLevelType logLevelType, ITraceLogLevel level, String filterExpression, TraceDomainType domain, IProgressMonitor monitor) throws ExecutionException {
b732adaa
MS
121 }
122
123 @Override
1bc37054 124 public void disableEvent(String sessionName, String channelName, List<String> eventNames, TraceDomainType domain, IProgressMonitor monitor) throws ExecutionException {
b732adaa
MS
125 }
126
127 @Override
128 public List<String> getContextList(IProgressMonitor monitor) throws ExecutionException {
aa353506 129 return Collections.EMPTY_LIST;
b732adaa
MS
130 }
131
132 @Override
1bc37054 133 public void addContexts(String sessionName, String channelName, String eventName, TraceDomainType domain, List<String> contexts, IProgressMonitor monitor) throws ExecutionException {
b732adaa
MS
134 }
135
b732adaa
MS
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 }
ad9972cc
PJPG
143
144 @Override
f4da4c59 145 public void loadSession(@Nullable String inputPath, boolean isForce, IProgressMonitor monitor) throws ExecutionException {
ad9972cc 146 }
3d99d533
BH
147
148 @Override
149 public void saveSession(String session, String outputPath, boolean isForce, IProgressMonitor monitor) throws ExecutionException {
150 }
b732adaa 151}
This page took 0.061417 seconds and 5 git commands to generate.