🎨 code format

This commit is contained in:
有猫饼 2022-05-26 03:39:50 +00:00 committed by GitHub
parent 9a87f89c4e
commit 286f4da24a
2 changed files with 13 additions and 22 deletions

View File

@ -8,22 +8,16 @@ import com.xxl.job.admin.core.util.I18nUtil;
*/
public enum ExecutorRouteStrategyEnum {
FIRST(I18nUtil.getString("jobconf_route_first"), new ExecutorRouteFirst()), LAST(
I18nUtil.getString("jobconf_route_last"), new ExecutorRouteLast()), ROUND(
I18nUtil.getString("jobconf_route_round"), new ExecutorRouteRound()), RANDOM(
I18nUtil.getString("jobconf_route_random"), new ExecutorRouteRandom()), CONSISTENT_HASH(
I18nUtil.getString("jobconf_route_consistenthash"),
new ExecutorRouteConsistentHash()), LEAST_FREQUENTLY_USED(
I18nUtil.getString("jobconf_route_lfu"),
new ExecutorRouteLFU()), LEAST_RECENTLY_USED(
I18nUtil.getString("jobconf_route_lru"),
new ExecutorRouteLRU()), FAILOVER(
I18nUtil.getString("jobconf_route_failover"),
new ExecutorRouteFailover()), BUSYOVER(
I18nUtil.getString("jobconf_route_busyover"),
new ExecutorRouteBusyover()), SHARDING_BROADCAST(
I18nUtil.getString("jobconf_route_shard"),
null);
FIRST(I18nUtil.getString("jobconf_route_first"), new ExecutorRouteFirst()),
LAST(I18nUtil.getString("jobconf_route_last"), new ExecutorRouteLast()),
ROUND(I18nUtil.getString("jobconf_route_round"), new ExecutorRouteRound()),
RANDOM(I18nUtil.getString("jobconf_route_random"), new ExecutorRouteRandom()),
CONSISTENT_HASH(I18nUtil.getString("jobconf_route_consistenthash"), new ExecutorRouteConsistentHash()),
LEAST_FREQUENTLY_USED(I18nUtil.getString("jobconf_route_lfu"), new ExecutorRouteLFU()),
LEAST_RECENTLY_USED(I18nUtil.getString("jobconf_route_lru"), new ExecutorRouteLRU()),
FAILOVER(I18nUtil.getString("jobconf_route_failover"), new ExecutorRouteFailover()),
BUSYOVER(I18nUtil.getString("jobconf_route_busyover"), new ExecutorRouteBusyover()),
SHARDING_BROADCAST(I18nUtil.getString("jobconf_route_shard"), null);
ExecutorRouteStrategyEnum(String title, ExecutorRouter router) {
this.title = title;

View File

@ -9,12 +9,9 @@ import com.xxl.job.admin.core.util.I18nUtil;
*/
public enum TriggerTypeEnum {
MANUAL(I18nUtil.getString("jobconf_trigger_type_manual")), CRON(
I18nUtil.getString("jobconf_trigger_type_cron")), RETRY(
I18nUtil.getString("jobconf_trigger_type_retry")), PARENT(
I18nUtil.getString("jobconf_trigger_type_parent")), API(
I18nUtil.getString("jobconf_trigger_type_api")), MISFIRE(
I18nUtil.getString("jobconf_trigger_type_misfire"));
MANUAL(I18nUtil.getString("jobconf_trigger_type_manual")), CRON(I18nUtil.getString("jobconf_trigger_type_cron")),
RETRY(I18nUtil.getString("jobconf_trigger_type_retry")), PARENT(I18nUtil.getString("jobconf_trigger_type_parent")),
API(I18nUtil.getString("jobconf_trigger_type_api")), MISFIRE(I18nUtil.getString("jobconf_trigger_type_misfire"));
private TriggerTypeEnum(String title) {
this.title = title;