Search in sources :

Example 1 with StandaloneModuleListenerService

use of org.apache.skywalking.apm.collector.cluster.standalone.service.StandaloneModuleListenerService in project incubator-skywalking by apache.

the class ClusterModuleStandaloneProvider method prepare.

@Override
public void prepare(Properties config) throws ServiceNotProvidedException {
    this.dataMonitor = new ClusterStandaloneDataMonitor();
    final String url = config.getProperty(URL);
    final String userName = config.getProperty(USER_NAME);
    h2Client = new H2Client(url, userName, Const.EMPTY_STRING);
    this.dataMonitor.setClient(h2Client);
    this.registerServiceImplementation(ModuleListenerService.class, new StandaloneModuleListenerService(dataMonitor));
    this.registerServiceImplementation(ModuleRegisterService.class, new StandaloneModuleRegisterService(dataMonitor));
}
Also used : StandaloneModuleListenerService(org.apache.skywalking.apm.collector.cluster.standalone.service.StandaloneModuleListenerService) StandaloneModuleRegisterService(org.apache.skywalking.apm.collector.cluster.standalone.service.StandaloneModuleRegisterService) H2Client(org.apache.skywalking.apm.collector.client.h2.H2Client)

Aggregations

H2Client (org.apache.skywalking.apm.collector.client.h2.H2Client)1 StandaloneModuleListenerService (org.apache.skywalking.apm.collector.cluster.standalone.service.StandaloneModuleListenerService)1 StandaloneModuleRegisterService (org.apache.skywalking.apm.collector.cluster.standalone.service.StandaloneModuleRegisterService)1