use of com.linkedin.databus2.relay.config.PhysicalSourceStaticConfig in project databus by linkedin.
the class DbusEventBufferMult method addBuffer.
/** add another buffer with the mappings */
public synchronized void addBuffer(PhysicalSourceStaticConfig pConfig, DbusEventBuffer buf) {
LOG.info("addBuffer for phSrc=" + pConfig + "; buf=" + buf.hashCode());
PhysicalPartition pPartition = pConfig.getPhysicalPartition();
PhysicalPartitionKey pKey = new PhysicalPartitionKey(pPartition);
_bufsMap.put(pKey, buf);
_uniqBufs.add(buf);
buf.setDropOldEvents(_dropOldEvents);
for (LogicalSourceStaticConfig lSrc : pConfig.getSources()) {
updateLogicalSourceMapping(pKey, lSrc.getLogicalSource(), lSrc.getPartition());
}
}
Aggregations