Class Hashed

    • Field Detail

      • SHORT_NAME

        public static final java.lang.String SHORT_NAME
        The short name for the mapper
        See Also:
        Constant Field Values
      • DESCRIPTION

        private static final java.lang.String DESCRIPTION
        Short description.
        See Also:
        Constant Field Values
      • mSiteLFNAddOnMap

        private java.util.Map<java.lang.String,​java.util.Map<java.lang.String,​java.lang.String>> mSiteLFNAddOnMap
        A Map that tracks for each output site, the LFN to the Add on's
      • MAX_CACHE_ENTRIES

        private static final int MAX_CACHE_ENTRIES
        The maximum number of entries in the map, before the output site map is cleared.
        See Also:
        Constant Field Values
      • mNumberOfExistingLFNS

        private int mNumberOfExistingLFNS
    • Constructor Detail

      • Hashed

        public Hashed()
    • Method Detail

      • instantiateFileFactory

        public org.griphyn.vdl.euryale.FileFactory instantiateFileFactory​(PegasusBag bag,
                                                                          ADag workflow)
        Method that instantiates the FileFactory
        Specified by:
        instantiateFileFactory in class AbstractFileFactoryBasedMapper
        Parameters:
        bag - the bag of objects that is useful for initialization.
        workflow - the workflow refined so far.
        Returns:
        the handle to the File Factory to use
      • createAndGetAddOn

        public java.lang.String createAndGetAddOn​(java.lang.String lfn,
                                                  java.lang.String site,
                                                  boolean existing)
        Returns the addOn part that is retrieved from the File Factory. It creates a new file in the factory for the LFN and returns it.
        Specified by:
        createAndGetAddOn in class AbstractFileFactoryBasedMapper
        Parameters:
        lfn - the LFN to be used
        site - the site at which the LFN resides
        existing - indicates whether to create a new location/placement for a file, or rely on existing placement on the site.
        Returns:
      • trackLFNAddOn

        private void trackLFNAddOn​(java.lang.String site,
                                   java.lang.String lfn,
                                   java.lang.String addOn)
        Tracks the lfn with addOn's on the various sites.
        Parameters:
        site -
        lfn -
        addOn -
      • description

        public java.lang.String description()
        Returns a short description of the mapper.
        Returns:
      • resetLFNAddOnCache

        private void resetLFNAddOnCache()
        Resets the internal cache.