ServerNode { static String getShutdownNode(final String ip) { return String.format(SHUTDOWN, ip); } ServerNode(final String jobName); boolean isLocalJobTriggerPath(final String path); 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; }
@Test public void assertShutdownNode() { assertThat(ServerNode.getShutdownNode("host0"), is("servers/host0/shutdown")); }