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 Details

    • Descriptor

      public Descriptor(String filePath)
      Constructor responsible for parsing the descriptor file named in filePath.
      Parameters:
      filePath - Fully qualified path the xml descriptor.
  • Method Details

    • startElement

      public void startElement(String uri, String localName, String qName, Attributes attribs)
      Specified by:
      startElement in interface ContentHandler
      Overrides:
      startElement in class DefaultHandler
    • 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

      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()
      Gets the naming service host.
      Returns:
      the naming service host
    • setNamingServiceHost

      public void setNamingServiceHost(String namingServiceHost)
      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