Search in sources :

Example 1 with SpInitiator

use of org.voltdb.iv2.SpInitiator in project voltdb by VoltDB.

the class RealVoltDB method createIv2Initiators.

private TreeMap<Integer, Initiator> createIv2Initiators(Collection<Integer> partitions, StartAction startAction, List<Integer> m_partitionsToSitesAtStartupForExportInit) {
    TreeMap<Integer, Initiator> initiators = new TreeMap<>();
    for (Integer partition : partitions) {
        Initiator initiator = new SpInitiator(m_messenger, partition, getStatsAgent(), m_snapshotCompletionMonitor, startAction);
        initiators.put(partition, initiator);
        m_partitionsToSitesAtStartupForExportInit.add(partition);
    }
    return initiators;
}
Also used : SpInitiator(org.voltdb.iv2.SpInitiator) MpInitiator(org.voltdb.iv2.MpInitiator) SpInitiator(org.voltdb.iv2.SpInitiator) Initiator(org.voltdb.iv2.Initiator) BaseInitiator(org.voltdb.iv2.BaseInitiator) TreeMap(java.util.TreeMap)

Aggregations

TreeMap (java.util.TreeMap)1 BaseInitiator (org.voltdb.iv2.BaseInitiator)1 Initiator (org.voltdb.iv2.Initiator)1 MpInitiator (org.voltdb.iv2.MpInitiator)1 SpInitiator (org.voltdb.iv2.SpInitiator)1