コード例 #1
0
  private void poolFlushGainControlMessageArrived(PoolFlushGainControlMessage msg) {
    if (LOG_ENABLED) {
      _log.info("PoolFlushGainControlMessage : " + msg);
    }
    String poolName = msg.getPoolName();
    synchronized (_poolCollector) {
      HFCPool pool = _poolCollector.getPoolByName(poolName);
      if (pool == null) {
        _log.warn(
            "PoolFlushGainControlMessage : message arrived for non configured pool : " + poolName);
        return;
      }

      updateFlushCellAndFlushInfos(msg, pool);

      _eventDispatcher.poolFlushInfoUpdated(pool);
    }
  }
コード例 #2
0
  private void poolFlushGainControlMessageDidntArrive(String poolName) {
    if (LOG_ENABLED) {
      _log.info("poolFlushGainControlMessageDidntArrive : " + poolName);
    }
    synchronized (_poolCollector) {
      HFCPool pool = _poolCollector.getPoolByName(poolName);
      if (pool == null) {
        _log.warn(
            "PoolFlushGainControlMessage : message arrived for non configured pool : " + poolName);
        return;
      }
      pool.isActive = false;
      pool.lastUpdated = System.currentTimeMillis();
      pool.answerCount++;

      _eventDispatcher.poolFlushInfoUpdated(pool);
    }
  }