org.gcube.portlets.admin.resourcesweeper.server
Class Sweeper
java.lang.Object
org.gcube.portlets.admin.resourcesweeper.server.Sweeper
public class Sweeper
- extends Object
- Author:
- Massimiliano Assante (ISTI-CNR)
Method Summary |
protected ArrayList<String> |
applyQuery(org.gcube.common.core.scope.GCUBEScope queryScope,
org.gcube.resourcemanagement.support.server.gcube.queries.QueryLocation queryPath,
org.gcube.common.core.informationsystem.client.QueryParameter... params)
|
void |
applySweep(org.gcube.common.core.scope.GCUBEScope queryScope,
List<com.extjs.gxt.ui.client.data.ModelData> elems)
|
ArrayList<String> |
getDeadGHNs(org.gcube.common.core.scope.GCUBEScope queryScope)
|
ArrayList<String> |
getExpiredGHNs(org.gcube.common.core.scope.GCUBEScope 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 |
ArrayList<String> |
getOrphanRI(org.gcube.common.core.scope.GCUBEScope queryScope)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LIVE_GHN_MAX_MINUTES
public static String LIVE_GHN_MAX_MINUTES
Sweeper
public Sweeper()
applyQuery
protected ArrayList<String> applyQuery(org.gcube.common.core.scope.GCUBEScope queryScope,
org.gcube.resourcemanagement.support.server.gcube.queries.QueryLocation queryPath,
org.gcube.common.core.informationsystem.client.QueryParameter... params)
throws Exception
- Throws:
Exception
getExpiredGHNs
public ArrayList<String> getExpiredGHNs(org.gcube.common.core.scope.GCUBEScope 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:
getDeadGHNs
public ArrayList<String> getDeadGHNs(org.gcube.common.core.scope.GCUBEScope queryScope)
getOrphanRI
public ArrayList<String> getOrphanRI(org.gcube.common.core.scope.GCUBEScope queryScope)
applySweep
public void applySweep(org.gcube.common.core.scope.GCUBEScope queryScope,
List<com.extjs.gxt.ui.client.data.ModelData> elems)
Copyright © 2013. All Rights Reserved.