com.adeptia.indigo.system
Class IndigoConfig

java.lang.Object
  extended by com.adeptia.indigo.system.IndigoConfig

public class IndigoConfig
extends java.lang.Object

Adeptia Server configuration parameters. The default configuration file name is bpmserver.properties. This file should be available on the class path at the boot time. Most of the default configuration values can be overwritten by config entries in the config table.

Version:
CVS $Revision: 1.79 $ Date Author Changes

Field Summary
static java.lang.String VERSION
          Class version string based on the CVS revision
 
Constructor Summary
IndigoConfig()
           
 
Method Summary
static java.lang.String getActivityStatusRefreshTime()
          Returns Activity Status refresh time duration in Transaction monitor
static java.lang.String getBCalendar()
          Returns Business Calendar Configuration
static int getBufferSize()
          Returns Buffer Size for performance optimization
static java.lang.String getCleanupCronExpression()
          Returns Data Cleanup CronExpression
static int getCleanupLogRetainTime()
          Returns Log Cleanup Retain Time with default value "1"
static int getCleanupRetainTime()
          Returns Data Cleanup Retain Time with default value "2"
static int getDatabaseConnectionWaitTime()
          Returns Time in seconds that driver will wait while attempting to connect to the Database with default value "60"
static int getDataMapperDBLookupCachingSize()
          Returns Data Mapper DBLookup Caching Limit with default value "10000"
static javax.crypto.SecretKey getDESBaseSecretKey()
          Default SecretKey is required for DES based encryption
static java.lang.String getDirectXsdEdit()
          Returns schema direct xsd edit property
static java.lang.String getErrorCodes()
          Returns Error Code to abort Database target
static int getExpiryDays()
          Returns number of days after which the password will expire with default value "0"
static int getexpirymessageflash()
          Returns number of days after which warning message will be dispalyed for the password with default value "5"
static int getFtpConnectionRetry()
          Returns FTP connection retry count with default value "3"
static java.lang.String getHostIPAddress()
          Returns the host IP address string in textual presentation.
static java.lang.String getHttpPort()
          Returns Web Server HTTP Port Number with default value "8080"
static java.lang.String getHttpsPort()
          Returns Web Server HTTPS Port Number with default value "8443"
static java.lang.String getHWFPollingFrequency()
          Human Workflow Polling frequency in seconds
static java.lang.String getIndigoWebserverAddress()
          Returns Web Server Domain Name
static java.lang.String getIndigoWebserverPortno()
          Returns Web Server HTTP Port Number
static java.lang.String getIOPipesVersion()
          Returns internal tuning io pipes version with default value "2"
static java.lang.String getJdoConnectionUrl()
          Returns JDO Database Connection Url
static java.lang.String getJdoDatabaseName()
          Returns JDO Database Name with default value "indigo"
static java.lang.String getJdoDriverUrl()
          Returns JDO Database Driver Url
static java.lang.String getJdoEngine()
          Returns JDO Database Engine Name
static java.lang.String getJdoMappingFile()
          Returns JDO Mapping File with default value "mapping.xml"
static java.lang.String getJdoMaxActiveConn()
          Returns maximum number of active connections that can be allocated from this pool at the same time, or non-positive for no limit.
static java.lang.String getJdoMaxIdleConn()
          Returns maximum number of connections that can remain idle in the pool, without extra ones being released, or negative for no limit.
static java.lang.String getJdoMaxWaitConn()
          Returns maximum number of milliseconds that the pool will wait (when there are no available connections) for a connection to be returned before throwing an exception, or -1 to wait indefinitely.
static java.lang.String getJdoMinIdleConn()
          Returns minimum number of connections that can remain idle in the pool, without extra ones being created, or zero to create none.
static java.lang.String getJdoPassword()
          Returns JDO Database Password
static java.lang.String getJdoUserName()
          Returns JDO Database UserName
static java.lang.String getLogCleanupCronExpression()
          Returns Log Cleanup CronExpression
