Search in sources :

Example 1 with TServerMetaData

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

the class AgentInfoSender method createTServiceInfo.

private TServerMetaData createTServiceInfo() {
    TServerMetaData tServerMetaData = new TServerMetaData();
    tServerMetaData.setServerInfo(serverMetaData.getServerInfo());
    tServerMetaData.setVmArgs(serverMetaData.getVmArgs());
    List<TServiceInfo> tServiceInfos = new ArrayList<TServiceInfo>();
    for (ServiceInfo serviceInfo : serverMetaData.getServiceInfos()) {
        TServiceInfo tServiceInfo = new TServiceInfo();
        tServiceInfo.setServiceName(serviceInfo.getServiceName());
        tServiceInfo.setServiceLibs(serviceInfo.getServiceLibs());
        tServiceInfos.add(tServiceInfo);
    }
    tServerMetaData.setServiceInfos(tServiceInfos);
    return tServerMetaData;
}
Also used : ServiceInfo(com.navercorp.pinpoint.bootstrap.context.ServiceInfo) TServiceInfo(com.navercorp.pinpoint.thrift.dto.TServiceInfo) TServiceInfo(com.navercorp.pinpoint.thrift.dto.TServiceInfo) ArrayList(java.util.ArrayList) TServerMetaData(com.navercorp.pinpoint.thrift.dto.TServerMetaData)

Aggregations

ServiceInfo (com.navercorp.pinpoint.bootstrap.context.ServiceInfo)1 TServerMetaData (com.navercorp.pinpoint.thrift.dto.TServerMetaData)1 TServiceInfo (com.navercorp.pinpoint.thrift.dto.TServiceInfo)1 ArrayList (java.util.ArrayList)1