// we don't want any of the XmlConfigBuilder warnings as set the config programatically
Logger.getLogger("com.hazelcast.config.XmlConfigBuilder").setLevel(Level.SEVERE);
}
}
Config config = getHazelcastConfig();
// do this when theres a way to have adders be the key owners
// config.getMapConfig(configURI.getDomainName() + "/Endpoints").setBackupCount(0);
// this caches reads locally
config.getMapConfig("default").setNearCacheConfig(new NearCacheConfig(0, 0, "NONE", 0, true));
// Disable the Hazelcast shutdown hook as Tuscany has its own and with both there are race conditions
config.setProperty("hazelcast.shutdownhook.enabled",
// GroupProperties.PROP_SHUTDOWNHOOK_ENABLED,
"false");
// By default this is 5 seconds, not sure what the implications are but dropping it down to 1 makes
// things like the samples look much faster
config.setProperty("hazelcast.wait.seconds.before.join",
// GroupProperties.PROP_WAIT_SECONDS_BEFORE_JOIN,
"1");
this.hazelcastInstance = Hazelcast.newHazelcastInstance(config);
if (logger.isLoggable(Level.INFO)) {