Search in sources :

Example 6 with TApiMetaData

use of com.navercorp.pinpoint.thrift.dto.TApiMetaData in project pinpoint by naver.

the class ThriftApiMetaDataHandler method handleRequest.

@Override
public void handleRequest(ServerRequest<TBase<?, ?>> serverRequest, ServerResponse<TBase<?, ?>> serverResponse) {
    final TBase<?, ?> data = serverRequest.getData();
    if (logger.isDebugEnabled()) {
        logger.debug("Handle request data={}", data);
    }
    if (data instanceof TApiMetaData) {
        TResult result = handleApiMetaData((TApiMetaData) data);
        serverResponse.write(result);
    } else {
        logger.warn("invalid serverRequest:{}", serverRequest);
    }
}
Also used : TApiMetaData(com.navercorp.pinpoint.thrift.dto.TApiMetaData) TResult(com.navercorp.pinpoint.thrift.dto.TResult)

Example 7 with TApiMetaData

use of com.navercorp.pinpoint.thrift.dto.TApiMetaData in project pinpoint by naver.

the class MetadataMessageConverter method convertApiMetaData.

private TApiMetaData convertApiMetaData(final ApiMetaData apiMetaData) {
    final TApiMetaData tApiMetaData = new TApiMetaData(agentId, agentStartTime, apiMetaData.getApiId(), apiMetaData.getApiInfo());
    tApiMetaData.setLine(apiMetaData.getLine());
    tApiMetaData.setType(apiMetaData.getType());
    return tApiMetaData;
}
Also used : TApiMetaData(com.navercorp.pinpoint.thrift.dto.TApiMetaData)

Aggregations

TApiMetaData (com.navercorp.pinpoint.thrift.dto.TApiMetaData)7 DefaultPinpointClientFactory (com.navercorp.pinpoint.rpc.client.DefaultPinpointClientFactory)2 PinpointClientFactory (com.navercorp.pinpoint.rpc.client.PinpointClientFactory)2 TestPinpointServerAcceptor (com.navercorp.pinpoint.test.server.TestPinpointServerAcceptor)2 TResult (com.navercorp.pinpoint.thrift.dto.TResult)2 TSqlMetaData (com.navercorp.pinpoint.thrift.dto.TSqlMetaData)2 TStringMetaData (com.navercorp.pinpoint.thrift.dto.TStringMetaData)2 Test (org.junit.Test)2 LoggingServerMessageListenerFactory (com.navercorp.pinpoint.rpc.server.LoggingServerMessageListenerFactory)1 TestServerMessageListenerFactory (com.navercorp.pinpoint.test.server.TestServerMessageListenerFactory)1 TAgentInfo (com.navercorp.pinpoint.thrift.dto.TAgentInfo)1 TAgentStat (com.navercorp.pinpoint.thrift.dto.TAgentStat)1 TAgentStatBatch (com.navercorp.pinpoint.thrift.dto.TAgentStatBatch)1 TSpan (com.navercorp.pinpoint.thrift.dto.TSpan)1 TSpanChunk (com.navercorp.pinpoint.thrift.dto.TSpanChunk)1 TSpanEvent (com.navercorp.pinpoint.thrift.dto.TSpanEvent)1 TBase (org.apache.thrift.TBase)1