Class Sweeper


  • public class Sweeper
    extends Object
    Author:
    Massimiliano Assante (ISTI-CNR)
    • Field Detail

      • LIVE_GHN_MAX_MINUTES

        public static String LIVE_GHN_MAX_MINUTES
    • Constructor Detail

      • Sweeper

        public Sweeper()
    • Method Detail

      • getExpiredGHNs

        public ArrayList<String> getExpiredGHNs​(org.gcube.common.scope.impl.ScopeBean queryScope)
        this method used to read the MAXWAIT param from the resourcemanagement.properties files, currently it reads it from the static var defined on top of this class TODO: Make it configurable again from a property file
        Parameters:
        queryScope -
        Returns:
        the expired ghn list
      • getDeadGHNs

        public ArrayList<String> getDeadGHNs​(org.gcube.common.scope.impl.ScopeBean queryScope)
      • getOrphanRI

        public ArrayList<String> getOrphanRI​(org.gcube.common.scope.impl.ScopeBean queryScope)
      • applySweep

        public Boolean applySweep​(org.gcube.common.scope.impl.ScopeBean queryScope,
                                  List<com.extjs.gxt.ui.client.data.ModelData> elems)