public String getChangelogStream(String storeName) { // If the config specifies 'stores.<storename>.changelog' as '<system>.<stream>' combination - it will take precedence. // If this config only specifies <astream> and there is a value in job.changelog.system=<asystem> - // these values will be combined into <asystem>.<astream> String systemStream = StringUtils.trimToNull(get(String.format(CHANGELOG_STREAM, storeName), null)); String systemStreamRes; if (systemStream != null && !systemStream.contains(".")) { String changelogSystem = getChangelogSystem(); // contains only stream name if (changelogSystem != null) { systemStreamRes = changelogSystem + "." + systemStream; } else { throw new SamzaException("changelog system is not defined:" + systemStream); } } else { systemStreamRes = systemStream; } if (systemStreamRes != null) { systemStreamRes = StreamManager.createUniqueNameForBatch(systemStreamRes, this); } return systemStreamRes; }
public String getChangelogStream(String storeName) { // If the config specifies 'stores.<storename>.changelog' as '<system>.<stream>' combination - it will take precedence. // If this config only specifies <astream> and there is a value in job.changelog.system=<asystem> - // these values will be combined into <asystem>.<astream> String systemStream = StringUtils.trimToNull(get(String.format(CHANGELOG_STREAM, storeName), null)); String systemStreamRes; if (systemStream != null && !systemStream.contains(".")) { String changelogSystem = getChangelogSystem(); // contains only stream name if (changelogSystem != null) { systemStreamRes = changelogSystem + "." + systemStream; } else { throw new SamzaException("changelog system is not defined:" + systemStream); } } else { systemStreamRes = systemStream; } if (systemStreamRes != null) { systemStreamRes = StreamManager.createUniqueNameForBatch(systemStreamRes, this); } return systemStreamRes; }
public String getChangelogStream(String storeName) { // If the config specifies 'stores.<storename>.changelog' as '<system>.<stream>' combination - it will take precedence. // If this config only specifies <astream> and there is a value in job.changelog.system=<asystem> - // these values will be combined into <asystem>.<astream> String systemStream = StringUtils.trimToNull(get(String.format(CHANGELOG_STREAM, storeName), null)); String systemStreamRes; if (systemStream != null && !systemStream.contains(".")) { String changelogSystem = getChangelogSystem(); // contains only stream name if (changelogSystem != null) { systemStreamRes = changelogSystem + "." + systemStream; } else { throw new SamzaException("changelog system is not defined:" + systemStream); } } else { systemStreamRes = systemStream; } if (systemStreamRes != null) { systemStreamRes = StreamManager.createUniqueNameForBatch(systemStreamRes, this); } return systemStreamRes; }
public String getChangelogStream(String storeName) { // If the config specifies 'stores.<storename>.changelog' as '<system>.<stream>' combination - it will take precedence. // If this config only specifies <astream> and there is a value in job.changelog.system=<asystem> - // these values will be combined into <asystem>.<astream> String systemStream = StringUtils.trimToNull(get(String.format(CHANGELOG_STREAM, storeName), null)); String systemStreamRes; if (systemStream != null && !systemStream.contains(".")) { String changelogSystem = getChangelogSystem(); // contains only stream name if (changelogSystem != null) { systemStreamRes = changelogSystem + "." + systemStream; } else { throw new SamzaException("changelog system is not defined:" + systemStream); } } else { systemStreamRes = systemStream; } if (systemStreamRes != null) { systemStreamRes = StreamManager.createUniqueNameForBatch(systemStreamRes, this); } return systemStreamRes; }
public String getChangelogStream(String storeName) { // If the config specifies 'stores.<storename>.changelog' as '<system>.<stream>' combination - it will take precedence. // If this config only specifies <astream> and there is a value in job.changelog.system=<asystem> - // these values will be combined into <asystem>.<astream> String systemStream = StringUtils.trimToNull(get(String.format(CHANGELOG_STREAM, storeName), null)); String systemStreamRes; if (systemStream != null && !systemStream.contains(".")) { String changelogSystem = getChangelogSystem(); // contains only stream name if (changelogSystem != null) { systemStreamRes = changelogSystem + "." + systemStream; } else { throw new SamzaException("changelog system is not defined:" + systemStream); } } else { systemStreamRes = systemStream; } if (systemStreamRes != null) { systemStreamRes = StreamManager.createUniqueNameForBatch(systemStreamRes, this); } return systemStreamRes; }