View Javadoc

1   /*
2    * $Id: MuleServiceMBean.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.UMOException;
14  
15  import java.util.Date;
16  
17  /**
18   * <code>MuleServiceMBean</code> is a JMX service interface for the UMOManager
19   * 
20   * @author <a href="mailto:ross.mason@symphonysoft.com">Ross Mason</a>
21   * @version $Revision: 7976 $
22   */
23  public interface MuleServiceMBean
24  {
25      boolean isInstanciated();
26  
27      boolean isInitialised();
28  
29      boolean isStopped();
30  
31      Date getStartTime();
32  
33      String getVersion();
34  
35      String getVendor();
36  
37      void start() throws UMOException;
38  
39      void stop() throws UMOException;
40  
41      void dispose() throws UMOException;
42  
43      long getFreeMemory();
44  
45      long getMaxMemory();
46  
47      long getTotalMemory();
48  
49      String getServerId();
50  
51      String getHostname();
52  
53      String getHostIp();
54  
55      String getOsVersion();
56  
57      String getJdkVersion();
58  
59      String getCopyright();
60  
61      String getLicense();
62  
63      String getBuildDate();
64  
65      String getInstanceId();
66  }