File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed
server/src/main/java/org/apache/cloudstack/vm/schedule Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change 3434import org .apache .cloudstack .api .command .user .vm .RebootVMCmd ;
3535import org .apache .cloudstack .api .command .user .vm .StartVMCmd ;
3636import org .apache .cloudstack .api .command .user .vm .StopVMCmd ;
37+ import org .apache .cloudstack .framework .config .ConfigKey ;
38+ import org .apache .cloudstack .framework .config .Configurable ;
3739import org .apache .cloudstack .framework .jobs .AsyncJobDispatcher ;
3840import org .apache .cloudstack .framework .jobs .AsyncJobManager ;
3941import org .apache .cloudstack .framework .jobs .impl .AsyncJobVO ;
5860import java .util .Timer ;
5961import java .util .TimerTask ;
6062
61- public class VMSchedulerImpl extends ManagerBase implements VMScheduler {
63+ public class VMSchedulerImpl extends ManagerBase implements VMScheduler , Configurable {
6264 private static Logger LOGGER = Logger .getLogger (VMSchedulerImpl .class );
6365 @ Inject
6466 private VMScheduledJobDao vmScheduledJobDao ;
@@ -82,6 +84,16 @@ public void setAsyncJobDispatcher(final AsyncJobDispatcher dispatcher) {
8284 asyncJobDispatcher = dispatcher ;
8385 }
8486
87+ @ Override
88+ public ConfigKey <?>[] getConfigKeys () {
89+ return new ConfigKey <?>[]{VMScheduledJobExpireInterval };
90+ }
91+
92+ @ Override
93+ public String getConfigComponentName () {
94+ return VMScheduler .class .getSimpleName ();
95+ }
96+
8597 @ Override
8698 public void removeScheduledJobs (List <Long > vmScheduleIds ) {
8799 if (vmScheduleIds == null || vmScheduleIds .isEmpty ()) {
You can’t perform that action at this time.
0 commit comments