New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ISPN-6553 Configuration Serialization #4274
ISPN-6553 Configuration Serialization #4274
Conversation
|
||
|
||
/** | ||
* Writes this attributes to the specified XMLStreamWriter |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This Javadoc could be probably removed or we should add proper docs to the rest of the methods (I would vote for the latter).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have added javadocs
There are some CI failures that seems to be related |
This PR is gigantic. Are there any places where we should focus on? |
69a3010
to
024c266
Compare
Yes, sorry about the size.
|
024c266
to
19fa6c9
Compare
@@ -25,7 +27,7 @@ | |||
private static final Log LOG = LogFactory.getLog(ServiceFinder.class); | |||
|
|||
public static <T> Set<T> load(Class<T> contract, ClassLoader... loaders) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it can return a Collection<T>
...
static final AttributeDefinition<Integer> MAX_FILE_SIZE = AttributeDefinition.builder("maxFileSize", 16 * 1024 * 1024).immutable().autoPersist(false).build(); | ||
static final AttributeDefinition<Integer> MIN_NODE_SIZE = AttributeDefinition.builder("minNodeSize", -1).immutable().autoPersist(false).build(); | ||
static final AttributeDefinition<Integer> MAX_NODE_SIZE = AttributeDefinition.builder("maxNodeSize", 4096).immutable().autoPersist(false).build(); | ||
static final AttributeDefinition<Integer> INDEX_QUEUE_LENGTH = AttributeDefinition.builder("indexQueueLength", 1000).immutable().autoPersist(false).build(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing .xmlName("max-queue-length")
hey @tristantarrant, I've finished my review about the unit test for the cache-stores. it is just a couple of minor fixes :) |
7bae908
to
f53885e
Compare
@pruivo done |
f53885e
to
5826792
Compare
Right :) |
5826792
to
c03b784
Compare
static final AttributeDefinition<Boolean> SYNC_WRITES = AttributeDefinition.builder("syncWrites", false).immutable().build(); | ||
static final AttributeDefinition<String> DATA_LOCATION = AttributeDefinition.builder("dataLocation", "Infinispan-SoftIndexFileStore-Data").immutable().autoPersist(false).xmlName("path").build(); | ||
static final AttributeDefinition<String> INDEX_LOCATION = AttributeDefinition.builder("indexLocation", "Infinispan-SoftIndexFileStore-Index").immutable().autoPersist(false).xmlName("path").build(); | ||
static final AttributeDefinition<Integer> INDEX_SEGMENTS = AttributeDefinition.builder("indexSegments", 3).immutable().autoPersist(false).autoPersist(false).xmlName("segments").build(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nitpick: autoPersist invoked twice.
c03b784
to
201faf5
Compare
Now ? :) |
if (reader.hasNext() && (reader.nextTag() != XMLStreamConstants.END_ELEMENT)) { | ||
throw ParseUtils.unexpectedElement(reader); | ||
while (reader.hasNext() && (reader.nextTag() != XMLStreamConstants.END_ELEMENT)) { | ||
Element element = Element.forName(reader.getLocalName()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not needed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed
201faf5
to
4dd4f8b
Compare
Nope, looks good to me. |
integrated! thanks @tristantarrant ! |
https://issues.jboss.org/browse/ISPN-6552
Merge parsers
https://issues.jboss.org/browse/ISPN-6553
Configuration serialization
https://issues.jboss.org/browse/ISPN-6554
XML configuration converter for 6.0 files