Interface ProfileProvisioningMBean
-
- All Superinterfaces:
ProfileProvisioningMBean
public interface ProfileProvisioningMBean extends ProfileProvisioningMBean
The
ProfileProvisiningMBeaninterface defines additional rhino management operations for creating, removing, and interacting with profiles and profile tables.
-
-
Field Summary
-
Fields inherited from interface javax.slee.management.ProfileProvisioningMBean
OBJECT_NAME
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ObjectNamecreateProfile(String profileTableName, String newProfileName)voidcreateProfiles(String profileTableName, String[] profileNames, AttributeList[] attributeList)Creates new profile in a profile table.voidcreateProfileTable(ProfileSpecificationID id, String newProfileTableName)ProfileDataCollectionexportProfiles(String profileTableName, String[] profileNames)Export a list of profiles from a profile table.ObjectNamegetDefaultProfile(String profileTableName)ObjectNamegetProfile(String profileTableName, String profileName)CollectiongetProfiles(String profileTableName)CollectiongetProfilesByAttribute(String profileTableName, String attributeName, Object attributeValue)CollectiongetProfilesByDynamicQuery(String profileTableName, QueryExpression expr)CollectiongetProfilesByIndexedAttribute(String profileTableName, String attributeName, Object attributeValue)CollectiongetProfilesByStaticQuery(String profileTableName, String queryName, Object[] parameters)ProfileSpecificationIDgetProfileSpecification(String profileTableName)CollectiongetProfileTables()CollectiongetProfileTables(ProfileSpecificationID id)ObjectNamegetProfileTableUsageMBean(String profileTableName)ProfileImportResultimportProfiles(ProfileDataCollection profileData)Import a collection of profile data.ProfileImportResultimportProfiles(ProfileDataCollection profileData, boolean verifyProfiles)Import a collection of profile data.voidremoveProfile(String profileTableName, String profileName)voidremoveProfileTable(String profileTableName)-
Methods inherited from interface javax.slee.management.ProfileProvisioningMBean
renameProfileTable
-
-
-
-
Method Detail
-
createProfileTable
@SupportsUserTransactions void createProfileTable(ProfileSpecificationID id, String newProfileTableName) throws NullPointerException, UnrecognizedProfileSpecificationException, InvalidArgumentException, ProfileTableAlreadyExistsException, ManagementException
-
removeProfileTable
@SupportsUserTransactions void removeProfileTable(String profileTableName) throws NullPointerException, UnrecognizedProfileTableNameException, ManagementException
- Specified by:
removeProfileTablein interfaceProfileProvisioningMBean- Throws:
NullPointerExceptionUnrecognizedProfileTableNameExceptionManagementException
-
createProfile
@SupportsUserTransactions ObjectName createProfile(String profileTableName, String newProfileName) throws NullPointerException, UnrecognizedProfileTableNameException, InvalidArgumentException, ProfileAlreadyExistsException, ManagementException
-
createProfiles
@SupportsUserTransactions void createProfiles(String profileTableName, String[] profileNames, AttributeList[] attributeList) throws NullPointerException, InvalidArgumentException, UnrecognizedProfileTableNameException, ProfileAlreadyExistsException, ProfileVerificationException, ManagementException
Creates new profile in a profile table. The profile is added to the profile table using the unique profile name specified.
- Parameters:
profileTableName- the name of the profile table to create the profile in.profileNames- the names of the new profiles. These names must be unique within the scope of the profile table.attributeList- collection of attribute values per profileName.- Throws:
NullPointerException- if either argument isnull.UnrecognizedProfileTableNameException- if a profile table with the specified name does not exist.InvalidArgumentException- ifnewProfileNameis zero-length.ProfileAlreadyExistsException- if a profile with the same name already exists in the profile table.ManagementException- if the profile could not be created due to a system-level failure.ProfileVerificationException
-
removeProfile
@SupportsUserTransactions void removeProfile(String profileTableName, String profileName) throws NullPointerException, UnrecognizedProfileTableNameException, UnrecognizedProfileNameException, ManagementException
- Specified by:
removeProfilein interfaceProfileProvisioningMBean- Throws:
NullPointerExceptionUnrecognizedProfileTableNameExceptionUnrecognizedProfileNameExceptionManagementException
-
exportProfiles
ProfileDataCollection exportProfiles(String profileTableName, String[] profileNames) throws NullPointerException, UnrecognizedProfileTableNameException, ManagementException
Export a list of profiles from a profile table.
- Parameters:
profileTableName- the name of the profile table to export from.profileNames- an array listing the profile names to export. Anullelement in the array results in the profile table’s default profile being exported. Elements corresponding to unknown profile names are ignored.- Returns:
- a profile data collection containing the exported profiles.
- Throws:
NullPointerException- if either argument isnull.UnrecognizedProfileTableNameException- if a profile table with the specified name does not exist.ManagementException- if the export cannot be completed successfully due to a system-level failure.
-
importProfiles
@SupportsUserTransactions ProfileImportResult importProfiles(ProfileDataCollection profileData) throws NullPointerException, UnrecognizedProfileTableNameException, InvalidArgumentException, ProfileAlreadyExistsException, UnrecognizedProfileNameException, ProfileVerificationException, ManagementException
Import a collection of profile data.
Note: it is permissible for the profile data collection to contain a profile with a
nullname. Such a profile indicates profile data for the profile table’s default profile. Default profile data is imported regardless of the value of thereplaceflag.This method is equivalent to
importProfiles(profileData, true), ie. theprofileVerify()method will be invoked on each of the imported profiles.- Parameters:
profileData- the profile data collection containing the exported profiles.- Returns:
- data class encapsulating the result of the import.
- Throws:
NullPointerException- ifprofileDataisnull.UnrecognizedProfileTableNameException- if a profile table with the name specified in the profile data does not exist.InvalidArgumentException- if the schema of the profile table specified in the profile data does not match (or is not a subset of) the schema of the profile table in the SLEE, if the profile data contains non-serialised attribute data for attribute types with nocodecavailable, or if an attribute value in a profile contains null values for primitive types.ManagementException- if the import cannot be completed successfully due to a system-level failure.ProfileAlreadyExistsExceptionUnrecognizedProfileNameExceptionProfileVerificationException
-
importProfiles
@SupportsUserTransactions ProfileImportResult importProfiles(ProfileDataCollection profileData, boolean verifyProfiles) throws NullPointerException, UnrecognizedProfileTableNameException, InvalidArgumentException, ProfileAlreadyExistsException, UnrecognizedProfileNameException, ProfileVerificationException, ManagementException
Import a collection of profile data.
Note: it is permissible for the profile data collection to contain a profile with a
nullname. Such a profile indicates profile data for the profile table’s default profile. Default profile data is imported regardless of the value of thereplaceflag.- Parameters:
profileData- the profile data collection containing the exported profiles.verifyProfiles- flag indicating if theprofileVerify()method will be invoked on each of the imported profiles.- Returns:
- data class encapsulating the result of the import.
- Throws:
NullPointerException- ifprofileDataisnull.UnrecognizedProfileTableNameException- if a profile table with the name specified in the profile data does not exist.InvalidArgumentException- if the schema of the profile table specified in the profile data does not match (or is not a subset of) the schema of the profile table in the SLEE, if the profile data contains non-serialised attribute data for attribute types with nocodecavailable, or if an attribute value in a profile contains null values for primitive types.ManagementException- if the import cannot be completed successfully due to a system-level failure.ProfileAlreadyExistsExceptionUnrecognizedProfileNameExceptionProfileVerificationException
-
getProfileSpecification
ProfileSpecificationID getProfileSpecification(String profileTableName) throws NullPointerException, UnrecognizedProfileTableNameException, ManagementException
- Specified by:
getProfileSpecificationin interfaceProfileProvisioningMBean- Throws:
NullPointerExceptionUnrecognizedProfileTableNameExceptionManagementException
-
getDefaultProfile
@SupportsUserTransactions ObjectName getDefaultProfile(String profileTableName) throws NullPointerException, UnrecognizedProfileTableNameException, ManagementException
- Specified by:
getDefaultProfilein interfaceProfileProvisioningMBean- Throws:
NullPointerExceptionUnrecognizedProfileTableNameExceptionManagementException
-
getProfile
@SupportsUserTransactions ObjectName getProfile(String profileTableName, String profileName) throws NullPointerException, UnrecognizedProfileTableNameException, UnrecognizedProfileNameException, ManagementException
- Specified by:
getProfilein interfaceProfileProvisioningMBean- Throws:
NullPointerExceptionUnrecognizedProfileTableNameExceptionUnrecognizedProfileNameExceptionManagementException
-
getProfileTables
@SupportsUserTransactions Collection getProfileTables() throws ManagementException
- Specified by:
getProfileTablesin interfaceProfileProvisioningMBean- Throws:
ManagementException
-
getProfileTables
@SupportsUserTransactions Collection getProfileTables(ProfileSpecificationID id) throws NullPointerException, UnrecognizedProfileSpecificationException, ManagementException
- Specified by:
getProfileTablesin interfaceProfileProvisioningMBean- Throws:
NullPointerExceptionUnrecognizedProfileSpecificationExceptionManagementException
-
getProfiles
@SupportsUserTransactions Collection getProfiles(String profileTableName) throws NullPointerException, UnrecognizedProfileTableNameException, ManagementException
- Specified by:
getProfilesin interfaceProfileProvisioningMBean- Throws:
NullPointerExceptionUnrecognizedProfileTableNameExceptionManagementException
-
getProfilesByIndexedAttribute
@SupportsUserTransactions Collection getProfilesByIndexedAttribute(String profileTableName, String attributeName, Object attributeValue) throws NullPointerException, UnrecognizedProfileTableNameException, UnrecognizedAttributeException, AttributeNotIndexedException, AttributeTypeMismatchException, ManagementException
-
getProfilesByAttribute
@SupportsUserTransactions Collection getProfilesByAttribute(String profileTableName, String attributeName, Object attributeValue) throws NullPointerException, UnrecognizedProfileTableNameException, UnrecognizedAttributeException, InvalidArgumentException, AttributeTypeMismatchException, ManagementException
-
getProfilesByStaticQuery
@SupportsUserTransactions Collection getProfilesByStaticQuery(String profileTableName, String queryName, Object[] parameters) throws NullPointerException, UnrecognizedProfileTableNameException, UnrecognizedQueryNameException, InvalidArgumentException, AttributeTypeMismatchException, ManagementException
-
getProfilesByDynamicQuery
@SupportsUserTransactions Collection getProfilesByDynamicQuery(String profileTableName, QueryExpression expr) throws NullPointerException, UnrecognizedProfileTableNameException, UnrecognizedAttributeException, AttributeTypeMismatchException, ManagementException
-
getProfileTableUsageMBean
ObjectName getProfileTableUsageMBean(String profileTableName) throws NullPointerException, UnrecognizedProfileTableNameException, InvalidArgumentException, ManagementException
- Specified by:
getProfileTableUsageMBeanin interfaceProfileProvisioningMBean- Throws:
NullPointerExceptionUnrecognizedProfileTableNameExceptionInvalidArgumentExceptionManagementException
-
-