@Test public void assertIsServerShutdownPath() { assertTrue(serverNode.isServerShutdownPath("/testJob/servers/host0/shutdown")); assertFalse(serverNode.isServerShutdownPath("/otherJob/servers/host0/status")); assertFalse(serverNode.isServerShutdownPath("/testJob/servers/host0/status")); }
public boolean isServerShutdownPath(final String path) { return path.startsWith(jobNodePath.getFullPath(ServerNode.ROOT)) && path.endsWith(ServerNode.SHUTDOWN_APPENDIX); }
ServerNode { public boolean isServerShutdownPath(final String path) { return path.startsWith(jobNodePath.getFullPath(ServerNode.ROOT)) && path.endsWith(ServerNode.SHUTDOWN_APPENDIX); } }
ServerNode { public boolean isServerShutdownPath(final String path) { return path.startsWith(jobNodePath.getFullPath(ServerNode.ROOT)) && path.endsWith(ServerNode.SHUTDOWN_APPENDIX); } ServerNode(final String jobName); }
ServerNode { public boolean isServerShutdownPath(final String path) { return path.startsWith(jobNodePath.getFullPath(ServerNode.ROOT)) && path.endsWith(ServerNode.SHUTDOWN_APPENDIX); } ServerNode(final String jobName); boolean isLocalJobPausedPath(final String path); boolean isLocalJobShutdownPath(final String path); boolean isLocalServerDisabledPath(final String path); boolean isServerStatusPath(final String path); boolean isServerDisabledPath(final String path); boolean isServerShutdownPath(final String path); }
ServerNode { public boolean isServerShutdownPath(final String path) { return path.startsWith(jobNodePath.getFullPath(ServerNode.ROOT)) && path.endsWith(ServerNode.SHUTDOWN_APPENDIX); } ServerNode(final String jobName); boolean isLocalJobPausedPath(final String path); boolean isLocalJobShutdownPath(final String path); boolean isLocalServerDisabledPath(final String path); boolean isServerStatusPath(final String path); boolean isServerDisabledPath(final String path); boolean isServerShutdownPath(final String path); static final String ROOT; }