use of com.linkedin.databus.client.pub.DbusModPartitionedFilterFactory in project databus by linkedin.
the class MockRemoteExceptionHandler method createFakeFilter.
private static DbusKeyCompositeFilterConfig createFakeFilter() throws DatabusException {
DbusModPartitionedFilterFactory filterFactory = new DbusModPartitionedFilterFactory("source1");
DbusClusterInfo cluster = new DbusClusterInfo("cluster", 2, 2);
DbusPartitionInfo partition = new DbusPartitionInfo() {
@Override
public long getPartitionId() {
return 1;
}
@Override
public boolean equalsPartition(DbusPartitionInfo other) {
return true;
}
};
return filterFactory.createServerSideFilter(cluster, partition);
}
Aggregations