public class UDDIServiceCounter extends Object implements DynamicMBean, Serializable
Modifier and Type | Field and Description |
---|---|
static String |
RESET_COUNTER |
Constructor and Description |
---|
UDDIServiceCounter() |
Modifier and Type | Method and Description |
---|---|
Object |
getAttribute(String attribute) |
AttributeList |
getAttributes(String[] attributes) |
MBeanInfo |
getMBeanInfo() |
void |
initList(Class klass,
List<String> queries) |
Object |
invoke(String actionName,
Object[] params,
String[] signature) |
protected void |
registerMBean() |
void |
resetCounts() |
void |
setAttribute(Attribute attribute) |
AttributeList |
setAttributes(AttributeList attributes) |
void |
update(UDDIQuery queryObject,
QueryStatus queryStatus,
long procTime)
This updates the performance metrics for a given service.
|
public static final String RESET_COUNTER
protected void registerMBean()
public void resetCounts()
public void update(UDDIQuery queryObject, QueryStatus queryStatus, long procTime)
queryObject
- the item that was executedqueryStatus
- success or fail statusprocTime
- Expects time in millisecondspublic Object getAttribute(String attribute) throws AttributeNotFoundException, MBeanException, ReflectionException
getAttribute
in interface DynamicMBean
AttributeNotFoundException
MBeanException
ReflectionException
public void setAttribute(Attribute attribute) throws AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException
setAttribute
in interface DynamicMBean
AttributeNotFoundException
InvalidAttributeValueException
MBeanException
ReflectionException
public AttributeList getAttributes(String[] attributes)
getAttributes
in interface DynamicMBean
public AttributeList setAttributes(AttributeList attributes)
setAttributes
in interface DynamicMBean
public Object invoke(String actionName, Object[] params, String[] signature) throws MBeanException, ReflectionException
invoke
in interface DynamicMBean
MBeanException
ReflectionException
public MBeanInfo getMBeanInfo()
getMBeanInfo
in interface DynamicMBean
Copyright © 2004–2021 The Apache Software Foundation. All rights reserved.