org.gcube.common.vremanagement.deployer.impl.operators.common
Interface Scheduler

All Known Implementing Classes:
BaseScheduler, InstallScheduler, RebootScheduler, UninstallScheduler

public interface Scheduler

Generic interface for a Deployment Scheduler. A Deployment Scheduler is a generic manager for scripts of the same type defined in a Package description included in the service profile.

Author:
Manuele Simi

Method Summary
 void add(BasePackage target)
          Adds the scripts belonging to the given package to the scheduler.
 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
 

Method Detail

add

void add(BasePackage target)
         throws DeployException
Adds the scripts belonging to the given package to the scheduler.

Parameters:
target - the package
Throws:
DeployException - if the methods fails when adding the script

remove

void remove(BasePackage target)
            throws DeployException
Removes all the scripts of the given package from the scheduler

Parameters:
target - the package
Throws:
DeployException - if the methods fails when removing all the scripts

run

void run(KeyData key)
         throws DeployException
Executes all the scripts stored in the Scheduler for the given package

Parameters:
key - the package key
Throws:
DeployException - if one of the scripts fails


Copyright © 2013. All Rights Reserved.