| java.lang.Object example.jmx.openmbean.SimpleOpenMBean
Method Summary | |
public Boolean | addTShirt(CompositeData tShirt) Adds the tShirt given in parameter to the list of available tShirts, if it does not already exist
and returns Boolean.TRUE if succesful, Boolean.FALSE otherwise. | public CompositeData | buildTShirt(String model, String color, String size, Float price) Builds and returns a new CompositeData TShirt instance from the specified parameters. | protected Object | checkParam(OpenMBeanParameterInfo paramInfo, Object param) Checks param is a valid value for the specified paramInfo and returns param's value
(returns the default value if param is null and paramInfo defines one),
or throws an OpenDataException otherwise. | public Object | getAttribute(String attribute_name) | public AttributeList | getAttributes(String[] attributeNames) | public MBeanInfo | getMBeanInfo() | public Integer | getNbChanges() | public TabularData | getTShirts() | public Object | invoke(String operationName, Object[] params, String[] signature) | public void | removeTShirt(CompositeData tShirt) Removes the given tshirt from the list if a tshirt with the same index existed in the list,
or does nothing otherwise. | public void | setAttribute(Attribute attribute) | public AttributeList | setAttributes(AttributeList attributes) |
SimpleOpenMBean | public SimpleOpenMBean() throws OpenDataException(Code) | | Constructs a SimpleOpenMBean instance containing an empty TShirts list
|
addTShirt | public Boolean addTShirt(CompositeData tShirt)(Code) | | Adds the tShirt given in parameter to the list of available tShirts, if it does not already exist
and returns Boolean.TRUE if succesful, Boolean.FALSE otherwise.
|
buildTShirt | public CompositeData buildTShirt(String model, String color, String size, Float price) throws OpenDataException(Code) | | Builds and returns a new CompositeData TShirt instance from the specified parameters.
If parameter values are not legal according to the OpenMBeanParameterInfo instances for this method,
it throws an OpenDataException.
If model, color or size are null, it uses the default value provided in the OpenMBeanParameterInfo instances for this method.
|
checkParam | protected Object checkParam(OpenMBeanParameterInfo paramInfo, Object param) throws OpenDataException(Code) | | Checks param is a valid value for the specified paramInfo and returns param's value
(returns the default value if param is null and paramInfo defines one),
or throws an OpenDataException otherwise.
|
getNbChanges | public Integer getNbChanges()(Code) | | Returns the number of time the TShirts list has been updated
|
removeTShirt | public void removeTShirt(CompositeData tShirt)(Code) | | Removes the given tshirt from the list if a tshirt with the same index existed in the list,
or does nothing otherwise.
|
|
|