org.apache.commons.modeler.mbeans

Class MBeanProxy

Implemented Interfaces:
MBeanRegistration, ModelMBean

(package private) class MBeanProxy
extends BaseModelMBean

Use the same metadata, except that we replace the attribute get/set methods.

Field Summary

(package private) HashMap
atts
(package private) SimpleRemoteConnector
jkmx
private static Log
log

Fields inherited from class org.apache.commons.modeler.BaseModelMBean

NO_ARGS_PARAM, NO_ARGS_PARAM_SIG, attributeBroadcaster, attributes, generalBroadcaster, getAttMap, info, invokeAttMap, log, oname, registry, resource, resourceType, setAttMap, source

Constructor Summary

MBeanProxy(SimpleRemoteConnector jkmx, String code)

Method Summary

Object
getAttribute(String name)
Object
invoke(String name, params[] , signature[] )
void
setAttribute(Attribute attribute)
protected void
update(String name, String val)
Called by the connector - will update the value when a chunk of data is received

Methods inherited from class org.apache.commons.modeler.BaseModelMBean

addAttributeChangeNotificationListener, addNotificationListener, createDefaultModelMBeanInfo, createResource, getAttribute, getAttributeClass, getAttributes, getClassName, getMBeanInfo, getManagedResource, getModelerType, getNotificationInfo, getObjectName, getRegistry, initModelInfo, invoke, isModelMBeanInfoValid, load, postDeregister, postRegister, preDeregister, preRegister, removeAttributeChangeNotificationListener, removeAttributeChangeNotificationListener, removeNotificationListener, removeNotificationListener, removeNotificationListener, sendAttributeChangeNotification, sendAttributeChangeNotification, sendNotification, sendNotification, setAttribute, setAttributes, setManagedResource, setModelMBeanInfo, setModeledType, setRegistry, store, toString

Field Details

atts

(package private)  HashMap atts

jkmx

(package private)  SimpleRemoteConnector jkmx

log

private static Log log

Constructor Details

MBeanProxy

public MBeanProxy(SimpleRemoteConnector jkmx,
                  String code)
            throws Exception

Method Details

getAttribute

public Object getAttribute(String name)
            throws AttributeNotFoundException,
                   MBeanException,
                   ReflectionException
Overrides:
getAttribute in interface BaseModelMBean

invoke

public Object invoke(String name,
                     params[] ,
                     signature[] )
            throws MBeanException,
                   ReflectionException
Overrides:
invoke in interface BaseModelMBean

setAttribute

public void setAttribute(Attribute attribute)
            throws AttributeNotFoundException,
                   MBeanException,
                   ReflectionException
Overrides:
setAttribute in interface BaseModelMBean

update

protected void update(String name,
                      String val)
Called by the connector - will update the value when a chunk of data is received

Copyright (c) 2001-2003 - Apache Software Foundation