public void reportUnresolvableCongestion() throws HyracksDataException { if (this.runtimeId.getFeedRuntimeType().equals(FeedRuntimeType.COMPUTE)) { FeedCongestionMessage congestionReport = new FeedCongestionMessage( connectionId, runtimeId, mBuffer.getInflowRate(), mBuffer.getOutflowRate(), mode); feedManager.getFeedMessageService().sendMessage(congestionReport); if (LOGGER.isLoggable(Level.WARNING)) { LOGGER.warning("Congestion reported " + this.connectionId + " " + this.runtimeId); } } else { if (LOGGER.isLoggable(Level.WARNING)) { LOGGER.warning("Unresolvable congestion at " + this.connectionId + " " + this.runtimeId); } } }
public void setThrottlingEnabled(boolean throttlingEnabled) { if (this.throttlingEnabled != throttlingEnabled) { this.throttlingEnabled = throttlingEnabled; IFeedMessage throttlingEnabledMesg = new ThrottlingEnabledFeedMessage(connectionId, runtimeId); feedManager.getFeedMessageService().sendMessage(throttlingEnabledMesg); if (LOGGER.isLoggable(Level.WARNING)) { LOGGER.warning( "Throttling " + throttlingEnabled + " for " + this.connectionId + "[" + runtimeId + "]"); } } }