static java.lang.String getLoginModule()
          Returns Security login module with default value "DatabaseLoginModule"
static java.lang.String getMailServer()
          Returns Mail Server Address
static java.lang.String getMailServerPassword()
          Returns Mail Server password
static java.lang.String getMailServerUserId()
          Returns Mail Server UserId
static java.lang.String getMailSubject()
          Returns Mail subject with default value "Password"
static java.lang.String getNodeHeartbeatPeriod()
          Returns Cluster Node Heartbeat Period (in seconds) with default value "10"
static java.lang.String getNodeHeartbeatTries()
          Returns Cluster Node Heartbeat Tries with default value "2"
static java.lang.String getNodeName()
          Returns Cluster Node Name with default value "localhost"
static int getNodePort()
          Returns Cluster Node Port with default value "21000"
static int getPollingInterval()
          Returns IO Pooling Interval with default value "1000"
static java.lang.String getPortMBeanServer()
          Returns MBeans server port with default value "9082"
static int getQueueProcessorConcurrentProcesses()
          Returns number of concurrent processes allowed Queue Processor with default value "100"
static int getQueueProcessorDatabasePollingTime()
          Returns Queue Processor Database Polling Time (in ms) with default value 3000
static boolean getQueueProcessorJobRstWithoutRecoveryInfo()
          Returns boolean value whether to restart uncompleted jobs(Process Flows) without recovery information
static int getQueueProcessorPollingTime()
          Returns Queue Processor Internal Polling Time (in ms) with default value 100
static int getQueueProcessorReloadFactor()
          Returns Thresh Hold value To lookup For more jobs in Queue Processor with default value "100"
static java.lang.String getRecoveryRepositoryRoot()
          Returns Process Flow recovery path with default value "recovery"
static java.lang.String getReportingLibraryRepository()
          Get the Reporting Library Repository path
static java.lang.String getRepositoryAddress()
          Returns Repository Address for kernel settings
static java.lang.String getRepositoryArchivePath()
          Returns Transaction Repository Path with default value "C:/"
static java.lang.String getRepositoryArchiveServer()
          Returns Transaction Repository server with default value "webdav"
static java.lang.String getRepositoryRoot()
          Returns Server Repository Path with default value "./web/repository"
static java.lang.String getResourcePath(java.lang.String fileName)
          This method returns the path to resource file .
static int getSchemaShowFieldCount()
          Returns Maximum no of fields to be shown on the EDI/Advance Positional/Text Schema GUI page with default value "200"
static java.lang.String getSecretKeystoreName()
          Returns Server Secret keystore name with default value "SecretKeys.keystore"
static java.lang.String getSecretKeystorePassword()
          Returns Server Secret key Password
static java.lang.String getSecurityRepository()
          Returns Keystore Repository Path with default value "etc/security"
static java.lang.String getSessionTime()
          Returns Server Session Time (in minutes) with default value "60"
static int getStreamGcLimit()
          Returns Limit of Garbage Collection with default value "75000"
static java.lang.String getSystemAdminEmailId()
          Returns System Admin Email Id
static java.lang.String getSystemLogLevel()
          Method to get system logging level used by log4j root logger
static java.lang.String getTempRepositoryRoot()
          Returns temp Repository Root
static java.lang.String getWebDAVDirBaseLocation()
          Returns Webdav Base Directory with default value "/slide/files/"
static java.lang.String getWebDAVPassword()
          Returns webdav password with default value "indigo"
static java.lang.String getWebDAVPort()
          Returns Webdav port with default value "8080"
static java.lang.String getWebDAVServerName()
          Returns Webdav server name with default value "localhost"
static java.lang.String getWebDAVUserName()
          Returns webdav user name with default value "admin"
static java.lang.String getWSServerKeyStorePath()
          Returns Web service server KeyStorePath
static boolean isActivityCommentsEnabled()
          Returns boolean value for activity comments enable or disable with default value 'false'
