Example #1
0
 private Map<String, Object> findMemberAttributes(MemberAttributeConfig attributeConfig) {
   Map<String, Object> attributes = new HashMap<String, Object>(attributeConfig.getAttributes());
   Properties properties = System.getProperties();
   for (String key : properties.stringPropertyNames()) {
     if (key.startsWith("hazelcast.member.attribute.")) {
       String shortKey = key.substring("hazelcast.member.attribute.".length());
       String value = properties.getProperty(key);
       attributes.put(shortKey, value);
     }
   }
   return attributes;
 }