public class JmxBuilderModelMBean extends RequiredModelMBean
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Constructor and description |
---|
JmxBuilderModelMBean
(Object objectRef) |
JmxBuilderModelMBean
() |
JmxBuilderModelMBean
(ModelMBeanInfo mbi) |
Type | Name and description |
---|---|
void |
addEventListeners(MBeanServer server, Map<String, Map<String, Object>> descriptor) Sets up event listeners for this MBean as described in the descriptor. |
void |
addOperationCallListeners(Map<String, Map<String, Map<String, Object>>> descriptor) Registers listeners for operation calls (i.e. method, getter, and setter calls) when invoked on this bean from the MBeanServer. |
void |
handleNotification(Notification note, Object handback) |
Object |
invoke(String opName, Object[] opArgs, String[] signature) |
void |
setManagedResource(Object obj) |
Methods inherited from class | Name |
---|---|
class RequiredModelMBean |
preRegister, setAttribute, setAttributes, postDeregister, postRegister, preDeregister, removeAttributeChangeNotificationListener, sendAttributeChangeNotification, sendAttributeChangeNotification, sendNotification, sendNotification, setManagedResource, setModelMBeanInfo, addNotificationListener, getMBeanInfo, removeNotificationListener, removeNotificationListener, addAttributeChangeNotificationListener, getNotificationInfo, getAttribute, invoke, load, store, getAttributes, wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
class Object |
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Sets up event listeners for this MBean as described in the descriptor. The descriptor contains a map with layout {item -> Map[event:"...", from:ObjectName, callback:&Closure],...,}
server
- the MBeanServer is to be registered.descriptor
- a map containing info about the eventRegisters listeners for operation calls (i.e. method, getter, and setter calls) when invoked on this bean from the MBeanServer. Descriptor should contain a map with layout item -> [Map[methodListener:[target:"", tpe:"", callback:&Closure], ... ,]]
descriptor
- MetaMap descriptor containing description of operation call listenersCopyright © 2003-2015 The Apache Software Foundation. All rights reserved.