KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > mx4j > examples > mbeans > rmi > MyRemoteServiceObjectMBean


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

20 public interface MyRemoteServiceObjectMBean
21 {
22    public void start() throws Exception JavaDoc;
23
24    public void stop() throws Exception JavaDoc;
25
26    public boolean isRunning();
27 }
28
Popular Tags