Search in sources :

Example 1 with ServicesConfig

use of com.hazelcast.config.ServicesConfig in project hazelcast by hazelcast.

the class ServiceManagerImpl method registerServices.

private void registerServices(Map<String, Properties> serviceProps, Map<String, Object> serviceConfigObjects) {
    registerCoreServices();
    registerExtensionServices();
    Node node = nodeEngine.getNode();
    ServicesConfig servicesConfig = node.getConfig().getServicesConfig();
    if (servicesConfig != null) {
        registerDefaultServices(servicesConfig);
        registerUserServices(servicesConfig, serviceProps, serviceConfigObjects);
    }
}
Also used : Node(com.hazelcast.instance.Node) ServicesConfig(com.hazelcast.config.ServicesConfig)

Example 2 with ServicesConfig

use of com.hazelcast.config.ServicesConfig in project hazelcast by hazelcast.

the class MultiMapTransactionStressTest method createConfigWithDummyTxService.

private Config createConfigWithDummyTxService() {
    Config config = new Config();
    ServicesConfig servicesConfig = config.getServicesConfig();
    servicesConfig.addServiceConfig(new ServiceConfig().setName(DUMMY_TX_SERVICE).setEnabled(true).setImplementation(new MapTransactionStressTest.DummyTransactionalService(DUMMY_TX_SERVICE)));
    return config;
}
Also used : ServiceConfig(com.hazelcast.config.ServiceConfig) Config(com.hazelcast.config.Config) ServiceConfig(com.hazelcast.config.ServiceConfig) ServicesConfig(com.hazelcast.config.ServicesConfig) ServicesConfig(com.hazelcast.config.ServicesConfig)

Example 3 with ServicesConfig

use of com.hazelcast.config.ServicesConfig in project hazelcast by hazelcast.

the class MapTransactionStressTest method createConfigWithDummyTxService.

private Config createConfigWithDummyTxService() {
    Config config = getConfig();
    ServicesConfig servicesConfig = config.getServicesConfig();
    servicesConfig.addServiceConfig(new ServiceConfig().setName(DUMMY_TX_SERVICE).setEnabled(true).setImplementation(new DummyTransactionalService(DUMMY_TX_SERVICE)));
    return config;
}
Also used : ServiceConfig(com.hazelcast.config.ServiceConfig) ServicesConfig(com.hazelcast.config.ServicesConfig) Config(com.hazelcast.config.Config) ServiceConfig(com.hazelcast.config.ServiceConfig) ServicesConfig(com.hazelcast.config.ServicesConfig)

Aggregations

ServicesConfig (com.hazelcast.config.ServicesConfig)3 Config (com.hazelcast.config.Config)2 ServiceConfig (com.hazelcast.config.ServiceConfig)2 Node (com.hazelcast.instance.Node)1