Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.mobicents.slee.container.management.jmx
Class ServiceUsageMBeanImpl  view ServiceUsageMBeanImpl download ServiceUsageMBeanImpl.java

java.lang.Object
  extended byStandardMBean
      extended byorg.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.


Field Summary
private static org.jboss.logging.Logger logger
           
private  org.mobicents.slee.container.service.ServiceComponent service
           
private  ServiceID serviceID
           
 
Constructor Summary
ServiceUsageMBeanImpl()
           
ServiceUsageMBeanImpl(ServiceID serviceID)
           
 
Method Summary
private  void checkSbbUsageParams(SbbID sbbId)
           
 void close()
           
 void createUsageParameterSet(SbbID sbbId, java.lang.String usageParameterSetName)
           
 javax.management.ObjectName getSbbUsageMBean(SbbID sbbId)
           
 javax.management.ObjectName getSbbUsageMBean(SbbID sbbId, java.lang.String name)
           
 ServiceID getService()
           
 java.lang.String[] getUsageParameterSets(SbbID sbbId)
          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.
private  boolean isValidUsageParameterName(java.lang.String str)
           
 void removeUsageParameterSet(SbbID sbbId, java.lang.String name)
           
 void resetAllUsageParameters()
          Resets the usage parameters of all SBBs within the Service represented by the ServiceUsageMBean object.
 void resetAllUsageParameters(SbbID sbbId)
          Resets the usage parameters of only the SBB specified by the sbbID argument argument (within the Service represented by the ServiceUsageMBean object).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serviceID

private ServiceID serviceID

logger

private static org.jboss.logging.Logger logger

service

private transient org.mobicents.slee.container.service.ServiceComponent service
Constructor Detail

ServiceUsageMBeanImpl

public ServiceUsageMBeanImpl()
                      throws javax.management.NotCompliantMBeanException

ServiceUsageMBeanImpl

public ServiceUsageMBeanImpl(ServiceID serviceID)
                      throws javax.management.NotCompliantMBeanException,
                             javax.management.MalformedObjectNameException,
                             java.lang.NullPointerException
Method Detail

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