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.Gets the naming service host.Returns the resourceSpecifierPath.intGets the server socket timeout.Returns the serviceName.intGets the thread pool max size.intGets the thread pool min size.voidsetFilterString(String filterString) Sets the filterString.voidsetInstanceCount(int instanceCount) Sets the instanceCount.voidsetNamingServiceHost(String namingServiceHost) Sets the naming service host.voidsetResourceSpecifierPath(String resourceSpecifierPath) Sets the resourceSpecifierPath.voidsetServerSocketTimeout(int serverSocketTimeout) Sets the server socket timeout.voidsetServiceName(String serviceName) Sets the serviceName.voidsetThreadPoolMaxSize(int threadPoolMaxSize) Sets the thread pool max size.voidsetThreadPoolMinSize(int threadPoolMinSize) Sets the thread pool min size.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, warningMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
startElementin interfaceContentHandler- Overrides:
startElementin 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
-