java.lang.Object
StandardMBean
org.mobicents.slee.container.management.jmx.ServiceUsageMBeanImpl
- All Implemented Interfaces:
- java.io.Serializable
- public class ServiceUsageMBeanImpl
- extends StandardMBean
- implements java.io.Serializable
See SLEE 1.0 #14.9.
The ServiceUsageMBean interface defines the management interface used to
interact with SBB usage parameter sets for SBBs in a Service. It defines the
methods to create, lookup, and remove SBB usage parameter sets from SBBs in
the Service.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
serviceID
private ServiceID serviceID
logger
private static org.jboss.logging.Logger logger
service
private transient org.mobicents.slee.container.service.ServiceComponent service
ServiceUsageMBeanImpl
public ServiceUsageMBeanImpl()
throws javax.management.NotCompliantMBeanException
ServiceUsageMBeanImpl
public ServiceUsageMBeanImpl(ServiceID serviceID)
throws javax.management.NotCompliantMBeanException,
javax.management.MalformedObjectNameException,
java.lang.NullPointerException
getService
public ServiceID getService()
throws ManagementException
createUsageParameterSet
public void createUsageParameterSet(SbbID sbbId,
java.lang.String usageParameterSetName)
throws java.lang.NullPointerException,
UnrecognizedSbbException,
InvalidArgumentException,
UsageParameterSetNameAlreadyExistsException,
ManagementException
isValidUsageParameterName
private boolean isValidUsageParameterName(java.lang.String str)
removeUsageParameterSet
public void removeUsageParameterSet(SbbID sbbId,
java.lang.String name)
throws java.lang.NullPointerException,
UnrecognizedSbbException,
InvalidArgumentException,
UnrecognizedUsageParameterSetNameException,
ManagementException
getUsageParameterSets
public java.lang.String[] getUsageParameterSets(SbbID sbbId)
throws java.lang.NullPointerException,
UnrecognizedSbbException,
InvalidArgumentException,
ManagementException
- This method returns a list containing the names of the named SBB usage
parameter sets that belong to the SBB specified by the sbbID argument and
the Service represented by the ServiceUsageMBean object.
getSbbUsageMBean
public javax.management.ObjectName getSbbUsageMBean(SbbID sbbId)
throws java.lang.NullPointerException,
UnrecognizedSbbException,
InvalidArgumentException,
ManagementException
getSbbUsageMBean
public javax.management.ObjectName getSbbUsageMBean(SbbID sbbId,
java.lang.String name)
throws java.lang.NullPointerException,
UnrecognizedSbbException,
InvalidArgumentException,
UnrecognizedUsageParameterSetNameException,
ManagementException
resetAllUsageParameters
public void resetAllUsageParameters(SbbID sbbId)
throws java.lang.NullPointerException,
UnrecognizedSbbException,
InvalidArgumentException,
ManagementException
- Resets the usage parameters of only the SBB specified by the sbbID
argument argument (within the Service represented by the
ServiceUsageMBean object).
resetAllUsageParameters
public void resetAllUsageParameters()
throws ManagementException
- Resets the usage parameters of all SBBs within the Service represented by
the ServiceUsageMBean object. The SLEE sets counter-type usage parameters
to zero and removes all samples from sample-type usage parameters.
close
public void close()
throws ManagementException
checkSbbUsageParams
private void checkSbbUsageParams(SbbID sbbId)
throws UnrecognizedSbbException,
InvalidArgumentException,
UnrecognizedSbbException,
javax.transaction.SystemException,
UnrecognizedServiceException