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
ConstructorDescriptionDescriptor
(String filePath) Constructor responsible for parsing the descriptor file named in filePath. -
Method Summary
Modifier and TypeMethodDescriptionReturns the filterString.int
Returns the instanceCount.Gets the naming service host.Returns the resourceSpecifierPath.int
Gets the server socket timeout.Returns the serviceName.int
Gets the thread pool max size.int
Gets the thread pool min size.void
setFilterString
(String filterString) Sets the filterString.void
setInstanceCount
(int instanceCount) Sets the instanceCount.void
setNamingServiceHost
(String namingServiceHost) Sets the naming service host.void
setResourceSpecifierPath
(String resourceSpecifierPath) Sets the resourceSpecifierPath.void
setServerSocketTimeout
(int serverSocketTimeout) Sets the server socket timeout.void
setServiceName
(String serviceName) Sets the serviceName.void
setThreadPoolMaxSize
(int threadPoolMaxSize) Sets the thread pool max size.void
setThreadPoolMinSize
(int threadPoolMinSize) Sets the thread pool min size.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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.xml.sax.ContentHandler
declaration
-
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:
startElement
in interfaceContentHandler
- Overrides:
startElement
in classDefaultHandler
-
getThreadPoolMaxSize
public int getThreadPoolMaxSize()Gets the thread pool max size.- Returns:
- the thread pool max size
-
setThreadPoolMaxSize
public void setThreadPoolMaxSize(int threadPoolMaxSize) Sets the thread pool max size.- Parameters:
threadPoolMaxSize
- the new thread pool max size
-
getThreadPoolMinSize
public int getThreadPoolMinSize()Gets the thread pool min size.- Returns:
- the thread pool min size
-
setThreadPoolMinSize
public void setThreadPoolMinSize(int threadPoolMinSize) Sets the thread pool min size.- Parameters:
threadPoolMinSize
- the new thread pool min size
-
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
Gets the naming service host.- Returns:
- the naming service host
-
setNamingServiceHost
Sets the naming service host.- Parameters:
namingServiceHost
- the new naming service host
-
getServerSocketTimeout
public int getServerSocketTimeout()Gets the server socket timeout.- Returns:
- the server socket timeout
-
setServerSocketTimeout
public void setServerSocketTimeout(int serverSocketTimeout) Sets the server socket timeout.- Parameters:
serverSocketTimeout
- the new server socket timeout
-