@Test public void assertIsNotLocalServerPath() { assertFalse(serverNode.isLocalServerPath("/test_job/servers/127.0.0.2")); }
public boolean isLocalServerPath(final String path) { JobInstance jobInstance = JobRegistry.getInstance().getJobInstance(jobName); if (Objects.isNull(jobInstance)) { return false; } return path.equals(jobNodePath.getFullPath(String.format(SERVERS, jobInstance.getIp()))); }
ServerNode { public boolean isLocalServerPath(final String path) { JobInstance jobInstance = JobRegistry.getInstance().getJobInstance(jobName); if (Objects.isNull(jobInstance)) { return false; } return path.equals(jobNodePath.getFullPath(String.format(SERVERS, jobInstance.getIp()))); } }
ServerNode { public boolean isLocalServerPath(final String path) { JobInstance jobInstance = JobRegistry.getInstance().getJobInstance(jobName); if (Objects.isNull(jobInstance)) { return false; } return path.equals(jobNodePath.getFullPath(String.format(SERVERS, jobInstance.getIp()))); } ServerNode(final String jobName); }
ServerNode { public boolean isLocalServerPath(final String path) { JobInstance jobInstance = JobRegistry.getInstance().getJobInstance(jobName); if (Objects.isNull(jobInstance)) { return false; } return path.equals(jobNodePath.getFullPath(String.format(SERVERS, jobInstance.getIp()))); } ServerNode(final String jobName); boolean isServerPath(final String path); boolean isLocalServerPath(final String path); }
ServerNode { public boolean isLocalServerPath(final String path) { JobInstance jobInstance = JobRegistry.getInstance().getJobInstance(jobName); if (Objects.isNull(jobInstance)) { return false; } return path.equals(jobNodePath.getFullPath(String.format(SERVERS, jobInstance.getIp()))); } ServerNode(final String jobName); boolean isServerPath(final String path); boolean isLocalServerPath(final String path); static final String ROOT; }