Class Sweeper
- java.lang.Object
-
- org.gcube.resourcemanagement.support.server.sweeper.Sweeper
-
public class Sweeper extends Object
- Author:
- Massimiliano Assante (ISTI-CNR)
-
-
Field Summary
Fields Modifier and Type Field Description static StringLIVE_GHN_MAX_MINUTES
-
Constructor Summary
Constructors Constructor Description Sweeper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ArrayList<String>applyQuery(org.gcube.common.scope.impl.ScopeBean queryScope, QueryLocation queryPath, QueryLocation returnPath, QueryParameter... params)BooleanapplySweep(org.gcube.common.scope.impl.ScopeBean queryScope, List<com.extjs.gxt.ui.client.data.ModelData> elems)ArrayList<String>getDeadGHNs(org.gcube.common.scope.impl.ScopeBean queryScope)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 fileArrayList<String>getOrphanRI(org.gcube.common.scope.impl.ScopeBean queryScope)
-
-
-
Field Detail
-
LIVE_GHN_MAX_MINUTES
public static String LIVE_GHN_MAX_MINUTES
-
-
Method Detail
-
applyQuery
protected ArrayList<String> applyQuery(org.gcube.common.scope.impl.ScopeBean queryScope, QueryLocation queryPath, QueryLocation returnPath, QueryParameter... params) throws Exception
- Throws:
Exception
-
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
-
-