public static String errorPath(String stormId, String componentId) { try { return errorStormRoot(stormId) + ZK_SEPERATOR + URLEncoder.encode(componentId, "UTF-8"); } catch (UnsupportedEncodingException e) { throw Utils.wrapInRuntime(e); } }
@Override public void teardownTopologyErrors(String stormId) { try { stateStorage.delete_node(ClusterUtils.errorStormRoot(stormId)); } catch (Exception e) { if (Utils.exceptionCauseIsInstanceOf(KeeperException.class, e)) { // do nothing LOG.warn("Could not teardown errors for {}.", stormId); } else { throw e; } } }
@Override public void setupErrors(String stormId, Map<String, Object> topoConf) { stateStorage.mkdirs(ClusterUtils.ERRORS_SUBTREE, defaultAcls); stateStorage.mkdirs(ClusterUtils.errorStormRoot(stormId), ClusterUtils.mkTopoReadWriteAcls(topoConf)); }
String path = ClusterUtils.errorStormRoot(topoId); if (zk.checkExists().forPath(path) == null) { LOG.warn("Creating missing errors location {}", path);
public static String errorPath(String stormId, String componentId) { try { return errorStormRoot(stormId) + ZK_SEPERATOR + URLEncoder.encode(componentId, "UTF-8"); } catch (UnsupportedEncodingException e) { throw Utils.wrapInRuntime(e); } }
@Override public void teardownTopologyErrors(String stormId) { try { stateStorage.delete_node(ClusterUtils.errorStormRoot(stormId)); } catch (Exception e) { if (Utils.exceptionCauseIsInstanceOf(KeeperException.class, e)) { // do nothing LOG.warn("Could not teardown errors for {}.", stormId); } else { throw e; } } }
@Override public void setupErrors(String stormId, Map<String, Object> topoConf) { stateStorage.mkdirs(ClusterUtils.ERRORS_SUBTREE, acls); stateStorage.mkdirs(ClusterUtils.errorStormRoot(stormId), ClusterUtils.mkTopoReadWriteAcls(topoConf)); }
String path = ClusterUtils.errorStormRoot(topoId); if (zk.checkExists().forPath(path) == null) { LOG.warn("Creating missing errors location {}", path);