java.lang.Object
javax.management.NotificationBroadcasterSupport
org.jboss.system.ServiceMBeanSupport
org.mobicents.slee.container.management.jmx.ProfileProvisioningMBeanImpl
- All Implemented Interfaces:
- javax.management.MBeanRegistration, javax.management.NotificationBroadcaster, ProfileProvisioningMBeanImplMBean, org.jboss.system.Service, org.jboss.system.ServiceMBean
- public class ProfileProvisioningMBeanImpl
- extends org.jboss.system.ServiceMBeanSupport
- implements ProfileProvisioningMBeanImplMBean
MBean class for profile provisioning through jmx
| Fields inherited from interface org.jboss.system.ServiceMBean |
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, STARTED, STARTING, states, STOPPED, STOPPING, UNREGISTERED |
|
Method Summary |
javax.management.ObjectName |
createProfile(java.lang.String profileTableName,
java.lang.String newProfileName)
SLEE 1.0 spec, section 14.11: This method gets the JMX Object Name of a
modifiable Profile MBean object. |
void |
createProfileTable(ProfileSpecificationID profileSpecificationID,
java.lang.String newProfileTableName)
|
javax.management.ObjectName |
getDefaultProfile(java.lang.String profileTableName)
|
static javax.management.ObjectName |
getDefaultProfileObjectName(java.lang.String profileTableName)
|
javax.management.ObjectName |
getProfile(java.lang.String profileTableName,
java.lang.String profileName)
|
static javax.management.ObjectName |
getProfileObjectName(java.lang.String profileTableName,
java.lang.String profileName)
Creates a JMX ObjectName for a profile, given its profile name and
profile table name |
java.util.Collection |
getProfiles(java.lang.String profileTableName)
|
java.util.Collection |
getProfilesByIndexedAttribute(java.lang.String profileTableName,
java.lang.String attributeName,
java.lang.Object attributeValue)
|
ProfileSpecificationID |
getProfileSpecification(java.lang.String profileTableName)
|
java.util.Collection |
getProfileTables()
|
private boolean |
profileHasInvalidCharacters(java.lang.String profileName)
Check if some invalid characters exists in the profile name |
private boolean |
profileTableHasInvalidCharacters(java.lang.String profileTableName)
Check if some invalid characters exists in the profile table name |
void |
removeProfile(java.lang.String profileTableName,
java.lang.String profileName)
|
void |
removeProfileTable(java.lang.String profileTableName)
|
void |
renameProfileTable(java.lang.String oldProfileTableName,
java.lang.String newProfileTableName)
|
protected void |
startService()
start MBean service lifecycle method |
protected void |
stopService()
stop MBean service lifecycle method |
| Methods inherited from class org.jboss.system.ServiceMBeanSupport |
create, createService, destroy, destroyService, getLog, getName, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, getState, getStateString, postDeregister, postRegister, preDeregister, preRegister, start, stop |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
private static org.jboss.logging.Logger logger
ProfileProvisioningMBeanImpl
public ProfileProvisioningMBeanImpl()
throws javax.management.NotCompliantMBeanException
createProfileTable
public void createProfileTable(ProfileSpecificationID profileSpecificationID,
java.lang.String newProfileTableName)
throws java.lang.NullPointerException,
UnrecognizedProfileSpecificationException,
InvalidArgumentException,
ProfileTableAlreadyExistsException,
ManagementException
- Specified by:
createProfileTable in interface ProfileProvisioningMBeanImplMBean
profileTableHasInvalidCharacters
private boolean profileTableHasInvalidCharacters(java.lang.String profileTableName)
- Check if some invalid characters exists in the profile table name
profileHasInvalidCharacters
private boolean profileHasInvalidCharacters(java.lang.String profileName)
- Check if some invalid characters exists in the profile name
removeProfileTable
public void removeProfileTable(java.lang.String profileTableName)
throws java.lang.NullPointerException,
UnrecognizedProfileTableNameException,
ManagementException
- Specified by:
removeProfileTable in interface ProfileProvisioningMBeanImplMBean
getProfileSpecification
public ProfileSpecificationID getProfileSpecification(java.lang.String profileTableName)
throws java.lang.NullPointerException,
UnrecognizedProfileTableNameException,
ManagementException
- Specified by:
getProfileSpecification in interface ProfileProvisioningMBeanImplMBean
renameProfileTable
public void renameProfileTable(java.lang.String oldProfileTableName,
java.lang.String newProfileTableName)
throws java.lang.NullPointerException,
UnrecognizedProfileTableNameException,
InvalidArgumentException,
ProfileTableAlreadyExistsException,
ManagementException
- Specified by:
renameProfileTable in interface ProfileProvisioningMBeanImplMBean
getDefaultProfile
public javax.management.ObjectName getDefaultProfile(java.lang.String profileTableName)
throws java.lang.NullPointerException,
UnrecognizedProfileTableNameException,
ManagementException
- Specified by:
getDefaultProfile in interface ProfileProvisioningMBeanImplMBean
createProfile
public javax.management.ObjectName createProfile(java.lang.String profileTableName,
java.lang.String newProfileName)
throws java.lang.NullPointerException,
UnrecognizedProfileTableNameException,
InvalidArgumentException,
ProfileAlreadyExistsException,
ManagementException
- SLEE 1.0 spec, section 14.11: This method gets the JMX Object Name of a
modifiable Profile MBean object. When the Profile MBean object commits
successfully, the SLEE creates and adds a Profile with the name specified
by the newProfileName argument to the Profile Table specified by the
profileTableName argument. Before the Profile MBean object commits, the
Profile name specifed by the newProfileName argument does not exist and
cannot be accessed by SBBs or through the ProfileProvisioningMBean
interface.
- Specified by:
createProfile in interface ProfileProvisioningMBeanImplMBean
removeProfile
public void removeProfile(java.lang.String profileTableName,
java.lang.String profileName)
throws java.lang.NullPointerException,
UnrecognizedProfileTableNameException,
UnrecognizedProfileNameException,
ManagementException
- Specified by:
removeProfile in interface ProfileProvisioningMBeanImplMBean
getProfile
public javax.management.ObjectName getProfile(java.lang.String profileTableName,
java.lang.String profileName)
throws java.lang.NullPointerException,
UnrecognizedProfileTableNameException,
UnrecognizedProfileNameException,
ManagementException
- Specified by:
getProfile in interface ProfileProvisioningMBeanImplMBean
getProfileObjectName
public static javax.management.ObjectName getProfileObjectName(java.lang.String profileTableName,
java.lang.String profileName)
throws javax.management.MalformedObjectNameException
- Creates a JMX ObjectName for a profile, given its profile name and
profile table name
getDefaultProfileObjectName
public static javax.management.ObjectName getDefaultProfileObjectName(java.lang.String profileTableName)
throws javax.management.MalformedObjectNameException
getProfileTables
public java.util.Collection getProfileTables()
throws ManagementException
- Specified by:
getProfileTables in interface ProfileProvisioningMBeanImplMBean
getProfiles
public java.util.Collection getProfiles(java.lang.String profileTableName)
throws java.lang.NullPointerException,
UnrecognizedProfileTableNameException,
ManagementException
- Specified by:
getProfiles in interface ProfileProvisioningMBeanImplMBean
getProfilesByIndexedAttribute
public java.util.Collection getProfilesByIndexedAttribute(java.lang.String profileTableName,
java.lang.String attributeName,
java.lang.Object attributeValue)
throws java.lang.NullPointerException,
UnrecognizedProfileTableNameException,
UnrecognizedAttributeException,
AttributeNotIndexedException,
AttributeTypeMismatchException,
ManagementException
- Specified by:
getProfilesByIndexedAttribute in interface ProfileProvisioningMBeanImplMBean
startService
protected void startService()
throws java.lang.Exception
- start MBean service lifecycle method
stopService
protected void stopService()
throws java.lang.Exception
- stop MBean service lifecycle method