KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > axis > management > jmx > ServiceAdministratorMBean


1 /*
2  * Copyright 2003,2004 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16 package org.apache.axis.management.jmx;
17
18 import org.apache.axis.AxisFault;
19 import org.apache.axis.ConfigurationException;
20
21 /**
22  * The ServiceAdministrator MBean exposes the
23  * org.apache.axis.management.ServiceAdmin object
24  *
25  * @author bdillon
26  * @version 1.0
27  */

28 public interface ServiceAdministratorMBean {
29     /**
30      * get the axis version
31      *
32      * @return
33      */

34     public String JavaDoc getVersion();
35
36     /**
37      * Start the server
38      */

39     public void start();
40
41     /**
42      * stop the server
43      */

44     public void stop();
45
46     /**
47      * restart the server
48      */

49     public void restart();
50
51     /**
52      * Start the Service
53      *
54      * @param serviceName
55      * @throws AxisFault ConfigurationException
56      */

57     public void startService(String JavaDoc serviceName) throws AxisFault,
58             ConfigurationException;
59
60     /**
61      * Stop the Service
62      *
63      * @param serviceName
64      * @throws AxisFault ConfigurationException
65      */

66     public void stopService(String JavaDoc serviceName) throws AxisFault,
67             ConfigurationException;
68 }
Popular Tags