public interface EditSessionConfigurationManagerMBean extends RuntimeMBean
Modifier and Type | Method and Description |
---|---|
EditSessionConfigurationRuntimeMBean |
createEditSessionConfiguration(String name,
String description)
Creates a named edit session configuration.
|
void |
destroyEditSessionConfiguration(EditSessionConfigurationRuntimeMBean editSession)
Destroys an existing named edit session configuration.
|
void |
forceDestroyEditSessionConfiguration(EditSessionConfigurationRuntimeMBean editSession)
Destroys an existing named edit session configuration.
|
EditSessionConfigurationRuntimeMBean[] |
getEditSessionConfigurations()
Returns a list of edit session configuration runtime MBeans.
|
EditSessionConfigurationRuntimeMBean |
lookupEditSessionConfiguration(String name)
Look-up
EditSessionConfigurationRuntimeMBean . |
addPropertyChangeListener, removePropertyChangeListener
getMBeanInfo, getName, getObjectName, getParent, getType, isCachingDisabled, isRegistered, setName, setParent
getAttribute, getAttributes, invoke, setAttribute, setAttributes
postDeregister, postRegister, preDeregister, preRegister
addNotificationListener, getNotificationInfo, removeNotificationListener
EditSessionConfigurationRuntimeMBean[] getEditSessionConfigurations()
Returns a list of edit session configuration runtime MBeans. These MBeans contain information about the edit session configurations in this domain.
If running in a partition, then only partition specific configuration will be returned.EditSessionConfigurationRuntimeMBean lookupEditSessionConfiguration(String name)
EditSessionConfigurationRuntimeMBean
.name
- edit session name. If null
or empty string, default edit session name (global) will be
used.EditSessionConfigurationRuntimeMBean
which corresponds to provided name.EditSessionConfigurationRuntimeMBean createEditSessionConfiguration(String name, String description) throws IllegalArgumentException, ManagementException, ServiceFailureException
Creates a named edit session configuration. This will result in an edit session specific MBeanServer and associated configuration files in the <domain>/edit/<name> or <domain>/partitions/<name>/edit/<name> directory depending on whether running in a partition or not
name
- Name of the edit session configuration to create.description
- Description of the edit session configuration.IllegalArgumentException
ManagementException
ServiceFailureException
void destroyEditSessionConfiguration(EditSessionConfigurationRuntimeMBean editSession) throws ServiceFailureException, ManagementException
Destroys an existing named edit session configuration. This will destroy the associated edit session specific MBeanServer and remove the <domain>/edit/<name> or <domain>/partitions/<name>/edit/<name> directory and subdirectories.
In case of unactivated changes or if the session is created or locked by another user,
IllegalArgumentException
is thrown. To successfully complete the operation in such cases, less restrictive
counterpart EditSessionConfigurationManagerMBean.forceDestroyEditSessionConfiguration(EditSessionConfigurationRuntimeMBean)
of this method has
to be used.
editSession
- Edit session to destroy.ServiceFailureException
ManagementException
void forceDestroyEditSessionConfiguration(EditSessionConfigurationRuntimeMBean editSession) throws ServiceFailureException, ManagementException
Destroys an existing named edit session configuration. This will destroy the associated edit session specific MBeanServer and remove the <domain>/edit/<name> or <domain>/partitions/<name>/edit/<name> directory and subdirectories.
Unlike EditSessionConfigurationManagerMBean.destroyEditSessionConfiguration(EditSessionConfigurationRuntimeMBean)
, this operation does not
end with error in case that session contains unactivated changes, and allows to destroy even edit sessions not
owned by the caller (requires admin privileges).
editSession
- Edit session to destroy.ServiceFailureException
ManagementException