private List<StorageConf> createStorageConfs(JobConf jobConf) {
List<JobPluginConf> writerConfList = jobConf.getWriterConfs();
List<StorageConf> result = new ArrayList<StorageConf>();
for (JobPluginConf jobPluginConf : writerConfList) {
StorageConf storageConf = new StorageConf();
storageConf.setId(jobPluginConf.getId());
storageConf.setStorageClassName(engineConf.getValue(
EngineConfParamKey.STORAGE_CLASS_NAME,
DEFAULT_STORAGE_CLASS_NAME));
storageConf.setLineLimit(engineConf.getIntValue(
EngineConfParamKey.STORAGE_LINE_LIMIT,
DEFAULT_STORAGE_LINE_LIMIT));
storageConf.setByteLimit(engineConf.getIntValue(
EngineConfParamKey.STORAGE_BYTE_LIMIT,
DEFAULT_STORAGE_BYTE_LIMIT));
storageConf.setDestructLimit(engineConf.getIntValue(
EngineConfParamKey.STORAGE_DESTRUCT_LIMIT,
DEFAULT_STORAGE_DESTRUCT_LIMIT));
storageConf.setPeriod(engineConf.getIntValue(
EngineConfParamKey.MONITOR_INFO_DISPLAY_PERIOD,
INFO_SHOW_PERIOD));
storageConf.setWaitTime(engineConf.getIntValue(
EngineConfParamKey.STORAGE_WAIT_TIME,
DEFAULT_STORAGE_WAIT_TIME));
storageConf
.setPeripheralTimeout(engineConf
.getIntValue(EngineConfParamKey.READER_AND_WRITER_PERIPHERAL_TIMEOUT));
result.add(storageConf);
}
return result;