Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
ModelService |
|
| 1.0;1 |
1 | /* | |
2 | * Copyright (c) MuleSoft, Inc. All rights reserved. http://www.mulesoft.com | |
3 | * The software in this package is published under the terms of the CPAL v1.0 | |
4 | * license, a copy of which has been included with this distribution in the | |
5 | * LICENSE.txt file. | |
6 | */ | |
7 | package org.mule.module.management.mbean; | |
8 | ||
9 | import org.mule.api.MuleException; | |
10 | import org.mule.api.model.Model; | |
11 | ||
12 | /** | |
13 | * <code>ModelService</code> exposes service information and actions on the Mule | |
14 | * Model. | |
15 | */ | |
16 | public class ModelService implements ModelServiceMBean | |
17 | { | |
18 | private Model model; | |
19 | ||
20 | public ModelService(Model model) | |
21 | 0 | { |
22 | 0 | this.model = model; |
23 | ||
24 | 0 | } |
25 | ||
26 | public void start() throws MuleException | |
27 | { | |
28 | 0 | model.start(); |
29 | 0 | } |
30 | ||
31 | public void stop() throws MuleException | |
32 | { | |
33 | 0 | model.stop(); |
34 | 0 | } |
35 | ||
36 | // public void startComponent(String name) throws MuleException | |
37 | // { | |
38 | // model.startComponent(name); | |
39 | // } | |
40 | // | |
41 | // public void stopComponent(String name) throws MuleException | |
42 | // { | |
43 | // model.stopComponent(name); | |
44 | // } | |
45 | // | |
46 | // public void pauseComponent(String name) throws MuleException | |
47 | // { | |
48 | // model.pauseComponent(name); | |
49 | // } | |
50 | // | |
51 | // public void resumeComponent(String name) throws MuleException | |
52 | // { | |
53 | // model.resumeComponent(name); | |
54 | // } | |
55 | // | |
56 | // public void unregisterComponent(String name) throws MuleException | |
57 | // { | |
58 | // muleContext.getRegistry().unregisterService(name); | |
59 | // //model.unregisterComponent(model.getDescriptor(name)); | |
60 | // } | |
61 | // | |
62 | // public boolean isComponentRegistered(String name) | |
63 | // { | |
64 | // return model.isComponentRegistered(name); | |
65 | // } | |
66 | // | |
67 | // public UMODescriptor getComponentDescriptor(String name) | |
68 | // { | |
69 | // return muleContext.getRegistry().lookupService(name); | |
70 | // | |
71 | // //return model.getDescriptor(name); | |
72 | // } | |
73 | ||
74 | public String getName() | |
75 | { | |
76 | 0 | return model.getName(); |
77 | } | |
78 | ||
79 | public String getType() | |
80 | { | |
81 | 0 | return model.getType(); |
82 | } | |
83 | } |