use of com.yahoo.vespa.hosted.node.admin.configserver.noderepository.bindings.NodeMessageResponse in project vespa by vespa-engine.
the class RealNodeRepository method markNodeToState.
private void markNodeToState(String hostName, String state) {
NodeMessageResponse response = configServerApi.put("/nodes/v2/state/" + state + "/" + hostName, Optional.empty(), /* body */
NodeMessageResponse.class);
NODE_ADMIN_LOGGER.info(response.message);
if (response.errorCode == null || response.errorCode.isEmpty()) {
return;
}
throw new RuntimeException("Unexpected message " + response.message + " " + response.errorCode);
}
Aggregations