01: /**
02: * Sequoia: Database clustering technology.
03: * Copyright (C) 2005 Emic Networks.
04: * Contact: sequoia@continuent.org
05: *
06: * Licensed under the Apache License, Version 2.0 (the "License");
07: * you may not use this file except in compliance with the License.
08: * You may obtain a copy of the License at
09: *
10: * http://www.apache.org/licenses/LICENSE-2.0
11: *
12: * Unless required by applicable law or agreed to in writing, software
13: * distributed under the License is distributed on an "AS IS" BASIS,
14: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15: * See the License for the specific language governing permissions and
16: * limitations under the License.
17: *
18: * Initial developer(s): Jeff Mesnil.
19: * Contributor(s): ______________________.
20: */package org.continuent.sequoia.controller.loadbalancer;
21:
22: import javax.management.NotCompliantMBeanException;
23:
24: import org.continuent.sequoia.common.jmx.mbeans.BackendTaskQueuesControlMBean;
25: import org.continuent.sequoia.controller.jmx.AbstractStandardMBean;
26:
27: /**
28: * BackendTaskQueuesControlMBean implementation.
29: */
30: public class BackendTaskQueuesControl extends AbstractStandardMBean
31: implements BackendTaskQueuesControlMBean {
32:
33: private BackendTaskQueues managedTaskQueues;
34:
35: /**
36: * Creates a new <code>BackendTaskQueuesControl</code> object
37: *
38: * @param taskQueues the managed BackendTaskQueues
39: * @throws NotCompliantMBeanException if the mbean is not compliant
40: */
41: public BackendTaskQueuesControl(BackendTaskQueues taskQueues)
42: throws NotCompliantMBeanException {
43: super (BackendTaskQueuesControlMBean.class);
44: this .managedTaskQueues = taskQueues;
45: }
46:
47: /**
48: * @see org.continuent.sequoia.controller.jmx.AbstractStandardMBean#getAssociatedString()
49: */
50: public String getAssociatedString() {
51: return "backend task queues";
52: }
53:
54: /**
55: * @see org.continuent.sequoia.common.jmx.mbeans.BackendTaskQueuesControlMBean#dump()
56: */
57: public String dump() {
58: return managedTaskQueues.dump();
59: }
60: }
|