ServerNode { static String getProcessFailureCountNode(final String ip) { return String.format(PROCESS_FAILURE_COUNT, 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 assertProcessFailureCountNode() { assertThat(ServerNode.getProcessFailureCountNode("host0"), is("servers/host0/processFailureCount")); }