|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface must be implemented by a Profile MBean Class generated by the SLEE for a profile specification. This interface contains essential operations for managaing the life-cycle of Profile MBean objects.
Method Summary | |
void |
closeProfile()
Notify the SLEE that the profile is no longer required by the management client. |
void |
commitProfile()
Request that changes made to a profile be committed by the SLEE. |
void |
editProfile()
Request that the client be granted read/write access to the profile so that it may be updated. |
boolean |
isProfileDirty()
Determine if the profile has been modified since the request to edit the profile. |
boolean |
isProfileWriteable()
Get the current read-write status of the profile. |
void |
restoreProfile()
Request that changes made to profile should be discarded by the SLEE. |
Method Detail |
public void editProfile() throws ManagementException
ManagementException
- if the profile could not be opened in
read/write mode due to a system-level failure.public void commitProfile() throws InvalidStateException, ProfileVerificationException, ManagementException
InvalidStateException
- if the client does not have read/write
access to the profile, ie isProfileWriteable()
returns false
.ProfileVerificationException
- if thrown by the ProfileManagement.profileVerify()
callback method in the profile's Profile Management Abstract Class. This exception
can also be thrown by the profile MBean if the deployment descriptor for the profile
specification documents an indexed attribute as requiring unique values and a
non-unique value has been supplied in the profile.ManagementException
- if the commit operation could not be successfully
completed due to a system-level failure.public void restoreProfile() throws InvalidStateException, ManagementException
InvalidStateException
- if the client does not have read/write
access to the profile, ie isProfileWriteable()
returns false
.ManagementException
- if the restore operation could not be successfully
completed due to a system-level failure.public void closeProfile() throws InvalidStateException, ManagementException
InvalidStateException
- if the profile is in read-write mode and contains
uncommitted changes.ManagementException
- if the profile could not be closed by the SLEE due
to a system-level failure.public boolean isProfileDirty() throws ManagementException
true
if the profile has been modified in the current
editing session, false
if the profile hasn't been modified or
the profile is read-only to the client.ManagementException
- if it could not be determined if the profile has
been modified due to a system-level failure.public boolean isProfileWriteable() throws ManagementException
true
if the profile MBean may be changed by the management
client, ie. editProfile()
has been successfully invoked,
false
otherwise.ManagementException
- if the read-write status of the profile could not
be interrogated due to a system-level failure.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |