VLab Common 1.1

pl.psnc.vlab.conf
Class ConfigurationImpl

java.lang.Object
  extended by pl.psnc.vlab.conf.ConfigurationImpl
All Implemented Interfaces:
Configuration

public class ConfigurationImpl
extends java.lang.Object
implements Configuration

ConfigurationImpl class - implementation of Configuration interface.

Author:
Dominik Stoklosa (~osa~)
Email address
osa@man.poznan.pl

Field Summary
protected  java.util.Map<java.lang.String,java.lang.String> keysValues
          Stores the values of configuration keys
 
Fields inherited from interface pl.psnc.vlab.conf.Configuration
KEY_APP_CONF_DIR, KEY_APP_NAME, KEY_AUTH_MODULE_LOCATION, KEY_COMM_PROXY_LOCATION, KEY_GS_MODULE_LOCATION, KEY_KEYSTORE, KEY_KEYSTORE_PASSWD, KEY_MON_MODULE_LOCATION, KEY_SMM_MODULE_LOCATION, KEY_SZD_MODULE_LOCATION, KEY_TRUSTSTORE, KEY_TRUSTSTORE_PASSWD
 
Constructor Summary
protected ConfigurationImpl(java.lang.String appConfig)
          Creates a new instance of ConfigurationImpl
 
Method Summary
 java.lang.String getAppName()
          Get application name
 java.lang.String getAuthModuleLocation()
          Get Authentication Module Location
 java.lang.String getCommProxyLocation()
          Get Communication Proxy Module
 java.lang.String getGlobalSchedulerModuleLocation()
          Get Global Scheduler Module Location
 java.lang.String getKeyStore()
          Get keystore for the application
 java.lang.String getKeyStorePasswd()
          Get keystore password
 java.lang.String getMonitoringModuleLocation()
          Get Monitoring Module Location
 java.lang.String getProperty(java.lang.String key)
          The custom property getter method by the given key name
 java.lang.String getSMMModuleLocation()
          Get SMM Module Location
 java.lang.String getSystemConfDir()
          Returns the absolute path to the folder, where all the configuration settings is stored.
 java.lang.String getSZDModuleLocation()
          Get SZD Module Location
 java.lang.String getTrustStore()
          Get truststore for the application
 java.lang.String getTrustStorePasswd()
          Get truststore password
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

keysValues

protected java.util.Map<java.lang.String,java.lang.String> keysValues
Stores the values of configuration keys

Constructor Detail

ConfigurationImpl

protected ConfigurationImpl(java.lang.String appConfig)
                     throws VlabException
Creates a new instance of ConfigurationImpl

Parameters:
appConfig - a path to the file, which contains the app configuration (as a properties)
Throws:
VlabException
Method Detail

getSystemConfDir

public java.lang.String getSystemConfDir()
                                  throws VlabException
Returns the absolute path to the folder, where all the configuration settings is stored.

Specified by:
getSystemConfDir in interface Configuration
Returns:
path to the configuration folder
Throws:
VlabException

getAppName

public java.lang.String getAppName()
                            throws VlabException
Get application name

Specified by:
getAppName in interface Configuration
Returns:
application name
Throws:
VlabException

getKeyStore

public java.lang.String getKeyStore()
                             throws VlabException
Get keystore for the application

Specified by:
getKeyStore in interface Configuration
Returns:
keystore
Throws:
VlabException

getKeyStorePasswd

public java.lang.String getKeyStorePasswd()
                                   throws VlabException
Get keystore password

Specified by:
getKeyStorePasswd in interface Configuration
Returns:
keystore password
Throws:
VlabException

getTrustStore

public java.lang.String getTrustStore()
                               throws VlabException
Get truststore for the application

Specified by:
getTrustStore in interface Configuration
Returns:
truststore for the application
Throws:
VlabException

getTrustStorePasswd

public java.lang.String getTrustStorePasswd()
                                     throws VlabException
Get truststore password

Specified by:
getTrustStorePasswd in interface Configuration
Returns:
truststore password
Throws:
VlabException

getCommProxyLocation

public java.lang.String getCommProxyLocation()
                                      throws VlabException
Get Communication Proxy Module

Specified by:
getCommProxyLocation in interface Configuration
Returns:
location of the commProxy module
Throws:
VlabException

getAuthModuleLocation

public java.lang.String getAuthModuleLocation()
                                       throws VlabException
Get Authentication Module Location

Specified by:
getAuthModuleLocation in interface Configuration
Returns:
location of the Authentication Module
Throws:
VlabException

getMonitoringModuleLocation

public java.lang.String getMonitoringModuleLocation()
                                             throws VlabException
Get Monitoring Module Location

Specified by:
getMonitoringModuleLocation in interface Configuration
Returns:
location of the Monitoring Module
Throws:
VlabException

getGlobalSchedulerModuleLocation

public java.lang.String getGlobalSchedulerModuleLocation()
                                                  throws VlabException
Get Global Scheduler Module Location

Specified by:
getGlobalSchedulerModuleLocation in interface Configuration
Returns:
location of the Global Scheduler Module
Throws:
VlabException

getSMMModuleLocation

public java.lang.String getSMMModuleLocation()
                                      throws VlabException
Get SMM Module Location

Specified by:
getSMMModuleLocation in interface Configuration
Returns:
location of the SMM Module
Throws:
VlabException

getSZDModuleLocation

public java.lang.String getSZDModuleLocation()
                                      throws VlabException
Get SZD Module Location

Specified by:
getSZDModuleLocation in interface Configuration
Returns:
location of the SZD Module
Throws:
VlabException

getProperty

public java.lang.String getProperty(java.lang.String key)
                             throws VlabException
The custom property getter method by the given key name

Specified by:
getProperty in interface Configuration
Parameters:
key - the name of the property key
Returns:
the value of the given key or VlabException
Throws:
VlabException - the VlabException is thrown when the key is not found

VLab Common 1.1

Copyright 2004 by VLAB Dominik Stoklosa.