Package com.eka.middleware.service
Class PropertyManager
java.lang.Object
com.eka.middleware.service.PropertyManager
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic Stringstatic PropertiesgetGlobalProperties(String tenantName) static Stringstatic StringgetPackagePath(Tenant tenant) static StringgetPackagePathByTenantName(String tenantName) static final PropertiesgetProperties(DataPipeline dataPipeLine, String fileName) static PropertiesgetProperties(String key) static final PropertiesgetServerProperties(String filePath) static booleanhasfileChanged(String filePath) static booleanhasTenantFileChanged(String filePath) static final voidinitConfig(String[] args) static final byte[]readConfigurationAbsFile(File file) static final byte[]readConfigurationFile(String filePath) static voidsaveGlobalProperties(String tenantName, Properties props) static voidsaveProperties(String path, Properties props, String comment) typeCastConvert(Properties prop) static final voidwriteConfigurationFile(File file, byte[] data) static final voidwriteConfigurationFile(String fileName, byte[] data) 
- 
Field Details- 
LOGGERpublic static org.apache.logging.log4j.Logger LOGGER
 
- 
- 
Constructor Details- 
PropertyManagerpublic PropertyManager()
 
- 
- 
Method Details- 
getProperties
- 
getPackagePath
- 
getPackagePathByTenantName
- 
getPropertiespublic static final Properties getProperties(DataPipeline dataPipeLine, String fileName) throws SnippetException - Throws:
- SnippetException
 
- 
getGlobalProperties
- 
saveGlobalProperties
- 
saveProperties
- 
typeCastConvert
- 
getServerProperties- Throws:
- SystemException
 
- 
hasfileChanged
- 
hasTenantFileChanged
- 
readConfigurationFile- Throws:
- SystemException
 
- 
readConfigurationAbsFile- Throws:
- SystemException
 
- 
initConfig- Throws:
- Exception
 
- 
writeConfigurationFilepublic static final void writeConfigurationFile(String fileName, byte[] data) throws SystemException - Throws:
- SystemException
 
- 
writeConfigurationFile- Throws:
- SystemException
 
- 
getConfigFolderPath
- 
getLocal_IP
 
-