mirror of
https://gitee.com/log4j/pig.git
synced 2024-12-22 20:54:25 +08:00
🎨 code format
This commit is contained in:
parent
9a87f89c4e
commit
286f4da24a
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user