static boolean isClusterEnabled()
          Returns boolean value for Cluster Enable and Disable Option with default value 'false'
static boolean isIoPoolEnabled()
          Returns boolean value for IO Pool Enable and Disable Option with default value 'false'
static boolean isQueueProcessorEnabled()
          Returns boolean value for Queue Processor Enable and Disable Option with default value 'false'
static boolean isTransactionRecoveryEnabled()
          Returns boolean value for Process Flow recovery option with default value 'true'
static boolean isTransactionValidationEnabled()
          Returns boolean value for Process Flow validation Enable and Disable Option with default value 'true'
static boolean isVersionEnabled()
          Returns boolean value for Versioning Enable and Disable with default value 'false'
static void load()
           
static void load(java.lang.String id)
          Load the default properties file.
static java.util.HashMap readProperties(java.io.InputStream inputStream)
          Get the Properties Map
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VERSION

public static final java.lang.String VERSION
Class version string based on the CVS revision

See Also:
Constant Field Values
Constructor Detail

IndigoConfig

public IndigoConfig()
Method Detail

load

public static void load(java.lang.String id)
                 throws com.adeptia.indigo.utils.IndigoException
Load the default properties file. The default file (bpmserver.properties) can be overwritten from the command line using -Dbpmserver.properties.file=alternate.file.

Throws:
com.adeptia.indigo.utils.IndigoException

load

public static void load()
                 throws com.adeptia.indigo.utils.IndigoException
Throws:
com.adeptia.indigo.utils.IndigoException

getResourcePath

public static java.lang.String getResourcePath(java.lang.String fileName)
                                        throws java.lang.Exception
This method returns the path to resource file . It accepts only those files name which have been defined in the FileProperties interface .

Returns:
the path to the file
Throws:
java.lang.Exception

getNodeName

public static java.lang.String getNodeName()
Returns Cluster Node Name with default value "localhost"

Returns:
the value in property list with the specified key value.

getPortMBeanServer

public static java.lang.String getPortMBeanServer()
Returns MBeans server port with default value "9082"

Returns:
the value in property list with the specified key value.

getNodeHeartbeatPeriod

public static java.lang.String getNodeHeartbeatPeriod()
Returns Cluster Node Heartbeat Period (in seconds) with default value "10"

Returns:
the value in property list with the specified key value.

getNodeHeartbeatTries

public static java.lang.String getNodeHeartbeatTries()
Returns Cluster Node Heartbeat Tries with default value "2"

Returns:
the value in property list with the specified key value.

getLoginModule

public static java.lang.String getLoginModule()
Returns Security login module with default value "DatabaseLoginModule"

Returns:
the value in property list with the specified key value.

getJdoDriverUrl

public static java.lang.String getJdoDriverUrl()
Returns JDO Database Driver Url

Returns:
the value in property list with the specified key value.

getJdoConnectionUrl

public static java.lang.String getJdoConnectionUrl()
Returns JDO Database Connection Url

Returns:
the value in property list with the specified key value.

getJdoUserName

public static java.lang.String getJdoUserName()
Returns JDO Database UserName

Returns:
the value in property list with the specified key value.

getJdoPassword

public static java.lang.String getJdoPassword()
Returns JDO Database Password

Returns:
the value in property list with the specified key value.

getJdoEngine

public static java.lang.String getJdoEngine()
Returns JDO Database Engine Name

Returns:
the value in property list with the specified key value.

getJdoMappingFile

public static java.lang.String getJdoMappingFile()
Returns JDO Mapping File with default value "mapping.xml"

Returns:
the value in property list with the specified key value.

getJdoDatabaseName

public static java.lang.String getJdoDatabaseName()
Returns JDO Database Name with default value "indigo"

Returns:
the value in property list with the specified key value.

getJdoMaxActiveConn

public static java.lang.String getJdoMaxActiveConn()
Returns maximum number of active connections that can be allocated from this pool at the same time, or non-positive for no limit. The default value is 10.

