Revision 50187
Added by Claudio Atzori over 6 years ago
DNetOpenaireExporterBeanFactory.java | ||
---|---|---|
8 | 8 |
import eu.dnetlib.OpenaireExporterConfig.Jdbc; |
9 | 9 |
import eu.dnetlib.data.objectstore.rmi.ObjectStoreService; |
10 | 10 |
import eu.dnetlib.enabling.is.lookup.rmi.ISLookUpService; |
11 |
import eu.dnetlib.enabling.is.registry.rmi.ISRegistryService; |
|
11 | 12 |
import io.prometheus.client.exporter.MetricsServlet; |
12 | 13 |
import io.prometheus.client.hotspot.DefaultExports; |
13 | 14 |
import io.prometheus.client.spring.boot.SpringBootMetricsCollector; |
... | ... | |
40 | 41 |
return getServiceStub(ObjectStoreService.class, config.getObjectStoreServiceUrl()); |
41 | 42 |
} |
42 | 43 |
|
44 |
@Bean |
|
45 |
public ISRegistryService getRegistryService() { |
|
46 |
return getServiceStub(ISRegistryService.class, config.getIsRegistryServiceUrl()); |
|
47 |
} |
|
48 |
|
|
43 | 49 |
private <T> T getServiceStub(final Class<T> clazz, final String endpoint) { |
44 | 50 |
final JaxWsProxyFactoryBean jaxWsProxyFactory = new JaxWsProxyFactoryBean(); |
45 | 51 |
jaxWsProxyFactory.setServiceClass(clazz); |
Also available in: Unified diff
imprved deferred writes operation in the IS