Package com.eka.middleware.service
Class PropertyManager
java.lang.Object
com.eka.middleware.service.PropertyManager
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
static Properties
getGlobalProperties
(String tenantName) static String
static String
getPackagePath
(Tenant tenant) static String
getPackagePathByTenantName
(String tenantName) static final Properties
getProperties
(DataPipeline dataPipeLine, String fileName) static Properties
getProperties
(String key) static final Properties
getServerProperties
(String filePath) static boolean
hasfileChanged
(String filePath) static boolean
hasTenantFileChanged
(String filePath) static final void
initConfig
(String[] args) static final byte[]
readConfigurationAbsFile
(File file) static final byte[]
readConfigurationFile
(String filePath) static void
saveGlobalProperties
(String tenantName, Properties props) static void
saveProperties
(String path, Properties props, String comment) typeCastConvert
(Properties prop) static final void
writeConfigurationFile
(File file, byte[] data) static final void
writeConfigurationFile
(String fileName, byte[] data)
-
Field Details
-
LOGGER
public static org.apache.logging.log4j.Logger LOGGER
-
-
Constructor Details
-
PropertyManager
public PropertyManager()
-
-
Method Details
-
getProperties
-
getPackagePath
-
getPackagePathByTenantName
-
getProperties
public 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
-
writeConfigurationFile
public static final void writeConfigurationFile(String fileName, byte[] data) throws SystemException - Throws:
SystemException
-
writeConfigurationFile
- Throws:
SystemException
-
getConfigFolderPath
-
getLocal_IP
-