Returns:
the value in property list with the specified key value.

getJdoMaxIdleConn

public static java.lang.String getJdoMaxIdleConn()
Returns maximum number of connections that can remain idle in the pool, without extra ones being released, or negative for no limit. The default value is 10.

Returns:
the value in property list with the specified key value.

getJdoMinIdleConn

public static java.lang.String getJdoMinIdleConn()
Returns minimum number of connections that can remain idle in the pool, without extra ones being created, or zero to create none. The default value is 0.

Returns:
the value in property list with the specified key value.

getJdoMaxWaitConn

public static java.lang.String getJdoMaxWaitConn()
Returns maximum number of milliseconds that the pool will wait (when there are no available connections) for a connection to be returned before throwing an exception, or -1 to wait indefinitely. The default value is -1.

Returns:
the value in property list with the specified key value.

getRepositoryRoot

public static java.lang.String getRepositoryRoot()
Returns Server Repository Path with default value "./web/repository"

Returns:
the value in property list with the specified key value.

getRepositoryAddress

public static java.lang.String getRepositoryAddress()
Returns Repository Address for kernel settings

Returns:
the value in property list with the specified key value.

getBufferSize

public static int getBufferSize()
Returns Buffer Size for performance optimization

Returns:
the value in property list with the specified key value.

isIoPoolEnabled

public static boolean isIoPoolEnabled()
Returns boolean value for IO Pool Enable and Disable Option with default value 'false'

Returns:
the value in property list with the specified key value.

getPollingInterval

public static int getPollingInterval()
Returns IO Pooling Interval with default value "1000"

Returns:
the value in property list with the specified key value.

getStreamGcLimit

public static int getStreamGcLimit()
Returns Limit of Garbage Collection with default value "75000"

Returns:
the value in property list with the specified key value.

getTempRepositoryRoot

public static java.lang.String getTempRepositoryRoot()
Returns temp Repository Root

Returns:
the value in property list with the specified key value.

getDirectXsdEdit

public static java.lang.String getDirectXsdEdit()
Returns schema direct xsd edit property

Returns:
the value in property list with the specified key value.

getMailServer

public static java.lang.String getMailServer()
Returns Mail Server Address

Returns:
the value in property list with the specified key value.

getSystemAdminEmailId

public static java.lang.String getSystemAdminEmailId()
Returns System Admin Email Id

Returns:
the value in property list with the specified key value.

getMailServerUserId

public static java.lang.String getMailServerUserId()
Returns Mail Server UserId

Returns:
the value in property list with the specified key value.

getMailServerPassword

public static java.lang.String getMailServerPassword()
Returns Mail Server password

Returns:
the value in property list with the specified key value.

getMailSubject

public static java.lang.String getMailSubject()
Returns Mail subject with default value "Password"

Returns:
the value in property list with the specified key value.

getSessionTime

public static java.lang.String getSessionTime()
Returns Server Session Time (in minutes) with default value "60"

Returns:
the value in property list with the specified key value.

getActivityStatusRefreshTime

public static java.lang.String getActivityStatusRefreshTime()
Returns Activity Status refresh time duration in Transaction monitor

Returns:
the value in property list with the specified key value.

getErrorCodes

public static java.lang.String getErrorCodes()
Returns Error Code to abort Database target

Returns:
the value in property list with the specified key value.

getIOPipesVersion

public static java.lang.String getIOPipesVersion()
Returns internal tuning io pipes version with default value "2"

Returns:
the value in property list with the specified key value.

getRecoveryRepositoryRoot

public static java.lang.String getRecoveryRepositoryRoot()
Returns Process Flow recovery path with default value "recovery"

Returns:
the value in property list with the specified key value.

getIndigoWebserverAddress

public static java.lang.String getIndigoWebserverAddress()
Returns Web Server Domain Name

Returns:
the value in property list with the specified key value.

getIndigoWebserverPortno

public static java.lang.String getIndigoWebserverPortno()
Returns Web Server HTTP Port Number

