Search in sources :

Example 1 with Bootstrap

use of com.navercorp.pinpoint.flink.Bootstrap in project pinpoint by naver.

the class StatisticsDao method open.

@Override
public void open(Configuration parameters) throws Exception {
    ExecutionConfig.GlobalJobParameters globalJobParameters = getRuntimeContext().getExecutionConfig().getGlobalJobParameters();
    Bootstrap bootstrap = Bootstrap.getInstance(globalJobParameters.toMap());
    cpuLoadDao = bootstrap.getCpuLoadDao();
    memoryDao = bootstrap.getMemoryDao();
    transactionDao = bootstrap.getTransactionDao();
    activeTraceDao = bootstrap.getActiveTraceDao();
    responseTimeDao = bootstrap.getResponseTimeDao();
    dataSourceDao = bootstrap.getDataSourceDao();
    fileDescriptorDao = bootstrap.getFileDescriptorDao();
    directBufferDao = bootstrap.getDirectBufferDao();
    totalThreadCountDao = bootstrap.getTotalThreadCountDao();
    loadedClassDao = bootstrap.getLoadedClassDao();
    statisticsDaoInterceptor = bootstrap.getStatisticsDaoInterceptor();
}
Also used : Bootstrap(com.navercorp.pinpoint.flink.Bootstrap) ExecutionConfig(org.apache.flink.api.common.ExecutionConfig)

Example 2 with Bootstrap

use of com.navercorp.pinpoint.flink.Bootstrap in project pinpoint by naver.

the class TcpSourceFunction method run.

@Override
public void run(SourceContext<RawData> ctx) throws Exception {
    final Bootstrap bootstrap = Bootstrap.getInstance(globalJobParameters.toMap());
    bootstrap.setStatHandlerTcpDispatchHandler(ctx);
    bootstrap.initFlinkServerRegister();
    bootstrap.initTcpReceiver();
    Thread.sleep(Long.MAX_VALUE);
}
Also used : Bootstrap(com.navercorp.pinpoint.flink.Bootstrap)

Example 3 with Bootstrap

use of com.navercorp.pinpoint.flink.Bootstrap in project pinpoint by naver.

the class TBaseFlatMapper method open.

public void open(Configuration parameters) throws Exception {
    GlobalJobParameters globalJobParameters = getRuntimeContext().getExecutionConfig().getGlobalJobParameters();
    this.joinAgentStatBoMapper = new JoinAgentStatBoMapper();
    Bootstrap bootstrap = Bootstrap.getInstance(globalJobParameters.toMap());
    applicationCache = bootstrap.getApplicationCache();
    tBaseFlatMapperInterceptor = bootstrap.getTbaseFlatMapperInterceptor();
}
Also used : JoinAgentStatBoMapper(com.navercorp.pinpoint.flink.mapper.thrift.stat.JoinAgentStatBoMapper) Bootstrap(com.navercorp.pinpoint.flink.Bootstrap) GlobalJobParameters(org.apache.flink.api.common.ExecutionConfig.GlobalJobParameters)

Aggregations

Bootstrap (com.navercorp.pinpoint.flink.Bootstrap)3 JoinAgentStatBoMapper (com.navercorp.pinpoint.flink.mapper.thrift.stat.JoinAgentStatBoMapper)1 ExecutionConfig (org.apache.flink.api.common.ExecutionConfig)1 GlobalJobParameters (org.apache.flink.api.common.ExecutionConfig.GlobalJobParameters)1