Search in sources :

Example 1 with Inject

use of org.infinispan.factories.annotations.Inject in project wildfly by wildfly.

the class ChannelFactoryTransport method setConfiguration.

@Inject
@Override
public void setConfiguration(GlobalConfiguration config) {
    GlobalConfigurationBuilder builder = new GlobalConfigurationBuilder();
    // WFLY-6685 Prevent Infinispan from registering channel mbeans
    // The JGroups subsystem already does this
    builder.globalJmxStatistics().read(config.globalJmxStatistics()).disable();
    // ISPN-4755 workaround
    TransportConfiguration transport = config.transport();
    builder.transport().clusterName(transport.clusterName()).distributedSyncTimeout(transport.distributedSyncTimeout()).initialClusterSize(transport.initialClusterSize()).initialClusterTimeout(transport.initialClusterTimeout(), TimeUnit.MILLISECONDS).machineId(transport.machineId()).nodeName(transport.nodeName()).rackId(transport.rackId()).siteId(transport.siteId()).transport(transport.transport()).withProperties(transport.properties());
    super.setConfiguration(builder.build());
}
Also used : GlobalConfigurationBuilder(org.infinispan.configuration.global.GlobalConfigurationBuilder) TransportConfiguration(org.infinispan.configuration.global.TransportConfiguration) Inject(org.infinispan.factories.annotations.Inject)

Aggregations

GlobalConfigurationBuilder (org.infinispan.configuration.global.GlobalConfigurationBuilder)1 TransportConfiguration (org.infinispan.configuration.global.TransportConfiguration)1 Inject (org.infinispan.factories.annotations.Inject)1