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

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

public class InstallScheduler
extends BaseScheduler

Scheduler to execute the packages' installation scripts.

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

Field Summary
protected static InstallScheduler 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

scheduler

protected static InstallScheduler scheduler
Method Detail

getScheduler

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

Returns:
an install 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.