01: /*
02: * Copyright (C) The MX4J Contributors.
03: * All rights reserved.
04: *
05: * This software is distributed under the terms of the MX4J License version 1.0.
06: * See the terms of the MX4J License in the documentation provided with this software.
07: */
08: package mx4j.examples.mbeans.iiop;
09:
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.1 $
18: */
19: public interface HelloImplMBean {
20: /**
21: * Starts the service, allowing RMI clients to connect
22: *
23: * @see #stop
24: */
25: public void start() throws Exception;
26:
27: /**
28: * Stops the service so that RMI clients cannot connect anymore
29: *
30: * @see #start
31: */
32: public void stop() throws Exception;
33:
34: /**
35: * Returns if the service is running
36: *
37: * @see #start
38: */
39: public boolean isRunning();
40: }
|