private String getDSCContents() { final StringBuffer buf = new StringBuffer(); final ConcurrentHashMap<GMSCacheable, Object> copy; copy = new ConcurrentHashMap<GMSCacheable, Object>(cache); for (Map.Entry<GMSCacheable, Object> entry : copy.entrySet()) { buf.append(entry.getKey().hashCode()).append(" key=") .append(entry.getKey().toString()) .append(" : value=") .append(entry.getValue()) .append("\n"); } return buf.toString(); }
private String getDSCContents() { final StringBuffer buf = new StringBuffer(); final ConcurrentHashMap<GMSCacheable, Object> copy; copy = new ConcurrentHashMap<GMSCacheable, Object>(cache); for (Map.Entry<GMSCacheable, Object> entry : copy.entrySet()) { buf.append(entry.getKey().hashCode()).append(" key=") .append(entry.getKey().toString()) .append(" : value=") .append(entry.getValue()) .append("\n"); } return buf.toString(); }
public void addToLocalCache(GMSCacheable cKey, final Object state) { cKey = getTrueKey(cKey); if (logger.isLoggable(Level.FINEST)) { logger.log(Level.FINEST, "Adding cKey=" + cKey.toString() + " state=" + state.toString()); } cache.put(cKey, state); notifyCacheUpdate(); printDSCContents(); }
public void addToLocalCache(GMSCacheable cKey, final Object state) { cKey = getTrueKey(cKey); if (logger.isLoggable(Level.FINEST)) { logger.log(Level.FINEST, "Adding cKey=" + cKey.toString() + " state=" + state.toString()); } cache.put(cKey, state); notifyCacheUpdate(); printDSCContents(); }
.startsWith(REC_PROGRESS_STATE)) { if (logger.isLoggable(Level.FINER)){ logger.log(Level.FINER, c.toString() + " value:" + entry.getValue()); logger.log(Level.FINER,"Returning true for isFenced query");
.startsWith(REC_PROGRESS_STATE)) { if (logger.isLoggable(Level.FINER)){ logger.log(Level.FINER, c.toString() + " value:" + entry.getValue()); logger.log(Level.FINER,"Returning true for isFenced query");