|
|
@ -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(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
try { |
|
|
|
eschedulerManager.initEscheduler(); |
|
|
|
eschedulerManager.initEscheduler(); |
|
|
|
logger.info("init escheduler finished"); |
|
|
|
logger.info("init escheduler finished"); |
|
|
|
try { |
|
|
|
|
|
|
|
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); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|