use of com.creditease.agent.http.api.UAVHttpMessage in project uavstack by uavorg.
the class APMRestService method queryJavaThreadAnalysis.
@POST
@Path("jta/q")
@Produces(MediaType.APPLICATION_JSON + ";charset=utf-8")
public void queryJavaThreadAnalysis(String data, @Suspended final AsyncResponse response) {
UAVHttpMessage msg = new UAVHttpMessage(data);
this.doHttpPost("uav.app.apm.jta.http.addr", "/jta/q", msg, new HttpClientCallback() {
@Override
public void completed(HttpClientCallbackResult result) {
response.resume(result.getReplyData());
}
@Override
public void failed(HttpClientCallbackResult result) {
String reStr = result.getReplyDataAsString();
response.resume(reStr);
logger.err(this, "query jta http server FAILED. retCode=" + result.getRetCode() + ", msg=" + reStr, result.getException());
}
});
}
use of com.creditease.agent.http.api.UAVHttpMessage in project uavstack by uavorg.
the class APMRestService method queryIVCData.
@POST
@Path("ivcdata/q")
@Produces(MediaType.APPLICATION_JSON + ";charset=utf-8")
public void queryIVCData(String data, @Suspended AsyncResponse response) {
UAVHttpMessage msg = new UAVHttpMessage(data);
this.doHttpPost("uav.app.apm.ivc.http.addr", "/slw/q", msg, new IVCCallback(response));
}
use of com.creditease.agent.http.api.UAVHttpMessage in project uavstack by uavorg.
the class ThreadAnalysisQueryServerWorker method adaptRequest.
@Override
protected UAVHttpMessage adaptRequest(HttpMessage message) {
String messageBody = message.getRequestBodyAsString("UTF-8");
if (log.isDebugEnable()) {
log.debug(this, "ThreadAnalysisQueryServerWorker Request: " + messageBody);
}
UAVHttpMessage msg = new UAVHttpMessage(messageBody);
return msg;
}
Aggregations