01: /**********************************************************************
02: Copyright (c) 2006 Erik Bengtson and others. All rights reserved.
03: Licensed under the Apache License, Version 2.0 (the "License");
04: you may not use this file except in compliance with the License.
05: You may obtain a copy of the License at
06:
07: http://www.apache.org/licenses/LICENSE-2.0
08:
09: Unless required by applicable law or agreed to in writing, software
10: distributed under the License is distributed on an "AS IS" BASIS,
11: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12: See the License for the specific language governing permissions and
13: limitations under the License.
14:
15: Contributors:
16: ...
17: ***********************************************************************/package org.jpox.management;
18:
19: /**
20: * Management Server for MBeans.
21: * Plugin Extension Point: org.jpox.management_server
22: * The implementation of this class must have a default public constructor
23: */
24: public interface ManagementServer {
25: /**
26: * Start the Management Server. If this operation is invoked
27: * while the server is started, this operation is ignored.
28: * This operation can also connect to a remote MBeanServer,
29: * instead of creating a new MBeanServer instance. This depends
30: * of the configuration.
31: */
32: void start();
33:
34: /**
35: * Stop the Management Server. If this operation is invoked
36: * while the server is stop, this operation is ignored
37: * This operation can also disconnect from a remote MBeanServer,
38: * instead of destroying a MBeanServer instance. This depends
39: * of the configuration.
40: */
41: void stop();
42:
43: /**
44: * Register a MBean into the MBeanServer
45: * @param mbean the MBean instance
46: * @param name the mbean name
47: */
48: void registerMBean(Object mbean, String name);
49:
50: /**
51: * Unregister a MBean from the MBeanServer
52: * @param name the mbean name
53: */
54: void unregisterMBean(String name);
55: }
|