Class ArchiverHelper


  • @Deprecated
    public class ArchiverHelper
    extends Object
    Deprecated.
    this API is intended for internal purposes only and will be removed in a future version of Coherence
    Various helper methods for the archiver functionality.
    Since:
    12.2.1
    Author:
    tam 2014.03.18
    • Constructor Detail

      • ArchiverHelper

        public ArchiverHelper()
        Deprecated.
    • Method Detail

      • allocateSnapshotPartitions

        public static void allocateSnapshotPartitions​(Map<Integer,​Object[]> mapStores,
                                                      int cPartitions)
        Deprecated.
        Given a Map of member Id's and the stores each member can see for a given snapshot, allocate the stores evenly as so to allow the archival process to run in parallel across the greatest number of members. Each member may see the same stores, as they may be on shared disk or on the same machine.
        Parameters:
        mapStores - a Map of members and Object arrays that need sorting and allocating
        cPartitions - the number of partitions
      • getMembersOwningPartition

        public static Set<Integer> getMembersOwningPartition​(Map<Integer,​Object[]> mapStores,
                                                             String sStore)
        Deprecated.
        Return the Set of members who are aware of a particular store.
        Parameters:
        mapStores - the Map of discovered partitions for members
        sStore - the store we are interested in
        Returns:
        the Set of members who are aware of a particular store