/** * Returns a connection to the distributed system that is appropriate for administration. This * method is for internal use only by the admin API. * * @since GemFire 4.0 */ protected static DistributedSystem connectForAdmin(Properties props) { DistributedSystem existing = getConnection(props); if (existing != null) { return existing; } else { // logger.info("creating new distributed system for admin"); // for (java.util.Enumeration en=props.propertyNames(); en.hasMoreElements(); ) { // String prop=(String)en.nextElement(); // logger.info(prop + "=" + props.getProperty(prop)); // } props.setProperty(CONSERVE_SOCKETS, "true"); // LOG: no longer using the LogWriter that was passed in return connect(props); } }
DistributedSystem existingSystem = getConnection(config); if (existingSystem != null) { return existingSystem;