Package org.jboss.as.threads
Class ThreadsParser
- java.lang.Object
-
- org.jboss.as.threads.ThreadsParser
-
- All Implemented Interfaces:
XMLStreamConstants
,org.jboss.staxmapper.XMLElementReader<List<org.jboss.dmr.ModelNode>>
,org.jboss.staxmapper.XMLElementWriter<SubsystemMarshallingContext>
public final class ThreadsParser extends Object implements XMLStreamConstants, org.jboss.staxmapper.XMLElementReader<List<org.jboss.dmr.ModelNode>>, org.jboss.staxmapper.XMLElementWriter<SubsystemMarshallingContext>
Parser for the threads subsystem or for other subsystems that use pieces of the basic threads subsystem xsd and resource structure.
-
-
Field Summary
-
Fields inherited from interface javax.xml.stream.XMLStreamConstants
ATTRIBUTE, CDATA, CHARACTERS, COMMENT, DTD, END_DOCUMENT, END_ELEMENT, ENTITY_DECLARATION, ENTITY_REFERENCE, NAMESPACE, NOTATION_DECLARATION, PROCESSING_INSTRUCTION, SPACE, START_DOCUMENT, START_ELEMENT
-
-
Constructor Summary
Constructors Constructor Description ThreadsParser()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static ThreadsParser
getInstance()
Deprecated.String
parseBlockingBoundedQueueThreadPool(org.jboss.staxmapper.XMLExtendedStreamReader reader, String expectedNs, Namespace threadsNamespace, org.jboss.dmr.ModelNode parentAddress, List<org.jboss.dmr.ModelNode> list, String childType, String providedName)
String
parseBoundedQueueThreadPool(org.jboss.staxmapper.XMLExtendedStreamReader reader, String expectedNs, Namespace threadsNamespace, org.jboss.dmr.ModelNode parentAddress, List<org.jboss.dmr.ModelNode> list, String childType, String providedName)
String
parseEnhancedQueueThreadPool(org.jboss.staxmapper.XMLExtendedStreamReader reader, String expectedNs, Namespace threadsNamespace, org.jboss.dmr.ModelNode parentAddress, List<org.jboss.dmr.ModelNode> list, String childType, String providedName)
String
parseScheduledThreadPool(org.jboss.staxmapper.XMLExtendedStreamReader reader, String expectedNs, Namespace threadsNamespace, org.jboss.dmr.ModelNode parentAddress, List<org.jboss.dmr.ModelNode> list, String childType, String providedName)
String
parseThreadFactory(org.jboss.staxmapper.XMLExtendedStreamReader reader, String expectedNs, Namespace threadsNamespace, org.jboss.dmr.ModelNode parentAddress, List<org.jboss.dmr.ModelNode> list, String childType, String providedName)
String
parseUnboundedQueueThreadPool(org.jboss.staxmapper.XMLExtendedStreamReader reader, String expectedNs, Namespace threadsNamespace, org.jboss.dmr.ModelNode parentAddress, List<org.jboss.dmr.ModelNode> list, String childType, String providedName)
void
readElement(org.jboss.staxmapper.XMLExtendedStreamReader reader, List<org.jboss.dmr.ModelNode> list)
void
writeBlockingBoundedQueueThreadPool(org.jboss.staxmapper.XMLExtendedStreamWriter writer, org.jboss.dmr.Property property)
void
writeBlockingQueuelessThreadPool(org.jboss.staxmapper.XMLExtendedStreamWriter writer, org.jboss.dmr.Property property)
void
writeBoundedQueueThreadPool(org.jboss.staxmapper.XMLExtendedStreamWriter writer, org.jboss.dmr.Property property)
void
writeBoundedQueueThreadPool(org.jboss.staxmapper.XMLExtendedStreamWriter writer, org.jboss.dmr.Property property, String elementName, boolean includeName)
void
writeBoundedQueueThreadPool(org.jboss.staxmapper.XMLExtendedStreamWriter writer, org.jboss.dmr.Property property, String elementName, boolean includeName, boolean blocking)
void
writeContent(org.jboss.staxmapper.XMLExtendedStreamWriter writer, SubsystemMarshallingContext context)
void
writeEnhancedQueueThreadPool(org.jboss.staxmapper.XMLExtendedStreamWriter writer, org.jboss.dmr.Property property, String elementName, boolean includeName)
void
writeQueuelessThreadPool(org.jboss.staxmapper.XMLExtendedStreamWriter writer, org.jboss.dmr.Property property)
void
writeScheduledQueueThreadPool(org.jboss.staxmapper.XMLExtendedStreamWriter writer, org.jboss.dmr.Property property)
void
writeScheduledQueueThreadPool(org.jboss.staxmapper.XMLExtendedStreamWriter writer, org.jboss.dmr.Property property, String elementName, boolean includeName)
void
writeThreadFactory(org.jboss.staxmapper.XMLExtendedStreamWriter writer, org.jboss.dmr.Property property)
void
writeThreadFactory(org.jboss.staxmapper.XMLExtendedStreamWriter writer, org.jboss.dmr.Property property, String elementName, boolean includeName)
void
writeThreadsElement(org.jboss.staxmapper.XMLExtendedStreamWriter writer, org.jboss.dmr.ModelNode node)
void
writeUnboundedQueueThreadPool(org.jboss.staxmapper.XMLExtendedStreamWriter writer, org.jboss.dmr.Property property)
void
writeUnboundedQueueThreadPool(org.jboss.staxmapper.XMLExtendedStreamWriter writer, org.jboss.dmr.Property property, String elementName, boolean includeName)
-
-
-
Method Detail
-
getInstance
@Deprecated public static ThreadsParser getInstance()
Deprecated.
-
readElement
public void readElement(org.jboss.staxmapper.XMLExtendedStreamReader reader, List<org.jboss.dmr.ModelNode> list) throws XMLStreamException
- Specified by:
readElement
in interfaceorg.jboss.staxmapper.XMLElementReader<List<org.jboss.dmr.ModelNode>>
- Throws:
XMLStreamException
-
parseThreadFactory
public String parseThreadFactory(org.jboss.staxmapper.XMLExtendedStreamReader reader, String expectedNs, Namespace threadsNamespace, org.jboss.dmr.ModelNode parentAddress, List<org.jboss.dmr.ModelNode> list, String childType, String providedName) throws XMLStreamException
- Throws:
XMLStreamException
-
parseBlockingBoundedQueueThreadPool
public String parseBlockingBoundedQueueThreadPool(org.jboss.staxmapper.XMLExtendedStreamReader reader, String expectedNs, Namespace threadsNamespace, org.jboss.dmr.ModelNode parentAddress, List<org.jboss.dmr.ModelNode> list, String childType, String providedName) throws XMLStreamException
- Throws:
XMLStreamException
-
parseBoundedQueueThreadPool
public String parseBoundedQueueThreadPool(org.jboss.staxmapper.XMLExtendedStreamReader reader, String expectedNs, Namespace threadsNamespace, org.jboss.dmr.ModelNode parentAddress, List<org.jboss.dmr.ModelNode> list, String childType, String providedName) throws XMLStreamException
- Throws:
XMLStreamException
-
parseUnboundedQueueThreadPool
public String parseUnboundedQueueThreadPool(org.jboss.staxmapper.XMLExtendedStreamReader reader, String expectedNs, Namespace threadsNamespace, org.jboss.dmr.ModelNode parentAddress, List<org.jboss.dmr.ModelNode> list, String childType, String providedName) throws XMLStreamException
- Throws:
XMLStreamException
-
parseEnhancedQueueThreadPool
public String parseEnhancedQueueThreadPool(org.jboss.staxmapper.XMLExtendedStreamReader reader, String expectedNs, Namespace threadsNamespace, org.jboss.dmr.ModelNode parentAddress, List<org.jboss.dmr.ModelNode> list, String childType, String providedName) throws XMLStreamException
- Throws:
XMLStreamException
-
parseScheduledThreadPool
public String parseScheduledThreadPool(org.jboss.staxmapper.XMLExtendedStreamReader reader, String expectedNs, Namespace threadsNamespace, org.jboss.dmr.ModelNode parentAddress, List<org.jboss.dmr.ModelNode> list, String childType, String providedName) throws XMLStreamException
- Throws:
XMLStreamException
-
writeContent
public void writeContent(org.jboss.staxmapper.XMLExtendedStreamWriter writer, SubsystemMarshallingContext context) throws XMLStreamException
- Specified by:
writeContent
in interfaceorg.jboss.staxmapper.XMLElementWriter<SubsystemMarshallingContext>
- Throws:
XMLStreamException
-
writeThreadsElement
public void writeThreadsElement(org.jboss.staxmapper.XMLExtendedStreamWriter writer, org.jboss.dmr.ModelNode node) throws XMLStreamException
- Throws:
XMLStreamException
-
writeThreadFactory
public void writeThreadFactory(org.jboss.staxmapper.XMLExtendedStreamWriter writer, org.jboss.dmr.Property property) throws XMLStreamException
- Throws:
XMLStreamException
-
writeThreadFactory
public void writeThreadFactory(org.jboss.staxmapper.XMLExtendedStreamWriter writer, org.jboss.dmr.Property property, String elementName, boolean includeName) throws XMLStreamException
- Throws:
XMLStreamException
-
writeBlockingBoundedQueueThreadPool
public void writeBlockingBoundedQueueThreadPool(org.jboss.staxmapper.XMLExtendedStreamWriter writer, org.jboss.dmr.Property property) throws XMLStreamException
- Throws:
XMLStreamException
-
writeBoundedQueueThreadPool
public void writeBoundedQueueThreadPool(org.jboss.staxmapper.XMLExtendedStreamWriter writer, org.jboss.dmr.Property property) throws XMLStreamException
- Throws:
XMLStreamException
-
writeBoundedQueueThreadPool
public void writeBoundedQueueThreadPool(org.jboss.staxmapper.XMLExtendedStreamWriter writer, org.jboss.dmr.Property property, String elementName, boolean includeName) throws XMLStreamException
- Throws:
XMLStreamException
-
writeBoundedQueueThreadPool
public void writeBoundedQueueThreadPool(org.jboss.staxmapper.XMLExtendedStreamWriter writer, org.jboss.dmr.Property property, String elementName, boolean includeName, boolean blocking) throws XMLStreamException
- Throws:
XMLStreamException
-
writeBlockingQueuelessThreadPool
public void writeBlockingQueuelessThreadPool(org.jboss.staxmapper.XMLExtendedStreamWriter writer, org.jboss.dmr.Property property) throws XMLStreamException
- Throws:
XMLStreamException
-
writeQueuelessThreadPool
public void writeQueuelessThreadPool(org.jboss.staxmapper.XMLExtendedStreamWriter writer, org.jboss.dmr.Property property) throws XMLStreamException
- Throws:
XMLStreamException
-
writeScheduledQueueThreadPool
public void writeScheduledQueueThreadPool(org.jboss.staxmapper.XMLExtendedStreamWriter writer, org.jboss.dmr.Property property) throws XMLStreamException
- Throws:
XMLStreamException
-
writeScheduledQueueThreadPool
public void writeScheduledQueueThreadPool(org.jboss.staxmapper.XMLExtendedStreamWriter writer, org.jboss.dmr.Property property, String elementName, boolean includeName) throws XMLStreamException
- Throws:
XMLStreamException
-
writeUnboundedQueueThreadPool
public void writeUnboundedQueueThreadPool(org.jboss.staxmapper.XMLExtendedStreamWriter writer, org.jboss.dmr.Property property) throws XMLStreamException
- Throws:
XMLStreamException
-
writeUnboundedQueueThreadPool
public void writeUnboundedQueueThreadPool(org.jboss.staxmapper.XMLExtendedStreamWriter writer, org.jboss.dmr.Property property, String elementName, boolean includeName) throws XMLStreamException
- Throws:
XMLStreamException
-
writeEnhancedQueueThreadPool
public void writeEnhancedQueueThreadPool(org.jboss.staxmapper.XMLExtendedStreamWriter writer, org.jboss.dmr.Property property, String elementName, boolean includeName) throws XMLStreamException
- Throws:
XMLStreamException
-
-