Rhino extends the standard javax.slee.facilities.ProfileFacility
interface with the com.opencloud.rhino.facilities.profile.ProfileFacility
interface, which adds additional functionality over what the JAIN SLEE specification provides.
ProfileFacility interface
The com.opencloud.rhino.facilities.profile.ProfileFacility
interface is shown below:
package com.opencloud.rhino.facilities.profile;
import javax.slee.facilities.FacilityException;
import javax.slee.profile.UnrecognizedProfileTableNameException;
public interface ProfileFacility extends javax.slee.profile.ProfileFacility {
public boolean profileTableExists(String profileTableName)
throws NullPointerException, FacilityException;
public ProfileTableDescriptor getProfileTableDescriptor(String profileTableName)
throws NullPointerException, UnrecognizedProfileTableNameException, FacilityException;
public Class<?> getProfileLocalInterface(String profileTableName)
throws NullPointerException, UnrecognizedProfileTableNameException, FacilityException;
}
The extended interface is implemented by all ProfileFacility
objects provided by Rhino to SBBs and resource adaptors.
The extended interface adds two new methods to the profile facility.
Both methods are non-transactional; that is, they do not require an active transaction to return a successful result.
The methods throw the javax.slee.facilities.FacilityException
if the requested operation cannot be completed because of a system-level failure.
profileTableExists method
The profileTableExists
method returns a boolean value that reports whether or not a profile table with the name specified by the profileTableName
argument currently exists in the SLEE.
This method throws a NullPointerException
if the profileTableName
argument is null
.
getProfileTableDescriptor method
The getProfileTableDescriptor
method returns a metadata object that provides information about the profile table with the name specified by the profileTableName
argument.
The ProfileTableDescriptor
interface is described below.
This method throws a NullPointerException
if the profileTableName
argument is null
.
The method throws an UnrecognizedProfileTableNameException
if no profile table exists with the name specified by the profileTableName
argument.
ProfileTableDescriptor interface
The ProfileTableDescriptor
interface provides metadata information about a profile table.
This information might be useful, for example, to determine if a profile table contains profiles of an expected type before querying the profile table or retrieving profiles from it.
The ProfileTableDescriptor
interface is shown below:
package com.opencloud.rhino.facilities.profile;
import javax.slee.profile.ProfileSpecificationID;
import javax.slee.profile.ProfileTable;
public interface ProfileTableDescriptor {
public ProfileSpecificationID getProfileSpecification();
public Class<? extends ProfileTable> getProfileTableInterface();
public Class<?> getProfileLocalInterface();
}
All methods in the ProfileTableDescriptor
interface are non-transactional methods.
getProfileSpecification method
The getProfileSpecification
method returns the component identifier of the profile specification of the profile table the metadata object describes.
getProfileTableInterface method
The getProfileTableInterface
method returns the Class
object of the profile table interface declared by the profile specification of the profile table the metadata object describes.
If the profile specification does not declare a profile table interface, then this method returns the Class
object for the default SLEE-defined javax.slee.profile.ProfileTable
interface instead.
getProfileLocalInterface method
The getProfileLocalInterface
method returns the Class
object of the profile local interface declared by the profile specification of the profile table the metadata object describes.
If the profile specification does not declare a profile local interface, then this method returns the Class
object of the profile CMP interface instead.