@Override
        public void participateAndBlockStateTransition(List<AmbryStatsReport> ambryStatsReports, AccountStatsStore accountStatsStore,
            Callback<AggregatedAccountStorageStats> callback) {
          DataNodeId currentNode =
              getClusterMap().getDataNodeId(clusterMapConfig.clusterMapHostName, clusterMapConfig.clusterMapPort);
          Set<String> partitionsOnNode = getClusterMap().getReplicaIds(currentNode)
              .stream()
              .map(r -> r.getPartitionId().toPathString())
              .collect(Collectors.toSet());
          for (PartitionStateChangeListener listener : listeners.values()) {
            for (String partitionName : partitionsOnNode) {
              listener.onPartitionBecomeLeaderFromStandby(partitionName);
            }
          }
        }
Instantiate an instance of this factory.
@param partitionLayout the {@link PartitionLayout} to use.
ambry-clustermap/src/main/java/com/github/ambry/clustermap/StaticClusterAgentsFactory.java