|
@@ -0,0 +1,37 @@
|
|
|
+package com.fdkankan.job.job;
|
|
|
+
|
|
|
+import com.fdkankan.rubbersheeting.ScalingService;
|
|
|
+import com.xxl.job.core.context.XxlJobHelper;
|
|
|
+import com.xxl.job.core.handler.annotation.XxlJob;
|
|
|
+import lombok.extern.slf4j.Slf4j;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.stereotype.Component;
|
|
|
+
|
|
|
+/**
|
|
|
+ * <p>
|
|
|
+ * v4场景回退v3
|
|
|
+ * </p>
|
|
|
+ *
|
|
|
+ * @author dengsixing
|
|
|
+ * @since 2022/12/16
|
|
|
+ **/
|
|
|
+@Slf4j
|
|
|
+@Component
|
|
|
+public class CreateScalingHandler {
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private ScalingService scalingService;
|
|
|
+
|
|
|
+ @XxlJob("createScalingHandler")
|
|
|
+ public void createScalingHandler(){
|
|
|
+ XxlJobHelper.log("createScalingHandler start.....");
|
|
|
+
|
|
|
+ scalingService.createEcs();
|
|
|
+
|
|
|
+ XxlJobHelper.log("createScalingHandler end.....");
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+}
|