use of com.navercorp.pinpoint.thrift.dto.command.TCommandTransferResponse in project pinpoint by naver.
the class AgentEventHandler method handleResponseEvent.
public void handleResponseEvent(ResponseEvent responseEvent, long eventTimestamp) {
if (responseEvent == null) {
throw new NullPointerException("responseEvent may not be null");
}
TCommandTransferResponse response = responseEvent.getRouteResult();
if (response.getRouteResult() != TRouteResult.OK) {
return;
}
this.executor.execute(new AgentResponseEventHandlerDispatch(responseEvent, eventTimestamp));
}
use of com.navercorp.pinpoint.thrift.dto.command.TCommandTransferResponse in project pinpoint by naver.
the class DefaultPinpointRouteResponse method parse.
public void parse(DeserializerFactory<HeaderTBaseDeserializer> commandDeserializerFactory) {
if (!isParsed) {
if (payload == null || payload.length == 0) {
routeResult = TRouteResult.EMPTY_RESPONSE;
return;
}
TBase object = deserialize(commandDeserializerFactory, payload, null);
if (object == null) {
routeResult = TRouteResult.NOT_SUPPORTED_RESPONSE;
} else if (object instanceof TCommandTransferResponse) {
TCommandTransferResponse commandResponse = (TCommandTransferResponse) object;
TRouteResult routeResult = commandResponse.getRouteResult();
if (routeResult == null) {
this.routeResult = TRouteResult.UNKNOWN;
} else {
this.routeResult = routeResult;
}
response = deserialize(commandDeserializerFactory, commandResponse.getPayload(), null);
} else {
routeResult = TRouteResult.UNKNOWN;
response = object;
}
isParsed = true;
}
}
Aggregations