|
|
@ -30,13 +30,15 @@ public class CreateEscheduler { |
|
|
|
|
|
|
|
|
|
|
|
public static void main(String[] args) { |
|
|
|
public static void main(String[] args) { |
|
|
|
EschedulerManager eschedulerManager = new EschedulerManager(); |
|
|
|
EschedulerManager eschedulerManager = new EschedulerManager(); |
|
|
|
eschedulerManager.initEscheduler(); |
|
|
|
|
|
|
|
logger.info("init escheduler finished"); |
|
|
|
|
|
|
|
try { |
|
|
|
try { |
|
|
|
|
|
|
|
eschedulerManager.initEscheduler(); |
|
|
|
|
|
|
|
logger.info("init escheduler finished"); |
|
|
|
eschedulerManager.upgradeEscheduler(); |
|
|
|
eschedulerManager.upgradeEscheduler(); |
|
|
|
logger.info("upgrade escheduler finished"); |
|
|
|
logger.info("upgrade escheduler finished"); |
|
|
|
|
|
|
|
logger.info("create escheduler success"); |
|
|
|
} catch (Exception e) { |
|
|
|
} catch (Exception e) { |
|
|
|
logger.error("upgrade escheduler failed",e); |
|
|
|
logger.error("create escheduler failed",e); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|