/** * build the zookeeper registry path. * * @return the path the service registered at * @throws NullPointerException if the service has not yet registered */ private String getZkRegistryPath() { Preconditions.checkNotNull(yarnRegistry, "Yarn registry not bound"); String path = yarnRegistry.getAbsoluteSelfRegistrationPath(); Preconditions.checkNotNull(path, "Service record path not defined"); return path; }
/** * build the zookeeper registry path. * * @return the path the service registered at * @throws NullPointerException if the service has not yet registered */ private String getZkRegistryPath() { Preconditions.checkNotNull(yarnRegistry, "Yarn registry not bound"); String path = yarnRegistry.getAbsoluteSelfRegistrationPath(); Preconditions.checkNotNull(path, "Service record path not defined"); return path; }
log.info("Registered service under {}; absolute path {}", yarnRegistryOperations.getSelfRegistrationPath(), yarnRegistryOperations.getAbsoluteSelfRegistrationPath());
log.info("Registered service under {}; absolute path {}", yarnRegistryOperations.getSelfRegistrationPath(), yarnRegistryOperations.getAbsoluteSelfRegistrationPath());