Fix some null warnings
[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;
b732adaa
MS
24import org.eclipse.tracecompass.internal.lttng2.control.core.model.IBaseEventInfo;
25import org.eclipse.tracecompass.internal.lttng2.control.core.model.IChannelInfo;
26import org.eclipse.tracecompass.internal.lttng2.control.core.model.ISessionInfo;
27import org.eclipse.tracecompass.internal.lttng2.control.core.model.ISnapshotInfo;
28import org.eclipse.tracecompass.internal.lttng2.control.core.model.IUstProviderInfo;
29import org.eclipse.tracecompass.internal.lttng2.control.core.model.LogLevelType;
30import org.eclipse.tracecompass.internal.lttng2.control.core.model.TraceLogLevel;
31import org.eclipse.tracecompass.internal.lttng2.control.ui.views.service.ILttngControlService;
32import org.eclipse.tracecompass.internal.lttng2.control.ui.views.service.LttngVersion;
b732adaa
MS
33
34class NullControlService implements ILttngControlService {
35
36 @Override
37 public LttngVersion getVersion() {
364dcfaf 38 return LttngVersion.NULL_VERSION;
b732adaa
MS
39 }
40
41 @Override
42 public String getVersionString() {
364dcfaf 43 return checkNotNull(LttngVersion.NULL_VERSION.toString());
b732adaa
MS
44 }
45
46 @Override
47 public boolean isVersionSupported(String version) {
48 return false;
49 }
50
51 @Override
cbc46cc9 52 public List<String> getSessionNames(IProgressMonitor monitor) throws ExecutionException {
aa353506 53 return Collections.EMPTY_LIST;
b732adaa
MS
54 }
55
56 @Override
57 public ISessionInfo getSession(String sessionName, IProgressMonitor monitor) throws ExecutionException {
58 return null;
59 }
60
61 @Override
62 public ISnapshotInfo getSnapshotInfo(String sessionName, IProgressMonitor monitor) throws ExecutionException {
63 return null;
64 }
65
66 @Override
67 public List<IBaseEventInfo> getKernelProvider(IProgressMonitor monitor) throws ExecutionException {
aa353506 68 return Collections.EMPTY_LIST;
b732adaa
MS
69 }
70
71 @Override
72 public List<IUstProviderInfo> getUstProvider() throws ExecutionException {
aa353506 73 return Collections.EMPTY_LIST;
b732adaa
MS
74 }
75
76 @Override
77 public List<IUstProviderInfo> getUstProvider(IProgressMonitor monitor) throws ExecutionException {
aa353506 78 return Collections.EMPTY_LIST;
b732adaa
MS
79 }
80
81 @Override
82 public ISessionInfo createSession(ISessionInfo sessionInfo, IProgressMonitor monitor) throws ExecutionException {
83 return null;
84 }
85
86 @Override
87 public void destroySession(String sessionName, IProgressMonitor monitor) throws ExecutionException {
88 }
89
90 @Override
91 public void startSession(String sessionName, IProgressMonitor monitor) throws ExecutionException {
92 }
93
94 @Override
95 public void stopSession(String sessionName, IProgressMonitor monitor) throws ExecutionException {
96 }
97
98 @Override
99 public void enableChannels(String sessionName, List<String> channelNames, boolean isKernel, IChannelInfo info, IProgressMonitor monitor) throws ExecutionException {
100 }
101
102 @Override
103 public void disableChannels(String sessionName, List<String> channelNames, boolean isKernel, IProgressMonitor monitor) throws ExecutionException {
104 }
105
106 @Override
107 public void enableEvents(String sessionName, String channelName, List<String> eventNames, boolean isKernel, String filterExpression, IProgressMonitor monitor) throws ExecutionException {
108 }
109
110 @Override
111 public void enableSyscalls(String sessionName, String channelName, IProgressMonitor monitor) throws ExecutionException {
112 }
113
114 @Override
115 public void enableProbe(String sessionName, String channelName, String eventName, boolean isFunction, String probe, IProgressMonitor monitor) throws ExecutionException {
116 }
117
118 @Override
119 public void enableLogLevel(String sessionName, String channelName, String eventName, LogLevelType logLevelType, TraceLogLevel level, String filterExpression, IProgressMonitor monitor) throws ExecutionException {
120 }
121
122 @Override
123 public void disableEvent(String sessionName, String channelName, List<String> eventNames, boolean isKernel, IProgressMonitor monitor) throws ExecutionException {
124 }
125
126 @Override
127 public List<String> getContextList(IProgressMonitor monitor) throws ExecutionException {
aa353506 128 return Collections.EMPTY_LIST;
b732adaa
MS
129 }
130
131 @Override
132 public void addContexts(String sessionName, String channelName, String eventName, boolean isKernel, List<String> contexts, IProgressMonitor monitor) throws ExecutionException {
133 }
134
135 @Override
136 public void calibrate(boolean isKernel, IProgressMonitor monitor) throws ExecutionException {
137 }
138
139 @Override
140 public void recordSnapshot(String sessionName, IProgressMonitor monitor) throws ExecutionException {
141 }
142
143 @Override
144 public void runCommands(IProgressMonitor monitor, List<String> commands) throws ExecutionException {
145 }
ad9972cc
PJPG
146
147 @Override
f4da4c59 148 public void loadSession(@Nullable String inputPath, boolean isForce, IProgressMonitor monitor) throws ExecutionException {
ad9972cc 149 }
3d99d533
BH
150
151 @Override
152 public void saveSession(String session, String outputPath, boolean isForce, IProgressMonitor monitor) throws ExecutionException {
153 }
b732adaa 154}
This page took 0.057546 seconds and 5 git commands to generate.