|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface VersioningConfigurationMBean
Configuration MBean interface for Processes' Versioning.
Declare versioning information lookups and configuration settings at run-time.
There is one instance of VersioningConfigurationMBean per versioned group. That is, each versioning MBean is
identified by its service's group URI that can be accessed with : getGroup()
You can get the current active component for a this group by calling:
String activeURI = getActiveComponent ()
.
For instance,
the resulting activeURI could be "/webappName/relativePath/process_v1.jpd"
which would be one
of the component URI registered for this group.
Additionally, this MBean can access and set the attributes of each component as well as the group's attributes such as:
validate()
method to ensure that the modifications did not break the versioning
integrity.
Note that this MBean does not allow to add or remove a version component.
Field Summary | |
---|---|
static long |
CACHING_STUB_SVUID
The magic number that is used to generate the serialVersionUID of the generated MBean Stub (xxxMBean_Stub). |
Fields inherited from interface weblogic.management.configuration.ConfigurationMBean |
---|
DEFAULT_EMPTY_BYTE_ARRAY |
Method Summary | |
---|---|
long |
getActivationTime(String componentURI)
Get the activation time for a particular component |
String |
getActiveComponent()
Get the current runtime active component for this MBean's group The current active component for a group is selected as follows: its active flag is "true" it has the most recent activation date among all the active components in its group it complies to the interface defined by the default component of the group |
String[] |
getComponentArray()
Get the array of component URIs that belongs to the component group |
long |
getDeactivationTime(String componentURI)
Get the deactivation time for a particular component |
String |
getDefaultComponent()
Get the String URI of the default component (or interface) for a particular group |
String |
getGroup()
Get the component group URI for this MBean |
boolean |
isEnabled(String componentURI)
Is the component enabled? |
boolean |
isVersioningEnabled()
Is Version Manager enabled and initialized? |
void |
set(String componentURI,
boolean active,
long activationDate)
Set both the activation date and the active flag of a particular component. |
void |
set(String componentURI,
boolean active,
long activationDate,
long deactivationDate)
Set both the activation date and the active flag of a particular component. |
void |
setActivationTime(String componentURI,
long activationTime)
Set the activation time of a particular component , keep the same activation date. |
void |
setDeactivationTime(String componentURI,
long deactivationTime)
Set the activation time of a particular component , keep the same activation date. |
void |
setEnabled(String componentURI,
boolean active)
Enable or disable a particular component active attribute |
String[] |
validate()
Validate the current Version configuration, keep the same active flag A configuration is valid if there is only one currently active version or if there are multiple active versions and each of them has distinct activation dates. |
Methods inherited from interface weblogic.management.configuration.ConfigurationMBean |
---|
freezeCurrentValue, getComments, getName, getNotes, isDefaultedMBean, isPersistenceEnabled, isSet, restoreDefaultValue, setComments, setDefaultedMBean, setName, setNotes, setPersistenceEnabled, touch, unSet |
Methods inherited from interface weblogic.management.WebLogicMBean |
---|
getMBeanInfo, getObjectName, getParent, getType, isCachingDisabled, isRegistered, setParent |
Methods inherited from interface javax.management.DynamicMBean |
---|
getAttribute, getAttributes, invoke, setAttribute, setAttributes |
Methods inherited from interface javax.management.MBeanRegistration |
---|
postDeregister, postRegister, preDeregister, preRegister |
Methods inherited from interface javax.management.NotificationBroadcaster |
---|
addNotificationListener, getNotificationInfo, removeNotificationListener |
Methods inherited from interface weblogic.descriptor.DescriptorBean |
---|
addBeanUpdateListener, addPropertyChangeListener, createChildCopy, createChildCopyIncludingObsolete, getDescriptor, getParentBean, isEditable, removeBeanUpdateListener, removePropertyChangeListener |
Field Detail |
---|
static final long CACHING_STUB_SVUID
- remove an existing method.
- change the signature of an existing "getter" or "setter" method.
- change the signature of an existing "boolean getter", i.e, "boolean isEnabled()"
Otherwise you don't need to change this value. For instance you can add new methods, or you can change the signature of methods that don't start with "get", "set" or "is". If you are in doubt then change the SVUID. It is a good idea to increment this value when changing.
Method Detail |
---|
boolean isVersioningEnabled()
String getGroup()
String getActiveComponent() throws VersionException
VersionException
- if the versioning manager is disabled
or an unexpected error happened.String[] getComponentArray() throws VersionException
VersionException
- if the versioning manager is disabled
or an unexpected error happened.long getActivationTime(String componentURI) throws VersionException
componentURI
- String URI of component
VersionException
- if the versioning manager is disabled
or an unexpected error happened.long getDeactivationTime(String componentURI) throws VersionException
componentURI
- String URI of component
VersionException
- if the versioning manager is disabled
or an unexpected error happened.boolean isEnabled(String componentURI) throws VersionException
componentURI
- String URI of component
VersionException
- if the versioning manager is disabled
or an unexpected error happened.String getDefaultComponent() throws javax.management.MBeanException
javax.management.MBeanException
void set(String componentURI, boolean active, long activationDate) throws VersionException
componentURI
- String URI of this componentactive
- toggle activation valueactivationDate
- time of activation in seconds since 01.01.1970 00:00.00 GMT
VersionException
- if the change causes more than one version to be active at the same time
or the versioning manager is disabled
or an unexpected error happened.void set(String componentURI, boolean active, long activationDate, long deactivationDate) throws VersionException
componentURI
- String URI of this componentactive
- toggle activation valueactivationDate
- time of activation in seconds since 01.01.1970 00:00.00 GMTdeactivationDate
- time of deactivation in seconds since 01.01.1970 00:00.00 GMT
VersionException
- if the change causes more than one version to be active at the same time
or the versioning manager is disabled
or an unexpected error happened.void setEnabled(String componentURI, boolean active) throws VersionException
componentURI
- String URI of this componentactive
- toggle activation value
VersionException
- if the change causes more than one version to be active at the same time
or an unexpected error happened.void setActivationTime(String componentURI, long activationTime) throws VersionException
componentURI
- String URI of componentactivationTime
- time of activation in seconds since 01.01.1970 00:00.00 GMT
VersionException
- if
if the change causes more than one version to be active at the same time
or the versioning manager is disabled
or an unexpected error happened.void setDeactivationTime(String componentURI, long deactivationTime) throws VersionException
componentURI
- String URI of componentdeactivationTime
- time of deactivation in seconds since 01.01.1970 00:00.00 GMT
VersionException
- if
if the change causes more than one version to be active at the same time
or the versioning manager is disabled
or an unexpected error happened.String[] validate() throws VersionException
VersionException
- if the versioning manager is disabled
or an unexpected error happened.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |