@SuppressWarnings("unchecked") public void gotData(String k, int flags, byte[] data) { if (data != null) { if(getDataSize == null) getDataSize = EVCacheMetricsFactory.getDistributionSummary(appName + "-GetOperation-DataSize", appName, serverGroup.getName()); if (getDataSize != null) getDataSize.record(data.length); } if (!key.equals(k)) log.warn("Wrong key returned. Key - {}; Returned Key {}", key, k); if (tc == null) { if (tcService == null) { log.error("tcService is null, will not be able to decode"); throw new RuntimeException("TranscoderSevice is null. Not able to decode"); } else { final Transcoder<T> t = (Transcoder<T>) getTranscoder(); val = tcService.decode(t, new CachedData(flags, data, t.getMaxSize())); } } else { if (tcService == null) { log.error("tcService is null, will not be able to decode"); throw new RuntimeException("TranscoderSevice is null. Not able to decode"); } else { val = tcService.decode(tc, new CachedData(flags, data, tc.getMaxSize())); } } }
throw new IllegalArgumentException("Operation timeout must be positive."); tcService = new TranscodeService(cf.isDaemon()); cf.getDefaultTranscoder(); opFact = cf.getOperationFactory();
conn.shutdown(); setName(baseName + " - SHUTTING DOWN (informed client)"); tcService.shutdown(); } catch (IOException e) { getLogger().warn("exception while shutting down", e);
throw new IllegalArgumentException("Operation timeout must be positive."); tcService = new TranscodeService(cf.isDaemon()); cf.getDefaultTranscoder(); opFact = cf.getOperationFactory();
conn.shutdown(); conn.setName(baseName + " - SHUTTING DOWN (informed client)"); tcService.shutdown(); } catch (IOException e) { getLogger().warn("exception while shutting down", e);
@Override public void gotData(String k, int flags, byte[] data) { if (data != null) { if(bulkDataSize == null) bulkDataSize = EVCacheMetricsFactory.getDistributionSummary(appName + "-BulkOperation-DataSize", appName, serverGroup.getName()); if (bulkDataSize != null) bulkDataSize.record(data.length); } m.put(k, tcService.decode(tc, new CachedData(flags, data, tc.getMaxSize()))); }
throw new IllegalArgumentException("Operation timeout must be positive."); tcService = new TranscodeService(cf.isDaemon()); cf.getDefaultTranscoder(); opFact = cf.getOperationFactory();
conn.shutdown(); setName(baseName + " - SHUTTING DOWN (informed client)"); tcService.shutdown(); } catch (IOException e) { getLogger().warn("exception while shutting down", e);
@Override public void gotData(String k, int flags, byte[] data) { Transcoder<T> tc = tcMap.get(k); m.put(k, tcService.decode(tc, new CachedData(flags, data, tc.getMaxSize()))); }
tcService = new TranscodeService(cf.isDaemon()); transcoder = cf.getDefaultTranscoder(); opFact = cf.getOperationFactory();
mconn.shutdown(); mconn.setName(baseName + " - SHUTTING DOWN (informed client)"); tcService.shutdown();
@Override public void gotData(String k, int flags, byte[] data) { Transcoder<T> tc = tcMap.get(k); m.put(k, tcService.decode(tc, new CachedData(flags, data, tc.getMaxSize()))); }
tcService = new TranscodeService(cf.isDaemon()); transcoder = cf.getDefaultTranscoder(); opFact = cf.getOperationFactory();
mconn.shutdown(); mconn.setName(baseName + " - SHUTTING DOWN (informed client)"); tcService.shutdown(); } catch (IOException e) { getLogger().warn("exception while shutting down", e);
public void gotData(String k, int flags, byte[] data) { Transcoder<T> tc = tc_map.get(k); m.put(k, tcService.decode(tc, new CachedData(flags, data, tc.getMaxSize()))); } public void complete() {
tcService = new TranscodeService(cf.isDaemon()); transcoder = cf.getDefaultTranscoder(); opFact = cf.getOperationFactory();
conn.shutdown(); conn.setName(baseName + " - SHUTTING DOWN (informed client)"); tcService.shutdown(); } catch (IOException e) { getLogger().warn("exception while shutting down", e);
public void gotData(String k, int flags, byte[] data) { Transcoder<T> tc = tcMap.get(k); m.put(k, tcService.decode(tc, new CachedData(flags, data, tc.getMaxSize()))); }
"Operation timeout must be positive."); tcService = new TranscodeService(); transcoder=cf.getDefaultTranscoder(); opFact=cf.getOperationFactory();
conn.shutdown(); conn.setName(baseName + " - SHUTTING DOWN (informed client)"); tcService.shutdown(); } catch (IOException e) { getLogger().warn("exception while shutting down", e);