public class RebootScheduler extends BaseScheduler
ServiceContext.getContext().getFile("reboot_scripts")
It is expected that the gcore-start-container-* scripts take care of this list by executing them before to start the gContainer itself.Schedulerlogger, scripts| Constructor and Description |
|---|
RebootScheduler() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(BasePackage target)
Adds the scripts belonging to the given package to the scheduler.
|
static Scheduler |
getScheduler()
Creates and returns a valid scheduler
|
protected List<String> |
getScriptsToSchedule(BasePackage target)
Extracts the scripts to schedule from the given package
|
void |
remove(BasePackage target)
Removes all the scripts of the given package from the scheduler
|
void |
run(KeyData key)
Executes all the scripts stored in the Scheduler for the given package
|
clonepublic static Scheduler getScheduler() throws DeployException
DeployException - if the scheduler initialization failspublic void add(BasePackage target) throws DeployException
add in interface Scheduleradd in class BaseSchedulertarget - the packageDeployException - if the methods fails when adding the scriptpublic void remove(BasePackage target) throws DeployException
remove in interface Schedulerremove in class BaseSchedulertarget - the packageDeployException - if the methods fails when removing all the scriptspublic void run(KeyData key) throws DeployException
run in interface Schedulerrun in class BaseSchedulerkey - the package keyDeployException - if one of the scripts failsprotected List<String> getScriptsToSchedule(BasePackage target)
getScriptsToSchedule in class BaseSchedulertarget - the packageCopyright © 2015. All Rights Reserved.