org.gcube.common.vremanagement.deployer.impl.operators.common
Class UninstallScheduler

java.lang.Object
  extended by org.gcube.common.vremanagement.deployer.impl.operators.common.BaseScheduler
      extended by org.gcube.common.vremanagement.deployer.impl.operators.common.UninstallScheduler
All Implemented Interfaces:
Scheduler

public class UninstallScheduler
extends BaseScheduler

Scheduler to execute the packages' uninstallation scripts.

Author:
Manuele Simi (ISTI-CNR)
See Also:
Scheduler

Field Summary
protected static UninstallScheduler ref
          the singleton instance of the scheduler
 
Fields inherited from class org.gcube.common.vremanagement.deployer.impl.operators.common.BaseScheduler
logger, scripts
 
Method Summary
static Scheduler getScheduler()
          Creates and returns a valid scheduler
protected  List<String> getScriptsToSchedule(BasePackage target)
          Extracts the scripts to schedule from the given package
 
Methods inherited from class org.gcube.common.vremanagement.deployer.impl.operators.common.BaseScheduler
add, clone, remove, run
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ref

protected static UninstallScheduler ref
the singleton instance of the scheduler

Method Detail

getScheduler

public static Scheduler getScheduler()
                              throws DeployException
Creates and returns a valid scheduler

Returns:
an uninstall scheduler instance
Throws:
DeployException - if the scheduler initialization fails

getScriptsToSchedule

protected List<String> getScriptsToSchedule(BasePackage target)
Extracts the scripts to schedule from the given package

Specified by:
getScriptsToSchedule in class BaseScheduler
Parameters:
target - the package
Returns:
the scripts to schedule


Copyright © 2013. All Rights Reserved.