Right Java tools for J2EE, Web Service, Grid and more. Open source and Enterprise.
|Home | Products | Documents | Downloads | Purchase | Support | Company | Partners | Contact |

com.acelet.s.dashboard
Class DynamicParameter

java.lang.Object
  extended by com.acelet.s.dashboard.DynamicParameter

public abstract class DynamicParameter
extends java.lang.Object

This is the class for providing dynamic parameter for operation and constructor of MBean.
Users must provide an implementation for method getParameterArray to specify the parameter values.

Example:

 public class RandomIntDynamicAttribute extends DynamicAttribute {
   static Random random = new Random();
 
   public Attribute getAttribute(String attributeName) throws InvalidArgumentException {
     int value = random.nextInt(10);
     if (value < 0)
       value = -value;
     Integer integer = new Integer(value);
     return new Attribute(attributeName, integer);
   }
 }
 


Field Summary
static Envoy envoy
          envoy is a static variable of Envoy.
 
Constructor Summary
DynamicParameter()
           
 
Method Summary
abstract  java.lang.Object[] getParameterArray()
          getParemeterArray is a user defined method.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

envoy

public static Envoy envoy
envoy is a static variable of Envoy. It is initialized by the system and can be used to perform related tasks.

Constructor Detail

DynamicParameter

public DynamicParameter()
Method Detail

getParameterArray

public abstract java.lang.Object[] getParameterArray()
                                              throws com.acelet.s.dashboard.InvalidArgumentException
getParemeterArray is a user defined method. It provide dynamic parameter.

Returns:
the parameter array.
Throws:
InvalidArgumentException.
com.acelet.s.dashboard.InvalidArgumentException

Copyright Acelet Corporation. 2000-2008. All rights reserved.