Class Descriptor
- java.lang.Object
-
- org.xml.sax.helpers.DefaultHandler
-
- org.apache.uima.adapter.vinci.util.Descriptor
-
- All Implemented Interfaces:
ContentHandler,DTDHandler,EntityResolver,ErrorHandler
public class Descriptor extends DefaultHandler
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
Constructors Constructor Description Descriptor(String filePath)Constructor responsible for parsing the descriptor file named in filePath.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetFilterString()Returns the filterString.intgetInstanceCount()Returns the instanceCount.StringgetNamingServiceHost()StringgetResourceSpecifierPath()Returns the resourceSpecifierPath.intgetServerSocketTimeout()StringgetServiceName()Returns the serviceName.intgetThreadPoolMaxSize()intgetThreadPoolMinSize()voidsetFilterString(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 Detail
-
Descriptor
public Descriptor(String filePath)
Constructor responsible for parsing the descriptor file named in filePath.- Parameters:
filePath- Fully qualified path the xml descriptor.
-
-
Method Detail
-
startElement
public void startElement(String uri, String localName, String qName, Attributes attribs)
- 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
public String getResourceSpecifierPath()
Returns the resourceSpecifierPath.- Returns:
- String
-
getServiceName
public String getServiceName()
Returns the serviceName.- Returns:
- String
-
setInstanceCount
public void setInstanceCount(int instanceCount)
Sets the instanceCount.- Parameters:
instanceCount- The instanceCount to set
-
setResourceSpecifierPath
public void setResourceSpecifierPath(String resourceSpecifierPath)
Sets the resourceSpecifierPath.- Parameters:
resourceSpecifierPath- The resourceSpecifierPath to set
-
setServiceName
public void setServiceName(String serviceName)
Sets the serviceName.- Parameters:
serviceName- The serviceName to set
-
getFilterString
public String getFilterString()
Returns the filterString.- Returns:
- String
-
setFilterString
public void setFilterString(String filterString)
Sets the filterString.- Parameters:
filterString- The filterString to set
-
getNamingServiceHost
public String getNamingServiceHost()
-
setNamingServiceHost
public void setNamingServiceHost(String namingServiceHost)
-
getServerSocketTimeout
public int getServerSocketTimeout()
-
setServerSocketTimeout
public void setServerSocketTimeout(int serverSocketTimeout)
-
-