public class LeoDeployDescriptor extends Object
| Constructor and Description |
|---|
LeoDeployDescriptor(LeoAEDescriptor faed)
Constructor that sets top descriptor initially.
|
LeoDeployDescriptor(String filename,
boolean byName)
Constructor to start with top descriptor by at filename.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
deploymentSectionXML(TransformerHandler thd)
Serialize the deployment section.
|
String |
getBrokerURL()
get the broker url for this deployment descriptor.
|
int |
getCasPoolSize()
Get the cas pool size for this deployment.
|
String |
getDescription()
Get the description of this deployment descriptor.
|
String |
getEndpoint()
Get the endpoint for this deployment descriptor.
|
int |
getInitialFsHeapSize()
get the initial fs heap size for this deployment.
|
String |
getName()
Return the name of this Deployment.
|
LeoAEDescriptor |
getTopDescriptor()
Get a reference to the top descriptor for this service.
|
protected void |
serviceSectionXML(TransformerHandler thd)
Serialize the service section.
|
LeoDeployDescriptor |
setBrokerURL(String brokerURL)
Set the broker url for this deployment descriptor.
|
LeoDeployDescriptor |
setCasPoolSize(int casPoolSize)
Set the cas pool size for this deployment.
|
LeoDeployDescriptor |
setDescription(String description)
Set the description for this deployment descriptor.
|
LeoDeployDescriptor |
setEndpoint(String endpoint)
Set the endpoint for this deployment descriptor.
|
LeoDeployDescriptor |
setInitialFsHeapSize(int initialFsHeapSize)
set the initial fs heap size for this deployment.
|
LeoDeployDescriptor |
setName(String name)
Set the name of the Deployment.
|
LeoDeployDescriptor |
setTopDescriptor(LeoAEDescriptor faed)
Set the top descriptor for this deployment to the LeoAEDescriptor object provided.
|
LeoDeployDescriptor |
setTopDescriptor(String filename,
boolean byName)
Set the top descriptor for this deployment by importing the descriptor by name or value.
|
void |
toXML(OutputStream os)
Serialize the deployment descriptor to xml using the output stream provided.
|
void |
toXML(String filename)
Serialize this Deployment Descriptor to a file at the name and path provided.
|
public LeoDeployDescriptor(String filename, boolean byName) throws IOException, org.apache.uima.util.InvalidXMLException
filename - path to import AnalysisEngineDescriptor by name or locationbyName - if true import filename by name in classpath
if false import filename by locationIOException - if the descriptor cannot created.org.apache.uima.util.InvalidXMLException - if there is a problem creating the xml.public LeoDeployDescriptor(LeoAEDescriptor faed)
faed - set the Top Descriptor to the LeoAEDescriptor providedpublic LeoDeployDescriptor setName(String name)
name - the name of the deploymentpublic String getName()
public LeoDeployDescriptor setDescription(String description)
description - the description of this deploymentpublic String getDescription()
public int getCasPoolSize()
public LeoDeployDescriptor setCasPoolSize(int casPoolSize)
casPoolSize - the size of the CAS pool to setpublic int getInitialFsHeapSize()
public LeoDeployDescriptor setInitialFsHeapSize(int initialFsHeapSize)
initialFsHeapSize - the initialFsHeapSize to setpublic String getBrokerURL()
public LeoDeployDescriptor setBrokerURL(String brokerURL)
brokerURL - the BrokerURL for the queue services to setpublic String getEndpoint()
public LeoDeployDescriptor setEndpoint(String endpoint)
endpoint - the Endpoint queue name to setpublic LeoAEDescriptor getTopDescriptor()
public LeoDeployDescriptor setTopDescriptor(String filename, boolean byName) throws IOException, org.apache.uima.util.InvalidXMLException
filename - descriptor to import by name or locationbyName - if true import filename by name in classpath
if false import filename by locationIOException - if the descriptor cannot created.org.apache.uima.util.InvalidXMLException - if there is a problem creating the xml.public LeoDeployDescriptor setTopDescriptor(LeoAEDescriptor faed)
faed - the LeoAEDescriptor object to set as the top Descriptorpublic void toXML(String filename) throws Exception
filename - File name and path where the xml file will be serializedException - if the file cannot be accessed or the xml not written.public void toXML(OutputStream os) throws Exception
os - Output stream used for serializing the xml fileException - if the file cannot be accessed or the xml not written.protected void deploymentSectionXML(TransformerHandler thd) throws Exception
thd - TransformerHandler that writes the xml outException - if there is no descriptor to outputprotected void serviceSectionXML(TransformerHandler thd) throws Exception
thd - TransformerHandler that writes the xml outException - if there is no descriptor to outputCopyright © 2018 Department of Veterans Affairs. All Rights Reserved.