/** * Return the time in sec to wait before sending an alert while waiting for ack replies. Note that * the ack wait threshold may change at runtime, so we have to consult the system every time. */ protected int getAckWaitThreshold() { return this.system.getConfig().getAckWaitThreshold(); }
/** * Return the time in sec to wait before sending an alert while waiting for ack replies. Note that * the ack wait threshold may change at runtime, so we have to consult the system every time. */ private int getAckWaitThreshold() { return dm.getConfig().getAckWaitThreshold(); }
private Duration warningDelay(InternalPersistenceAdvisor persistenceAdvisor) { return Duration.ofSeconds(persistenceAdvisor.getCacheDistributionAdvisor() .getDistributionManager().getConfig().getAckWaitThreshold()); }
return; long timeout = services.getConfig().getDistributionConfig().getAckWaitThreshold() * 1000L; long startTime = System.currentTimeMillis(); long warnTime = startTime + timeout;
/** * wait for the current operations being sent on views prior to the joining of the given member * to be placed on communication channels before returning * * @since GemFire 5.1 */ void waitForCurrentOperations() { long timeout = 1000L * distributionAdvisor.getDistributionManager().getSystem().getConfig() .getAckWaitThreshold(); waitForCurrentOperations(logger, timeout, timeout * 2L); }
@Before public void setup() { when(cacheDistributionAdvisor.getDistributionManager().getConfig().getAckWaitThreshold()) .thenReturn(15); persistenceAdvisor = mock(InternalPersistenceAdvisor.class); when(persistenceAdvisor.getCacheDistributionAdvisor()).thenReturn(cacheDistributionAdvisor); }
try { sentBytes = directChannel.send(this, keys, content, this.services.getConfig().getDistributionConfig().getAckWaitThreshold(), this.services.getConfig().getDistributionConfig().getAckSevereAlertThreshold());
long warnTime = getDistributionManager().getConfig().getAckWaitThreshold() * 1000L; boolean loggedWarning = false; try {
ackWaitThreshold = dm.getConfig().getAckWaitThreshold() * 1000L; waitInterval = ackWaitThreshold - 1; startTime = System.currentTimeMillis(); } else if (ackSAThreshold > 0) { ackWaitThreshold = dm.getConfig().getAckWaitThreshold() * 1000L; waitInterval = ackWaitThreshold; startTime = System.currentTimeMillis();
final long msAW = this.owner.getDM().getConfig().getAckWaitThreshold() * 1000L; final long msSA = this.owner.getDM().getConfig().getAckSevereAlertThreshold() * 1000L; ackTimeoutTask = new SystemTimer.SystemTimerTask() {
cache.getInternalDistributedSystem().getConfig().getAckWaitThreshold() * 1000L; waitInterval = ackWaitThreshold; start = System.currentTimeMillis();
ackWaitThreshold = getSystem().getConfig().getAckWaitThreshold() * 1000L; waitInterval = ackWaitThreshold; } else {
statisticSampleRate = other.getStatisticSampleRate(); statisticArchiveFile = other.getStatisticArchiveFile(); ackWaitThreshold = other.getAckWaitThreshold(); ackForceDisconnectThreshold = other.getAckSevereAlertThreshold(); cacheXmlFile = other.getCacheXmlFile();
gemFirePropertyData.setAckWaitThreshold(config.getAckWaitThreshold());