[
https://issues.jboss.org/browse/AS7-3456?page=com.atlassian.jira.plugin.s...
]
Richard Achmatowicz commented on AS7-3456:
------------------------------------------
Went through the CommonAttributes file and adjusted the definitions as follows:
- for each definition, used SimpleAttributeDefinitoonBuilder to provide a more complete
definition of the attribute, as in:
{noformat}
SimpleAttributeDefinition L1_LIFESPAN =
new SimpleAttributeDefinitionBuilder(ModelKeys.L1_LIFESPAN, ModelType.LONG,
true)
.setXmlName(Attribute.L1_LIFESPAN.getLocalName())
.setMeasurementUnit(MeasurementUnit.MILLISECONDS)
.setAllowExpression(false)
.setFlags(AttributeAccess.Flag.RESTART_ALL_SERVICES)
.setDefaultValue(new ModelNode().set(600000))
.build();
{noformat}
- made sure that every default value provided in the xsd was correspondingly reflected in
the CommonAttributes
- added in validators for the following types (a few still to be completed):
StartModeTypeValidator
LockingIsolationTypeValidator
TransactionModeValidator
EvictionStrategyValidator
IndexingTypeValidator
EagerLockingTypeValidator
CacheModeTypeValidator
Synchronize default values provided by Infinispan xsd and Management
AttributeDefinitions
-----------------------------------------------------------------------------------------
Key: AS7-3456
URL:
https://issues.jboss.org/browse/AS7-3456
Project: Application Server 7
Issue Type: Task
Components: Domain Management
Affects Versions: 7.1.0.CR1b
Reporter: Richard Achmatowicz
Assignee: Richard Achmatowicz
Fix For: 7.1.0.Final
Need to make sure that the default values for Infinispan cache configuration elements and
attributes are correctly picked up, whether from XML (via definition in the xsd) or from
the management interface, programmatically or via the command line (via CommonAttribute
definitions).
The main tasks here are to:
- correctly define the default values for all common attributes used
- make sure that any resource handlers make use of the appropriate AttributeDefinition
methods which use the attribute definition to correctly pick up default values for
parameters which have not had values specified:
attr.validateOperation(operation) // validate the value of the attribute in
the operation and return it
attr.validateAndSet(operation, model) // as above and set the value in the
model
attr.validateResolvedOperation(operation) // validate the resolved value for
the EXPRESSION type
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira