Add new LTTng commands (create/destroy/start/stop session,
[deliverable/tracecompass.git] / org.eclipse.linuxtools.lttng.ui.tests / stubs / org / eclipse / linuxtools / lttng / stubs / service / CommandShellFactory.java
CommitLineData
eb1bab5b
BH
1package org.eclipse.linuxtools.lttng.stubs.service;
2
3import org.eclipse.linuxtools.lttng.stubs.service.shells.GetSessionGarbageShell;
4import org.eclipse.linuxtools.lttng.stubs.service.shells.LttngNotExistsShell;
5import org.eclipse.linuxtools.lttng.stubs.service.shells.NoSessionNamesShell;
6import org.eclipse.linuxtools.lttng.stubs.service.shells.NoUstProviderShell;
bbb3538a 7import org.eclipse.linuxtools.lttng.stubs.service.shells.SessionCreationErrorsShell;
eb1bab5b
BH
8import org.eclipse.linuxtools.lttng.stubs.service.shells.SessionNotExistsShell;
9import org.eclipse.linuxtools.lttng.stubs.service.shells.SessionNamesShell;
10import org.eclipse.linuxtools.lttng.ui.views.control.service.ICommandShell;
11
12public class CommandShellFactory {
13
14 public static final int GET_SESSION_NAMES_COMMAND_SHELL = 0;
15
16 private static CommandShellFactory fInstance = null;
17
18 public static CommandShellFactory getInstance() {
19 if (fInstance == null) {
20 fInstance = new CommandShellFactory();
21 }
22 return fInstance;
23 }
24
25 public ICommandShell getShellForNoSessionNames() {
26 return new NoSessionNamesShell();
27 }
28
29 public ICommandShell getShellForSessionNames() {
30 return new SessionNamesShell();
31 }
32
33 public ICommandShell getShellForLttngNotExistsShell() {
34 return new LttngNotExistsShell();
35 }
36
37 public ICommandShell getShellForSessionNotExists() {
38 return new SessionNotExistsShell();
39 }
40
41 public ICommandShell getShellForSessionGarbage() {
42 return new GetSessionGarbageShell();
43 }
44
45 public ICommandShell getShellForNoUstProvider() {
46 return new NoUstProviderShell();
47 }
bbb3538a
BH
48
49 public ICommandShell getShellForSessionErrors() {
50 return new SessionCreationErrorsShell();
51 }
eb1bab5b 52}
This page took 0.025506 seconds and 5 git commands to generate.