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