Class Descriptor
java.lang.Object
org.xml.sax.helpers.DefaultHandler
org.apache.uima.adapter.vinci.util.Descriptor
- All Implemented Interfaces:
ContentHandler
,DTDHandler
,EntityResolver
,ErrorHandler
Instance of this class handles parsing of the xml descriptor files. It also retrieves values of
the named attributes of the named elements.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDescriptor
(String filePath) Constructor responsible for parsing the descriptor file named in filePath. -
Method Summary
Modifier and TypeMethodDescriptionprivate String
getAttribute
(String attrName, Attributes attribs) Returns the filterString.int
Returns the instanceCount.private String
Returns the resourceSpecifierPath.int
Returns the serviceName.int
int
private Document
void
setFilterString
(String filterString) Sets the filterString.void
setInstanceCount
(int instanceCount) Sets the instanceCount.void
setNamingServiceHost
(String namingServiceHost) void
setResourceSpecifierPath
(String resourceSpecifierPath) Sets the resourceSpecifierPath.void
setServerSocketTimeout
(int serverSocketTimeout) void
setServiceName
(String serviceName) Sets the serviceName.void
setThreadPoolMaxSize
(int threadPoolMaxSize) void
setThreadPoolMinSize
(int threadPoolMinSize) void
startElement
(String uri, String localName, String qName, Attributes attribs) Methods inherited from class org.xml.sax.helpers.DefaultHandler
characters, endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
-
Field Details
-
serviceName
-
instanceCount
private int instanceCount -
resourceSpecifierPath
-
filterString
-
namingServiceHost
-
serverSocketTimeout
private int serverSocketTimeout -
threadPoolMinSize
private int threadPoolMinSize -
threadPoolMaxSize
private int threadPoolMaxSize
-
-
Constructor Details
-
Descriptor
Constructor responsible for parsing the descriptor file named in filePath.- Parameters:
filePath
- Fully qualified path the xml descriptor.
-
-
Method Details
-
parse
-
getAttribute
-
getName
-
startElement
- Specified by:
startElement
in interfaceContentHandler
- Overrides:
startElement
in classDefaultHandler
-
getThreadPoolMaxSize
public int getThreadPoolMaxSize() -
setThreadPoolMaxSize
public void setThreadPoolMaxSize(int threadPoolMaxSize) -
getThreadPoolMinSize
public int getThreadPoolMinSize() -
setThreadPoolMinSize
public void setThreadPoolMinSize(int threadPoolMinSize) -
getInstanceCount
public int getInstanceCount()Returns the instanceCount.- Returns:
- int
-
getResourceSpecifierPath
Returns the resourceSpecifierPath.- Returns:
- String
-
getServiceName
Returns the serviceName.- Returns:
- String
-
setInstanceCount
public void setInstanceCount(int instanceCount) Sets the instanceCount.- Parameters:
instanceCount
- The instanceCount to set
-
setResourceSpecifierPath
Sets the resourceSpecifierPath.- Parameters:
resourceSpecifierPath
- The resourceSpecifierPath to set
-
setServiceName
Sets the serviceName.- Parameters:
serviceName
- The serviceName to set
-
getFilterString
Returns the filterString.- Returns:
- String
-
setFilterString
Sets the filterString.- Parameters:
filterString
- The filterString to set
-
getNamingServiceHost
-
setNamingServiceHost
-
getServerSocketTimeout
public int getServerSocketTimeout() -
setServerSocketTimeout
public void setServerSocketTimeout(int serverSocketTimeout)
-