Package cz.o2.proxima.direct.io.bulkfs
Class FileFormatUtils
- java.lang.Object
-
- cz.o2.proxima.direct.io.bulkfs.FileFormatUtils
-
public class FileFormatUtils extends java.lang.Object
Utility class to be shared between various bulk storages.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FileFormat
getFileFormat(java.lang.String cfgPrefix, java.util.Map<java.lang.String,java.lang.Object> cfg)
GetFileFormat
from configuration.static NamingConvention
getNamingConvention(java.lang.String cfgPrefix, java.util.Map<java.lang.String,java.lang.Object> cfg, long rollPeriodMs, FileFormat format)
RetrieveNamingConvention
from configuration.
-
-
-
Method Detail
-
getNamingConvention
public static NamingConvention getNamingConvention(java.lang.String cfgPrefix, java.util.Map<java.lang.String,java.lang.Object> cfg, long rollPeriodMs, FileFormat format)
RetrieveNamingConvention
from configuration.- Parameters:
cfgPrefix
- config prefixcfg
- configrollPeriodMs
- roll periodformat
-FileFormat
file format- Returns:
NamingConvention
file naming convention
-
getFileFormat
public static FileFormat getFileFormat(java.lang.String cfgPrefix, java.util.Map<java.lang.String,java.lang.Object> cfg)
GetFileFormat
from configuration.- Parameters:
cfgPrefix
- prefix to add to default config settingscfg
- the configuration- Returns:
FileFormat
-
-