Modifier and Type | Field and Description |
---|---|
static String |
BROKERURL_DEFAULT
Default value for the Broker URL.
|
static String |
ENDPOINT_DEFAULT
Default value for the Endpoint Queue Name, Queue name should be unique for each application.
|
static org.apache.log4j.Logger |
LOG
Logging object of output.
|
protected String |
mAggregateDescriptorFile
File path to the aggregate descriptor.
|
protected String |
mBrokerURL
Broker URL for the remote service.
|
protected int |
mCasPoolSize
CAS pool size determines the max number of requests that can be outstanding.
|
protected int |
mCCTimeout
CAS complete timeout in seconds.
|
protected boolean |
mDeleteOnExit
Should the generated XML descriptors be deleted on program exit? Default is true.
|
protected String |
mDeploymentDescriptorFile
File path to the deployment descriptor for the AS service that will be deployed.
|
protected String |
mDescriptorDirectory
The path to the directory where descriptors will be generated.
|
protected String |
mEndpoint
Endpoint or Input Queue Name for the service.
|
protected int |
mFSHeapSize
FS heap size in bytes of each CAS in the pool.
|
protected int |
mInitTimeout
Initialization timeout period in seconds.
|
protected int |
mJamJmxPort
If registering with JAM, this is the port the local JMX Server will listen on.
|
protected int |
mJamQueryIntervalInSeconds
If registering with JAM, what is the monitor query interval in seconds.
|
protected boolean |
mJamResetStatisticsAfterQuery
If registering with JAM, should statistics be reset after each gather? Default is true.
|
protected String |
mJamServerBaseUrl
The base url for the Jam (JMX Analytics Monitoring) server if available.
|
protected String |
mPropertiesFile
Name and location of the properties file.
|
protected String |
mServiceName
Name of the service for deployment.
|
protected int |
mTimeout
Timeout period in seconds.
|
static String |
PROPERTIES_DEFAULT
Default value for the Properties File path.
|
Constructor and Description |
---|
LeoProperties() |
Modifier and Type | Method and Description |
---|---|
String |
getAggregateDescriptorFile()
File path to the aggregate descriptor.
|
String |
getBrokerURL()
Get the broker url.
|
int |
getCasPoolSize()
get the cas pool size.
|
int |
getCCTimeout()
Get the CCTimeout.
|
String |
getDeploymentDescriptorFile()
The deployment descriptor file path and name.
|
String |
getDescriptorDirectory()
Get the path to the directory where descriptors will be generated.
|
String |
getEndpoint()
get the endpoint.
|
int |
getFSHeapSize()
Get FS Heap Size.
|
int |
getInitTimeout()
Get the init timeout.
|
String |
getInputQueueName()
Get the input queue name.
|
int |
getJamJmxPort()
If registering with JAM, this is the port the local JMX Server will listen on.
|
int |
getJamQueryIntervalInSeconds()
Get the JAM Query Interval in seconds.
|
String |
getJamServerBaseUrl()
Get the Jam Server Base URL.
|
String |
getServiceName()
Get the service name.
|
int |
getTimeout()
Set timeout.
|
boolean |
isDeleteOnExit()
TRUE if generated descriptors will be deleted when the program exits, FALSE otherwise.
|
boolean |
isJamResetStatisticsAfterQuery()
Reset statistics after jam query.
|
protected void |
loadDefaults()
Load default values for required parameters.
|
protected void |
loadProperties(Properties properties)
Load the properties from a properties object.
|
protected void |
loadprops()
Load the properties from the properties file that will be used for execution.
|
void |
loadprops(String propertiesFile)
Load the properties file specified by the user.
|
void |
setAggregateDescriptorFile(String mAggregateDescriptorFile)
Set the file path to the aggregate descriptor.
|
<T extends LeoProperties> |
setBrokerURL(String mBrokerURL)
set the broker url.
|
<T extends LeoProperties> |
setCasPoolSize(Integer mCasPoolSize)
Set the size of the CAS pool.
|
<T extends LeoProperties> |
setCCTimeout(Integer mCCTimeout)
CAS complete timeout in seconds.
|
<T extends LeoProperties> |
setDeleteOnExit(boolean mDeleteOnExit)
Set the flag to TRUE if generated descriptors should be deleted on program exit.
|
<T extends LeoProperties> |
setDeploymentDescriptorFile(String mDeploymentDescriptorFile)
Set the existing Deployment Descriptor file to use.
|
<T extends LeoProperties> |
setDescriptorDirectory(String mDescriptorDirectory)
Set the directory path where generated descriptors will be generated.
|
<T extends LeoProperties> |
setEndpoint(String mEndpoint)
Set the "InputQueueName" for this service.
|
<T extends LeoProperties> |
setFSHeapSize(int mFSHeapSize)
Size of the FS heap in bytes of each CAS in the pool.
|
<T extends LeoProperties> |
setInitTimeout(int mInitTimeout)
Initialization timeout period in seconds.
|
<T extends LeoProperties> |
setInputQueueName(String mInputQueueName)
Set the "InputQueueName" for this service.
|
<T extends LeoProperties> |
setJamJmxPort(Integer port)
If registering with JAM, this is the port the local JMX Server will listen on.
|
<T extends LeoProperties> |
setJamQueryIntervalInSeconds(Integer mJamQueryIntervalInSeconds)
If registering with JAM, the monitor query interval in seconds.
|
<T extends LeoProperties> |
setJamResetStatisticsAfterQuery(Boolean mJamResetStatisticsAfterQuery)
If registering with JAM, should statistics be reset after each gather? Default is true.
|
<T extends LeoProperties> |
setJamServerBaseUrl(String mJamServerBaseUrl)
The base URL for the JAM (JMX Analytics Monitoring) server if available.
|
<T extends LeoProperties> |
setServiceName(String mServiceName)
Optional, name of the service to deploy.
|
<T extends LeoProperties> |
setTimeout(int mTimeout)
Timeout period in seconds.
|
protected String mPropertiesFile
protected String mDeploymentDescriptorFile
protected String mServiceName
protected String mAggregateDescriptorFile
protected String mBrokerURL
protected String mEndpoint
protected String mDescriptorDirectory
protected int mCasPoolSize
protected int mFSHeapSize
protected int mTimeout
protected int mInitTimeout
protected int mCCTimeout
protected String mJamServerBaseUrl
protected int mJamQueryIntervalInSeconds
protected boolean mJamResetStatisticsAfterQuery
protected int mJamJmxPort
protected boolean mDeleteOnExit
public static final org.apache.log4j.Logger LOG
public static final String BROKERURL_DEFAULT
public static final String ENDPOINT_DEFAULT
public static final String PROPERTIES_DEFAULT
protected void loadDefaults()
public void loadprops(String propertiesFile) throws Exception
propertiesFile
- Path to the properties file to be loadedException
- If unable to load the properties fileprotected void loadprops() throws Exception
Exception
- if the properties file cannot be found or loaded.protected void loadProperties(Properties properties) throws FileNotFoundException
properties
- The properties object to get properties from.Exception
- if the properties file cannot be found or loaded.FileNotFoundException
public String getDeploymentDescriptorFile()
public <T extends LeoProperties> T setDeploymentDescriptorFile(String mDeploymentDescriptorFile)
mDeploymentDescriptorFile
- the DeploymentDescriptorFile to setpublic String getServiceName()
public <T extends LeoProperties> T setServiceName(String mServiceName)
mServiceName
- the ServiceName to setpublic String getBrokerURL()
public <T extends LeoProperties> T setBrokerURL(String mBrokerURL)
mBrokerURL
- the BrokerURL to setpublic String getEndpoint()
public <T extends LeoProperties> T setEndpoint(String mEndpoint)
mEndpoint
- the Endpoint to setpublic String getInputQueueName()
public <T extends LeoProperties> T setInputQueueName(String mInputQueueName)
mInputQueueName
- the input queue name for this service.public int getCasPoolSize()
public <T extends LeoProperties> T setCasPoolSize(Integer mCasPoolSize)
mCasPoolSize
- the CasPoolSize to setpublic int getFSHeapSize()
public <T extends LeoProperties> T setFSHeapSize(int mFSHeapSize)
mFSHeapSize
- the FSHeapSize to setpublic int getTimeout()
public <T extends LeoProperties> T setTimeout(int mTimeout)
mTimeout
- the Timeout to setpublic int getInitTimeout()
public <T extends LeoProperties> T setInitTimeout(int mInitTimeout)
mInitTimeout
- the InitTimeout to setpublic int getCCTimeout()
public <T extends LeoProperties> T setCCTimeout(Integer mCCTimeout)
mCCTimeout
- the CCTimeout to setpublic String getJamServerBaseUrl()
public <T extends LeoProperties> T setJamServerBaseUrl(String mJamServerBaseUrl)
mJamServerBaseUrl
- the JamServerBaseUrl to setpublic int getJamQueryIntervalInSeconds()
public <T extends LeoProperties> T setJamQueryIntervalInSeconds(Integer mJamQueryIntervalInSeconds)
mJamQueryIntervalInSeconds
- the JamQueryIntervalInSeconds to setpublic boolean isJamResetStatisticsAfterQuery()
public <T extends LeoProperties> T setJamResetStatisticsAfterQuery(Boolean mJamResetStatisticsAfterQuery)
mJamResetStatisticsAfterQuery
- the JamResetStatisticsAfterQuery flag to setpublic boolean isDeleteOnExit()
public <T extends LeoProperties> T setDeleteOnExit(boolean mDeleteOnExit)
mDeleteOnExit
- true if the descriptors should auto delete.public String getDescriptorDirectory()
public <T extends LeoProperties> T setDescriptorDirectory(String mDescriptorDirectory)
mDescriptorDirectory
- String representation of the descriptor directory.public int getJamJmxPort()
public <T extends LeoProperties> T setJamJmxPort(Integer port)
port
- the port the JMX Server will listener on, or -1 to pick a port automatically.public String getAggregateDescriptorFile()
public void setAggregateDescriptorFile(String mAggregateDescriptorFile)
mAggregateDescriptorFile
- File path to the aggregate descriptor.Copyright © 2018 Department of Veterans Affairs. All Rights Reserved.