@Test public void assertGetItemWhenNotRunningItemPath() { assertNull(executionNode.getItemByRunningItemPath("/testJob/execution/0/completed")); }
public Integer getItemByRunningItemPath(final String path) { if (!isRunningItemPath(path)) { return null; } return Integer.parseInt(path.substring(jobNodePath.getFullPath(ROOT).length() + 1, path.lastIndexOf(RUNNING_APPENDIX) - 1)); }
ExecutionNode { public Integer getItemByRunningItemPath(final String path) { if (!isRunningItemPath(path)) { return null; } return Integer.parseInt(path.substring(jobNodePath.getFullPath(ROOT).length() + 1, path.lastIndexOf(RUNNING_APPENDIX) - 1)); } }
ExecutionNode { public Integer getItemByRunningItemPath(final String path) { if (!isRunningItemPath(path)) { return null; } return Integer.parseInt(path.substring(jobNodePath.getFullPath(ROOT).length() + 1, path.lastIndexOf(RUNNING_APPENDIX) - 1)); } ExecutionNode(final String jobName); }
ExecutionNode { public Integer getItemByRunningItemPath(final String path) { if (!isRunningItemPath(path)) { return null; } return Integer.parseInt(path.substring(jobNodePath.getFullPath(ROOT).length() + 1, path.lastIndexOf(RUNNING_APPENDIX) - 1)); } ExecutionNode(final String jobName); static String getRunningNode(final int item); Integer getItemByRunningItemPath(final String path); }
ExecutionNode { public Integer getItemByRunningItemPath(final String path) { if (!isRunningItemPath(path)) { return null; } return Integer.parseInt(path.substring(jobNodePath.getFullPath(ROOT).length() + 1, path.lastIndexOf(RUNNING_APPENDIX) - 1)); } ExecutionNode(final String jobName); static String getRunningNode(final int item); Integer getItemByRunningItemPath(final String path); static final String ROOT; }