|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.common.vremanagement.deployer.impl.operators.common.BaseScheduler
public abstract class BaseScheduler
Base scheduler implementation
| Field Summary | |
|---|---|
protected org.gcube.common.core.utils.logging.GCUBELog |
logger
|
protected Map<KeyData,Set<File>> |
scripts
|
| Constructor Summary | |
|---|---|
BaseScheduler()
|
|
| Method Summary | |
|---|---|
void |
add(BasePackage target)
Adds the scripts belonging to the given package to the scheduler. |
Object |
clone()
Overrides the Object.clone() method to avoid the Scheduler cloning |
protected abstract 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 |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final org.gcube.common.core.utils.logging.GCUBELog logger
protected Map<KeyData,Set<File>> scripts
| Constructor Detail |
|---|
public BaseScheduler()
| Method Detail |
|---|
public void add(BasePackage target)
throws DeployException
add in interface Schedulertarget - the package
DeployException - if the methods fails when adding the script
public void remove(BasePackage target)
throws DeployException
remove in interface Schedulertarget - the package
DeployException - if the methods fails when removing all the scripts
public void run(KeyData key)
throws DeployException
run in interface Schedulerkey - the package key
DeployException - if one of the scripts failsprotected abstract List<String> getScriptsToSchedule(BasePackage target)
target - the package
public Object clone()
throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedException - always thrown
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||