static protected void checkForInterrupt(ServerConnection servConn, Exception e) throws InterruptedException, InterruptedIOException { servConn.getCachedRegionHelper().checkCancelInProgress(e); if (e instanceof InterruptedException) { throw (InterruptedException)e; } if (e instanceof InterruptedIOException) { throw (InterruptedIOException)e; } }
static protected void checkForInterrupt(ServerConnection servConn, Exception e) throws InterruptedException, InterruptedIOException { servConn.getCachedRegionHelper().checkCancelInProgress(e); if (e instanceof InterruptedException) { throw (InterruptedException)e; } if (e instanceof InterruptedIOException) { throw (InterruptedIOException)e; } }
private static void handleInterruptedIOException(Message msg, ServerConnection servConn, Exception e) { CachedRegionHelper crHelper = servConn.getCachedRegionHelper(); if (!crHelper.isShutdown() && servConn.isOpen()) { if (!suppressIOExceptionLogging) { if (logger.isDebugEnabled()) logger.debug("Aborted message due to interrupt: {}", e.getMessage(), e); } } servConn.setFlagProcessMessagesAsFalse(); }
protected boolean isOkayToSendResult() { return (sc.getAcceptor().isRunning() && !ids.isDisconnecting() && !sc.getCachedRegionHelper().getCache().isClosed() && !alreadySendException .get()); }
private void handleRegionNull(ServerConnection servConn, String regionName, int batchId) { GemFireCacheImpl gfc = (GemFireCacheImpl)servConn.getCachedRegionHelper().getCache(); if (gfc != null && gfc.isCacheAtShutdownAll()) { throw new CacheClosedException("Shutdown occurred during message processing"); } else { String reason = LocalizedStrings.ProcessBatch_WAS_NOT_FOUND_DURING_BATCH_CREATE_REQUEST_0.toLocalizedString(new Object[] {regionName, Integer.valueOf(batchId)}); throw new RegionDestroyedException(reason, regionName); } }
protected boolean isOkayToSendResult() { return (sc.getAcceptor().isRunning() && !ids.isDisconnecting() && !sc.getCachedRegionHelper().getCache().isClosed() && !alreadySendException .get()); }
if (chm != null) chm.receivedPing(servConn.getProxyID()); CachedRegionHelper crHelper = servConn.getCachedRegionHelper(); if (crHelper.emulateSlowServer() > 0) { servConn.getCachedRegionHelper().getCache().getCancelCriterion() .checkCancelInProgress(ugh);
private static void handleShutdownException(Message msg, ServerConnection servConn, Exception e) { CachedRegionHelper crHelper = servConn.getCachedRegionHelper(); boolean potentialModification = servConn.getPotentialModification(); if (!crHelper.isShutdown()) { if (potentialModification) { int transId = (msg != null) ? msg.getTransactionId() : Integer.MIN_VALUE; logger.warn(LocalizedMessage.create( LocalizedStrings.BaseCommand_0_UNEXPECTED_SHUTDOWNEXCEPTION_DURING_OPERATION_ON_REGION_1_KEY_2_MESSAGEID_3, new Object[] {servConn.getName(), servConn.getModRegion(), servConn.getModKey(), Integer.valueOf(transId)}), e); } else { logger.warn(LocalizedMessage.create( LocalizedStrings.BaseCommand_0_UNEXPECTED_SHUTDOWNEXCEPTION, servConn.getName()),e); } } servConn.setFlagProcessMessagesAsFalse(); }
private static void handleInterruptedIOException(Message msg, ServerConnection servConn, Exception e) { LogWriterI18n logger = servConn.getLogger(); CachedRegionHelper crHelper = servConn.getCachedRegionHelper(); if (!crHelper.isShutdown() && servConn.isOpen()) { if (!suppressIOExceptionLogging) { if (logger.fineEnabled()) logger.fine("Aborted message due to interrupt: " + e); } } servConn.setFlagProcessMessagesAsFalse(); }
private static void handleIOException(Message msg, ServerConnection servConn, Exception e) { CachedRegionHelper crHelper = servConn.getCachedRegionHelper(); boolean potentialModification = servConn.getPotentialModification(); if (!crHelper.isShutdown() && servConn.isOpen()) { if (!suppressIOExceptionLogging) { if (potentialModification) { int transId = (msg != null) ? msg.getTransactionId() : Integer.MIN_VALUE; logger.warn(LocalizedMessage.create( LocalizedStrings.BaseCommand_0_UNEXPECTED_IOEXCEPTION_DURING_OPERATION_FOR_REGION_1_KEY_2_MESSID_3, new Object[] {servConn.getName(), servConn.getModRegion(), servConn.getModKey(), Integer.valueOf(transId)}), e); } else { logger.warn(LocalizedMessage.create( LocalizedStrings.BaseCommand_0_UNEXPECTED_IOEXCEPTION, servConn.getName()), e); } } } servConn.setFlagProcessMessagesAsFalse(); }
private static void handleEOFException(Message msg, ServerConnection servConn, Exception eof) { CachedRegionHelper crHelper = servConn.getCachedRegionHelper(); CacheServerStats stats = servConn.getCacheServerStats(); boolean potentialModification = servConn.getPotentialModification(); if (!crHelper.isShutdown()) { if (potentialModification) { stats.incAbandonedWriteRequests(); } else { stats.incAbandonedReadRequests(); } if (!suppressIOExceptionLogging) { if (potentialModification) { int transId = (msg != null) ? msg.getTransactionId() : Integer.MIN_VALUE; logger.warn(LocalizedMessage.create( LocalizedStrings.BaseCommand_0_EOFEXCEPTION_DURING_A_WRITE_OPERATION_ON_REGION__1_KEY_2_MESSAGEID_3, new Object[] {servConn.getName(), servConn.getModRegion(), servConn.getModKey(), Integer.valueOf(transId)})); } else { logger.debug("EOF exception", eof); logger.info(LocalizedMessage.create( LocalizedStrings.BaseCommand_0_CONNECTION_DISCONNECT_DETECTED_BY_EOF, servConn.getName())); } } } servConn.setFlagProcessMessagesAsFalse(); }
if (chm != null) chm.receivedPing(servConn.getProxyID()); CachedRegionHelper crHelper = servConn.getCachedRegionHelper(); if (crHelper.emulateSlowServer() > 0) { servConn.getCachedRegionHelper().getCache().getCancelCriterion() .checkCancelInProgress(ugh);
throws IOException, ClassNotFoundException, InterruptedException { String regionFullPath = null; CachedRegionHelper crHelper = servConn.getCachedRegionHelper(); regionFullPath = msg.getPart(0).getString(); String errMessage = "";
private static void handleShutdownException(Message msg, ServerConnection servConn, Exception e) { LogWriterI18n logger = servConn.getLogger(); CachedRegionHelper crHelper = servConn.getCachedRegionHelper(); boolean potentialModification = servConn.getPotentialModification(); if (!crHelper.isShutdown()) { if (potentialModification) { int transId = (msg != null) ? msg.getTransactionId() : Integer.MIN_VALUE; if (logger.warningEnabled()) { logger.warning( LocalizedStrings.BaseCommand_0_UNEXPECTED_SHUTDOWNEXCEPTION_DURING_OPERATION_ON_REGION_1_KEY_2_MESSAGEID_3, new Object[] {servConn.getName(), servConn.getModRegion(), servConn.getModKey(), Integer.valueOf(transId)}, e); } } else { if (logger.warningEnabled()) { logger.warning( LocalizedStrings.BaseCommand_0_UNEXPECTED_SHUTDOWNEXCEPTION, servConn.getName(),e); } } } servConn.setFlagProcessMessagesAsFalse(); }
private static void handleIOException(Message msg, ServerConnection servConn, Exception e) { LogWriterI18n logger = servConn.getLogger(); CachedRegionHelper crHelper = servConn.getCachedRegionHelper(); boolean potentialModification = servConn.getPotentialModification(); if (!crHelper.isShutdown() && servConn.isOpen()) { if (!suppressIOExceptionLogging) { if (potentialModification) { int transId = (msg != null) ? msg.getTransactionId() : Integer.MIN_VALUE; if (logger.warningEnabled()) { logger.warning( LocalizedStrings.BaseCommand_0_UNEXPECTED_IOEXCEPTION_DURING_OPERATION_FOR_REGION_1_KEY_2_MESSID_3, new Object[] {servConn.getName(), servConn.getModRegion(), servConn.getModKey(), Integer.valueOf(transId)}, e); } } else { if (logger.warningEnabled()) { logger.warning( LocalizedStrings.BaseCommand_0_UNEXPECTED_IOEXCEPTION, servConn.getName(), e); } } } } servConn.setFlagProcessMessagesAsFalse(); }
private static void handleEOFException(Message msg, ServerConnection servConn, Exception eof) { LogWriterI18n logger = servConn.getLogger(); CachedRegionHelper crHelper = servConn.getCachedRegionHelper(); CacheServerStats stats = servConn.getCacheServerStats(); boolean potentialModification = servConn.getPotentialModification();
QueryService queryService = ((GemFireCacheImpl)servConn.getCachedRegionHelper().getCache()) .getLocalQueryService(); com.gemstone.gemfire.cache.query.Query query = queryService
QueryService queryService = ((GemFireCacheImpl)servConn.getCachedRegionHelper().getCache()) .getLocalQueryService(); com.gemstone.gemfire.cache.query.Query query = queryService
@Override public void cmdExecute(Message msg, ServerConnection servConn, long start) throws IOException { CachedRegionHelper crHelper = servConn.getCachedRegionHelper(); servConn.setAsTrue(REQUIRES_RESPONSE); servConn.setAsTrue(REQUIRES_CHUNKED_RESPONSE);
@Override public void cmdExecute(Message msg, ServerConnection servConn, long start) throws IOException { CachedRegionHelper crHelper = servConn.getCachedRegionHelper();