argos.proxy
Class DynamicProxy

java.lang.Object
  extended by argos.proxy.DynamicProxy
All Implemented Interfaces:
NotificationProxy, DynamicMBean, NotificationBroadcaster, NotificationEmitter

public final class DynamicProxy
extends Object
implements DynamicMBean, NotificationProxy, NotificationEmitter

Created on 24. juni 2006, 18:50

Author:
Dan Peder Eriksen

Field Summary
static String ACTION
           
static String ACTION_INFO
           
static String INFO
           
static String NO_DESCRIPTION
           
 
Constructor Summary
DynamicProxy(String namingServiceName, Object mbean, Boolean verbose)
           
 
Method Summary
 void addNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback)
           
 Object getAttribute(String attribute)
           
 AttributeList getAttributes(String[] attributes)
           
 Object getMbean()
           
 MBeanInfo getMBeanInfo()
           
 String getName()
           
 MBeanNotificationInfo[] getNotificationInfo()
           
 Object invoke(String actionName, Object[] params, String[] signature)
           
 void removeNotificationListener(NotificationListener listener)
           
 void removeNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback)
           
 void send(Notification not)
           
 void setAttribute(Attribute attribute)
           
 AttributeList setAttributes(AttributeList attributes)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NO_DESCRIPTION

public static final String NO_DESCRIPTION
See Also:
Constant Field Values

ACTION

public static final String ACTION
See Also:
Constant Field Values

ACTION_INFO

public static final String ACTION_INFO
See Also:
Constant Field Values

INFO

public static final String INFO
See Also:
Constant Field Values
Constructor Detail

DynamicProxy

public DynamicProxy(String namingServiceName,
                    Object mbean,
                    Boolean verbose)
Method Detail

getAttribute

public Object getAttribute(String attribute)
                    throws AttributeNotFoundException
Specified by:
getAttribute in interface DynamicMBean
Throws:
AttributeNotFoundException

getAttributes

public AttributeList getAttributes(String[] attributes)
Specified by:
getAttributes in interface DynamicMBean

invoke

public Object invoke(String actionName,
                     Object[] params,
                     String[] signature)
              throws MBeanException,
                     ReflectionException
Specified by:
invoke in interface DynamicMBean
Throws:
MBeanException
ReflectionException

setAttribute

public void setAttribute(Attribute attribute)
Specified by:
setAttribute in interface DynamicMBean

setAttributes

public AttributeList setAttributes(AttributeList attributes)
Specified by:
setAttributes in interface DynamicMBean

getMBeanInfo

public MBeanInfo getMBeanInfo()
Specified by:
getMBeanInfo in interface DynamicMBean

getMbean

public Object getMbean()
Specified by:
getMbean in interface NotificationProxy

getName

public String getName()

addNotificationListener

public void addNotificationListener(NotificationListener listener,
                                    NotificationFilter filter,
                                    Object handback)
Specified by:
addNotificationListener in interface NotificationBroadcaster

removeNotificationListener

public void removeNotificationListener(NotificationListener listener)
Specified by:
removeNotificationListener in interface NotificationBroadcaster

removeNotificationListener

public void removeNotificationListener(NotificationListener listener,
                                       NotificationFilter filter,
                                       Object handback)
Specified by:
removeNotificationListener in interface NotificationEmitter

getNotificationInfo

public MBeanNotificationInfo[] getNotificationInfo()
Specified by:
getNotificationInfo in interface NotificationBroadcaster

send

public void send(Notification not)
Specified by:
send in interface NotificationProxy


Copyright © 2004-2007 University of Troms?. All Rights Reserved.