Coverage Report - org.mule.management.mbeans.ModelService
 
Classes in this File Line Coverage Branch Coverage Complexity
ModelService
0%
0/21
N/A
1
 
 1  
 /*
 2  
  * $Id: ModelService.java 7976 2007-08-21 14:26:13Z dirk.olmes $
 3  
  * --------------------------------------------------------------------------------------
 4  
  * Copyright (c) MuleSource, Inc.  All rights reserved.  http://www.mulesource.com
 5  
  *
 6  
  * The software in this package is published under the terms of the CPAL v1.0
 7  
  * license, a copy of which has been included with this distribution in the
 8  
  * LICENSE.txt file.
 9  
  */
 10  
 
 11  
 package org.mule.management.mbeans;
 12  
 
 13  
 import org.mule.umo.UMODescriptor;
 14  
 import org.mule.umo.UMOException;
 15  
 import org.mule.umo.model.UMOModel;
 16  
 
 17  
 /**
 18  
  * <code>ModelService</code> exposes service information and actions on the Mule
 19  
  * Model
 20  
  * 
 21  
  * @author <a href="mailto:ross.mason@symphonysoft.com">Ross Mason</a>
 22  
  * @version $Revision: 7976 $
 23  
  */
 24  
 public class ModelService implements ModelServiceMBean
 25  
 {
 26  
     private UMOModel model;
 27  
 
 28  
     public ModelService(UMOModel model)
 29  0
     {
 30  0
         this.model = model;
 31  
 
 32  0
     }
 33  
 
 34  
     public void start() throws UMOException
 35  
     {
 36  0
         model.start();
 37  0
     }
 38  
 
 39  
     public void stop() throws UMOException
 40  
     {
 41  0
         model.stop();
 42  0
     }
 43  
 
 44  
     public void startComponent(String name) throws UMOException
 45  
     {
 46  0
         model.startComponent(name);
 47  0
     }
 48  
 
 49  
     public void stopComponent(String name) throws UMOException
 50  
     {
 51  0
         model.stopComponent(name);
 52  0
     }
 53  
 
 54  
     public void pauseComponent(String name) throws UMOException
 55  
     {
 56  0
         model.pauseComponent(name);
 57  0
     }
 58  
 
 59  
     public void resumeComponent(String name) throws UMOException
 60  
     {
 61  0
         model.resumeComponent(name);
 62  0
     }
 63  
 
 64  
     public void unregisterComponent(String name) throws UMOException
 65  
     {
 66  0
         model.unregisterComponent(model.getDescriptor(name));
 67  0
     }
 68  
 
 69  
     public boolean isComponentRegistered(String name)
 70  
     {
 71  0
         return model.isComponentRegistered(name);
 72  
     }
 73  
 
 74  
     public UMODescriptor getComponentDescriptor(String name)
 75  
     {
 76  0
         return model.getDescriptor(name);
 77  
     }
 78  
 
 79  
     public String getName()
 80  
     {
 81  0
         return model.getName();
 82  
     }
 83  
 
 84  
     public String getType()
 85  
     {
 86  0
         return model.getType();
 87  
     }
 88  
 }