KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > mx4j > examples > mbeans > iiop > HelloImplMBean


1 /*
2  * Copyright (C) The MX4J Contributors.
3  * All rights reserved.
4  *
5  * This software is distributed under the terms of the MX4J License version 1.0.
6  * See the terms of the MX4J License in the documentation provided with this software.
7  */

8 package mx4j.examples.mbeans.iiop;
9
10 /**
11  * The management interface exposed by the service.
12  * As you can see, the management operations consist of
13  * starting and stopping the service along with seeing if the server is running.
14  * Note that it does not contain the {@link Hello#sayHello} method, which is
15  * considered in this example a business method and not a management method.
16  *
17  * @version $Revision: 1.4 $
18  */

19 public interface HelloImplMBean
20 {
21    /**
22     * Starts the service, allowing RMI clients to connect
23     *
24     * @see #stop
25     */

26    public void start() throws Exception JavaDoc;
27
28    /**
29     * Stops the service so that RMI clients cannot connect anymore
30     *
31     * @see #start
32     */

33    public void stop() throws Exception JavaDoc;
34
35    /**
36     * Returns if the service is running
37     *
38     * @see #start
39     */

40    public boolean isRunning();
41 }
42
Popular Tags