Returns:
the value in property list with the specified key value.

getSecretKeystoreName

public static java.lang.String getSecretKeystoreName()
Returns Server Secret keystore name with default value "SecretKeys.keystore"

Returns:
the value in property list with the specified key value.

getSecretKeystorePassword

public static java.lang.String getSecretKeystorePassword()
Returns Server Secret key Password

Returns:
the value in property list with the specified key value.

getSecurityRepository

public static java.lang.String getSecurityRepository()
Returns Keystore Repository Path with default value "etc/security"

Returns:
the value in property list with the specified key value.

isClusterEnabled

public static boolean isClusterEnabled()
Returns boolean value for Cluster Enable and Disable Option with default value 'false'

Returns:
the value in property list with the specified key value.

isQueueProcessorEnabled

public static boolean isQueueProcessorEnabled()
Returns boolean value for Queue Processor Enable and Disable Option with default value 'false'

Returns:
the value in property list with the specified key value.

getQueueProcessorDatabasePollingTime

public static int getQueueProcessorDatabasePollingTime()
Returns Queue Processor Database Polling Time (in ms) with default value 3000

Returns:
the value in property list with the specified key value.

getQueueProcessorPollingTime

public static int getQueueProcessorPollingTime()
Returns Queue Processor Internal Polling Time (in ms) with default value 100

Returns:
the value in property list with the specified key value.

getQueueProcessorJobRstWithoutRecoveryInfo

public static boolean getQueueProcessorJobRstWithoutRecoveryInfo()
Returns boolean value whether to restart uncompleted jobs(Process Flows) without recovery information

Returns:
the value in property list with the specified key value.

getQueueProcessorConcurrentProcesses

public static int getQueueProcessorConcurrentProcesses()
Returns number of concurrent processes allowed Queue Processor with default value "100"

Returns:
the value in property list with the specified key value.

getQueueProcessorReloadFactor

public static int getQueueProcessorReloadFactor()
Returns Thresh Hold value To lookup For more jobs in Queue Processor with default value "100"

Returns:
the value in property list with the specified key value.

getWebDAVServerName

public static java.lang.String getWebDAVServerName()
Returns Webdav server name with default value "localhost"

Returns:
the value in property list with the specified key value.

getWebDAVPort

public static java.lang.String getWebDAVPort()
Returns Webdav port with default value "8080"

Returns:
the value in property list with the specified key value.

getWebDAVDirBaseLocation

public static java.lang.String getWebDAVDirBaseLocation()
Returns Webdav Base Directory with default value "/slide/files/"

Returns:
the value in property list with the specified key value.

getWebDAVUserName

public static java.lang.String getWebDAVUserName()
Returns webdav user name with default value "admin"

Returns:
the value in property list with the specified key value.

getWebDAVPassword

public static java.lang.String getWebDAVPassword()
Returns webdav password with default value "indigo"

Returns:
the value in property list with the specified key value.

isTransactionValidationEnabled

public static boolean isTransactionValidationEnabled()
Returns boolean value for Process Flow validation Enable and Disable Option with default value 'true'

Returns:
the value in property list with the specified key value.

isTransactionRecoveryEnabled

public static boolean isTransactionRecoveryEnabled()
Returns boolean value for Process Flow recovery option with default value 'true'

Returns:
the value in property list with the specified key value.

getBCalendar

public static java.lang.String getBCalendar()
Returns Business Calendar Configuration

Returns:
the value in property list with the specified key value.

getHttpPort

public static java.lang.String getHttpPort()
Returns Web Server HTTP Port Number with default value "8080"

Returns:
the value in property list with the specified key value.

getRepositoryArchivePath

public static java.lang.String getRepositoryArchivePath()
Returns Transaction Repository Path with default value "C:/"

Returns:
the value in property list with the specified key value.

getRepositoryArchiveServer

public static java.lang.String getRepositoryArchiveServer()
Returns Transaction Repository server with default value "webdav"

