Search in sources :

Example 1 with DefaultAgentInformation

use of com.navercorp.pinpoint.profiler.DefaultAgentInformation in project pinpoint by naver.

the class AgentGrpcDataSenderTestMain method newAgentInfo.

private AgentInfo newAgentInfo() {
    AgentInformation agentInformation = new DefaultAgentInformation(AGENT_ID, AGENT_NAME, APPLICATION_NAME, true, START_TIME, 99, "", "", ServiceType.TEST_STAND_ALONE, "1.0", "1.0");
    JvmInformation jvmInformation = new JvmInformation("1.0", JvmGcType.G1);
    ServerMetaData serverInfo = new DefaultServerMetaData("serverInfo", Collections.<String>emptyList(), Collections.<Integer, String>emptyMap(), Collections.<ServiceInfo>emptyList());
    return new AgentInfo(agentInformation, serverInfo, jvmInformation);
}
Also used : AgentInformation(com.navercorp.pinpoint.profiler.AgentInformation) DefaultAgentInformation(com.navercorp.pinpoint.profiler.DefaultAgentInformation) AgentInfo(com.navercorp.pinpoint.profiler.metadata.AgentInfo) DefaultAgentInformation(com.navercorp.pinpoint.profiler.DefaultAgentInformation) DefaultServerMetaData(com.navercorp.pinpoint.profiler.context.DefaultServerMetaData) ServerMetaData(com.navercorp.pinpoint.bootstrap.context.ServerMetaData) DefaultServerMetaData(com.navercorp.pinpoint.profiler.context.DefaultServerMetaData) JvmInformation(com.navercorp.pinpoint.profiler.JvmInformation)

Aggregations

ServerMetaData (com.navercorp.pinpoint.bootstrap.context.ServerMetaData)1 AgentInformation (com.navercorp.pinpoint.profiler.AgentInformation)1 DefaultAgentInformation (com.navercorp.pinpoint.profiler.DefaultAgentInformation)1 JvmInformation (com.navercorp.pinpoint.profiler.JvmInformation)1 DefaultServerMetaData (com.navercorp.pinpoint.profiler.context.DefaultServerMetaData)1 AgentInfo (com.navercorp.pinpoint.profiler.metadata.AgentInfo)1