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));
}
Aggregations