protected void pushToController(String releaseId, String containerId, String alias) throws Exception { String[] gav = releaseId.split(":"); String jsonPayload = CONTAINER_SPEC_JSON .replaceFirst("#1@", containerId) .replaceFirst("#2@", alias) .replaceFirst("#3@", gav[0]) .replaceFirst("#4@", gav[1]) .replaceFirst("#5@", gav[2]); HttpUtils.putHttpCall(CONTROLLER + "/management/servers/" + KieServerInfoHandler.getRouterId() + "/containers/" + containerId, jsonPayload); log.infof("Added %s container into controller at %s ", containerId, CONTROLLER); }
protected void pushToController(String releaseId, String containerId, String alias) throws Exception { String[] gav = releaseId.split(":"); String jsonPayload = CONTAINER_SPEC_JSON .replaceFirst("#1@", containerId) .replaceFirst("#2@", alias) .replaceFirst("#3@", gav[0]) .replaceFirst("#4@", gav[1]) .replaceFirst("#5@", gav[2]); HttpUtils.putHttpCall(CONTROLLER + "/management/servers/" + KieServerInfoHandler.getRouterId() + "/containers/" + containerId, jsonPayload); log.infof("Added %s container into controller at %s ", containerId, CONTROLLER); }
String jsonResponse = HttpUtils.putHttpCall(CONTROLLER + "/server/" + KieServerInfoHandler.getRouterId(), SERVER_INFO_JSON); log.debugf("Controller response :: ", String jsonResponse = HttpUtils.putHttpCall(CONTROLLER + "/server/" + KieServerInfoHandler.getRouterId(), SERVER_INFO_JSON); log.debugf("Controller response :: ",
String jsonResponse = HttpUtils.putHttpCall(CONTROLLER + "/server/" + KieServerInfoHandler.getRouterId(), SERVER_INFO_JSON); log.debugf("Controller response :: ", String jsonResponse = HttpUtils.putHttpCall(CONTROLLER + "/server/" + KieServerInfoHandler.getRouterId(), SERVER_INFO_JSON); log.debugf("Controller response :: ",