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.
-
Constructor Summary
ConstructorsConstructorDescriptionDescriptor(String filePath) Constructor responsible for parsing the descriptor file named in filePath. -
Method Summary
Modifier and TypeMethodDescriptionReturns the filterString.intReturns the instanceCount.Returns the resourceSpecifierPath.intReturns the serviceName.intintvoidsetFilterString(String filterString) Sets the filterString.voidsetInstanceCount(int instanceCount) Sets the instanceCount.voidsetNamingServiceHost(String namingServiceHost) voidsetResourceSpecifierPath(String resourceSpecifierPath) Sets the resourceSpecifierPath.voidsetServerSocketTimeout(int serverSocketTimeout) voidsetServiceName(String serviceName) Sets the serviceName.voidsetThreadPoolMaxSize(int threadPoolMaxSize) voidsetThreadPoolMinSize(int threadPoolMinSize) voidstartElement(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
-
Constructor Details
-
Descriptor
Constructor responsible for parsing the descriptor file named in filePath.- Parameters:
filePath- Fully qualified path the xml descriptor.
-
-
Method Details
-
startElement
- Specified by:
startElementin interfaceContentHandler- Overrides:
startElementin 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)
-