diff options
author | rescobar | 2011-08-25 22:40:40 +0000 |
---|---|---|
committer | Ryan D. Brooks | 2011-08-25 22:40:40 +0000 |
commit | fddccbbdf87d6c5e402f2fbaeea81c8bd83def1f (patch) | |
tree | 5f00b415be0cddfe8e03898cc6d912a72d84f0db | |
parent | c099d8c1b624d729d1599f1b9ce5cb445ea52fb9 (diff) | |
download | org.eclipse.osee-fddccbbdf87d6c5e402f2fbaeea81c8bd83def1f.tar.gz org.eclipse.osee-fddccbbdf87d6c5e402f2fbaeea81c8bd83def1f.tar.xz org.eclipse.osee-fddccbbdf87d6c5e402f2fbaeea81c8bd83def1f.zip |
feature[ats_Q9NLC]: Configure hazelcast to default to slf4j logging
-rw-r--r-- | plugins/org.eclipse.osee.cluster.admin.hazelcast/src/org/eclipse/osee/cluster/admin/hazelcast/internal/ClusterAdminImpl.java | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/plugins/org.eclipse.osee.cluster.admin.hazelcast/src/org/eclipse/osee/cluster/admin/hazelcast/internal/ClusterAdminImpl.java b/plugins/org.eclipse.osee.cluster.admin.hazelcast/src/org/eclipse/osee/cluster/admin/hazelcast/internal/ClusterAdminImpl.java index 2a505ac61e7..dc8fca1860f 100644 --- a/plugins/org.eclipse.osee.cluster.admin.hazelcast/src/org/eclipse/osee/cluster/admin/hazelcast/internal/ClusterAdminImpl.java +++ b/plugins/org.eclipse.osee.cluster.admin.hazelcast/src/org/eclipse/osee/cluster/admin/hazelcast/internal/ClusterAdminImpl.java @@ -85,6 +85,14 @@ public class ClusterAdminImpl implements ClusterAdmin, InstanceManager { private Config getConfiguration(Map<String, Object> properties) { Config config = null; + + String loggerClass = System.getProperty("hazelcast.logging.class"); + if (loggerClass == null) { + String loggerType = System.getProperty("hazelcast.logging.type"); + if (loggerType == null) { + System.setProperty("hazelcast.logging.type", "slf4j"); + } + } String configPath = ClusterServiceUtils.getConfigurationURL(properties); if (configPath != null && configPath.length() > 0) { config = loadConfiguration(configPath); @@ -94,8 +102,8 @@ public class ClusterAdminImpl implements ClusterAdmin, InstanceManager { Properties props = config.getProperties(); props.put(GroupProperties.PROP_VERSION_CHECK_ENABLED, "false"); // props.put(GroupProperties.PROP_REST_ENABLED, "true"); - props.put(GroupProperties.PROP_ENABLE_JMX, "true"); - props.put(GroupProperties.PROP_ENABLE_JMX_DETAILED, "true"); + props.put(GroupProperties.PROP_ENABLE_JMX, "false"); + props.put(GroupProperties.PROP_ENABLE_JMX_DETAILED, "false"); return config; } @@ -146,9 +154,9 @@ public class ClusterAdminImpl implements ClusterAdmin, InstanceManager { } distributedObjects.clear(); if (instance != null) { + deregisterEventListeners(); LifecycleService service = instance.getLifecycleService(); service.shutdown(); - deregisterEventListeners(); instance = null; } eventNotifier.notifyDeRegistration(); |