public class Descriptor extends org.xml.sax.helpers.DefaultHandler
Constructor and Description |
---|
Descriptor(String filePath)
Constructor responsible for parsing the descriptor file named in filePath.
|
Modifier and Type | Method and Description |
---|---|
String |
getFilterString()
Returns the filterString.
|
int |
getInstanceCount()
Returns the instanceCount.
|
String |
getNamingServiceHost() |
String |
getResourceSpecifierPath()
Returns the resourceSpecifierPath.
|
int |
getServerSocketTimeout() |
String |
getServiceName()
Returns the serviceName.
|
int |
getThreadPoolMaxSize() |
int |
getThreadPoolMinSize() |
void |
setFilterString(String filterString)
Sets the filterString.
|
void |
setInstanceCount(int instanceCount)
Sets the instanceCount.
|
void |
setNamingServiceHost(String namingServiceHost) |
void |
setResourceSpecifierPath(String resourceSpecifierPath)
Sets the resourceSpecifierPath.
|
void |
setServerSocketTimeout(int serverSocketTimeout) |
void |
setServiceName(String serviceName)
Sets the serviceName.
|
void |
setThreadPoolMaxSize(int threadPoolMaxSize) |
void |
setThreadPoolMinSize(int threadPoolMinSize) |
void |
startElement(String uri,
String localName,
String qName,
Attributes attribs) |
characters, endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
public Descriptor(String filePath)
filePath
- Fully qualified path the xml descriptor.public void startElement(String uri, String localName, String qName, Attributes attribs)
startElement
in interface ContentHandler
startElement
in class org.xml.sax.helpers.DefaultHandler
public int getThreadPoolMaxSize()
public void setThreadPoolMaxSize(int threadPoolMaxSize)
public int getThreadPoolMinSize()
public void setThreadPoolMinSize(int threadPoolMinSize)
public int getInstanceCount()
public String getResourceSpecifierPath()
public String getServiceName()
public void setInstanceCount(int instanceCount)
instanceCount
- The instanceCount to setpublic void setResourceSpecifierPath(String resourceSpecifierPath)
resourceSpecifierPath
- The resourceSpecifierPath to setpublic void setServiceName(String serviceName)
serviceName
- The serviceName to setpublic String getFilterString()
public void setFilterString(String filterString)
filterString
- The filterString to setpublic String getNamingServiceHost()
public void setNamingServiceHost(String namingServiceHost)
public int getServerSocketTimeout()
public void setServerSocketTimeout(int serverSocketTimeout)
Copyright © 2014. All rights reserved.