Returns:
the value in property list with the specified key value.

getHttpsPort

public static java.lang.String getHttpsPort()
Returns Web Server HTTPS Port Number with default value "8443"

Returns:
the value in property list with the specified key value.

getFtpConnectionRetry

public static int getFtpConnectionRetry()
Returns FTP connection retry count with default value "3"

Returns:
the value in property list with the specified key value.

getCleanupCronExpression

public static java.lang.String getCleanupCronExpression()
Returns Data Cleanup CronExpression

Returns:
the value in property list with the specified key value.

getCleanupRetainTime

public static int getCleanupRetainTime()
Returns Data Cleanup Retain Time with default value "2"

Returns:
the value in property list with the specified key value.

getLogCleanupCronExpression

public static java.lang.String getLogCleanupCronExpression()
Returns Log Cleanup CronExpression

Returns:
the value in property list with the specified key value.

getCleanupLogRetainTime

public static int getCleanupLogRetainTime()
Returns Log Cleanup Retain Time with default value "1"

Returns:
the value in property list with the specified key value.

getNodePort

public static int getNodePort()
Returns Cluster Node Port with default value "21000"

Returns:
the value in property list with the specified key value.

getWSServerKeyStorePath

public static java.lang.String getWSServerKeyStorePath()
Returns Web service server KeyStorePath

Returns:
the value in property list with the specified key value.

isVersionEnabled

public static boolean isVersionEnabled()
Returns boolean value for Versioning Enable and Disable with default value 'false'

Returns:
the value in property list with the specified key value.

isActivityCommentsEnabled

public static boolean isActivityCommentsEnabled()
Returns boolean value for activity comments enable or disable with default value 'false'

Returns:
the value in property list with the specified key value.

getSchemaShowFieldCount

public static int getSchemaShowFieldCount()
Returns Maximum no of fields to be shown on the EDI/Advance Positional/Text Schema GUI page with default value "200"

Returns:
the value in property list with the specified key value.

getDatabaseConnectionWaitTime

public static int getDatabaseConnectionWaitTime()
Returns Time in seconds that driver will wait while attempting to connect to the Database with default value "60"

Returns:
the value in property list with the specified key value.

getExpiryDays

public static int getExpiryDays()
Returns number of days after which the password will expire with default value "0"

Returns:
the value in property list with the specified key value.

getexpirymessageflash

public static int getexpirymessageflash()
Returns number of days after which warning message will be dispalyed for the password with default value "5"

Returns:
the value in property list with the specified key value.

getDataMapperDBLookupCachingSize

public static int getDataMapperDBLookupCachingSize()
                                            throws java.lang.Exception
Returns Data Mapper DBLookup Caching Limit with default value "10000"

Returns:
the value in property list with the specified key value.
Throws:
java.lang.Exception

getDESBaseSecretKey

public static javax.crypto.SecretKey getDESBaseSecretKey()
                                                  throws java.lang.Exception
Default SecretKey is required for DES based encryption

Returns:
Throws:
java.lang.Exception

getReportingLibraryRepository

public static java.lang.String getReportingLibraryRepository()
Get the Reporting Library Repository path

Returns:
the value in property list with the specified key value.

readProperties

public static java.util.HashMap readProperties(java.io.InputStream inputStream)
                                        throws java.lang.Exception
Get the Properties Map

Returns:
hashmap containing all properties
Throws:
java.lang.Exception

getHostIPAddress

public static java.lang.String getHostIPAddress()
                                         throws java.net.UnknownHostException
Returns the host IP address string in textual presentation.

Returns:
the raw IP address in a string format.
Throws:
java.net.UnknownHostException

getHWFPollingFrequency

public static java.lang.String getHWFPollingFrequency()
Human Workflow Polling frequency in seconds

Returns:
the value in property list with the specified key value.

getSystemLogLevel

public static java.lang.String getSystemLogLevel()
Method to get system logging level used by log4j root logger

Returns:
system logging level