Repository: incubator-slider Updated Branches: refs/heads/develop 1742ab232 -> fe4abc042
SLIDER-1019 AppState to use .* for static imports Project: http://git-wip-us.apache.org/repos/asf/incubator-slider/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-slider/commit/b2b04f9b Tree: http://git-wip-us.apache.org/repos/asf/incubator-slider/tree/b2b04f9b Diff: http://git-wip-us.apache.org/repos/asf/incubator-slider/diff/b2b04f9b Branch: refs/heads/develop Commit: b2b04f9b51656be9a2ca0ad6aa2fff04b820d748 Parents: 1742ab2 Author: Steve Loughran <ste...@apache.org> Authored: Mon Dec 14 13:51:52 2015 +0000 Committer: Steve Loughran <ste...@apache.org> Committed: Mon Dec 14 13:51:52 2015 +0000 ---------------------------------------------------------------------- .../slider/server/appmaster/state/AppState.java | 32 ++------------------ 1 file changed, 3 insertions(+), 29 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-slider/blob/b2b04f9b/slider-core/src/main/java/org/apache/slider/server/appmaster/state/AppState.java ---------------------------------------------------------------------- diff --git a/slider-core/src/main/java/org/apache/slider/server/appmaster/state/AppState.java b/slider-core/src/main/java/org/apache/slider/server/appmaster/state/AppState.java index 4b4d7a7..c8369c1 100644 --- a/slider-core/src/main/java/org/apache/slider/server/appmaster/state/AppState.java +++ b/slider-core/src/main/java/org/apache/slider/server/appmaster/state/AppState.java @@ -87,35 +87,9 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ConcurrentMap; import java.util.concurrent.atomic.AtomicInteger; -import static org.apache.slider.api.ResourceKeys.COMPONENT_INSTANCES; -import static org.apache.slider.api.ResourceKeys.COMPONENT_PLACEMENT_POLICY; -import static org.apache.slider.api.ResourceKeys.COMPONENT_PRIORITY; -import static org.apache.slider.api.ResourceKeys.CONTAINER_FAILURE_THRESHOLD; -import static org.apache.slider.api.ResourceKeys.DEFAULT_CONTAINER_FAILURE_THRESHOLD; -import static org.apache.slider.api.ResourceKeys.DEFAULT_NODE_FAILURE_THRESHOLD; -import static org.apache.slider.api.ResourceKeys.DEFAULT_PLACEMENT_ESCALATE_DELAY_SECONDS; -import static org.apache.slider.api.ResourceKeys.DEF_YARN_CORES; -import static org.apache.slider.api.ResourceKeys.DEF_YARN_LABEL_EXPRESSION; -import static org.apache.slider.api.ResourceKeys.DEF_YARN_MEMORY; -import static org.apache.slider.api.ResourceKeys.NODE_FAILURE_THRESHOLD; -import static org.apache.slider.api.ResourceKeys.PLACEMENT_ESCALATE_DELAY; -import static org.apache.slider.api.ResourceKeys.YARN_CORES; -import static org.apache.slider.api.ResourceKeys.YARN_LABEL_EXPRESSION; -import static org.apache.slider.api.ResourceKeys.YARN_MEMORY; -import static org.apache.slider.api.ResourceKeys.YARN_RESOURCE_MAX; -import static org.apache.slider.api.RoleKeys.ROLE_FAILED_INSTANCES; -import static org.apache.slider.api.RoleKeys.ROLE_FAILED_RECENTLY_INSTANCES; -import static org.apache.slider.api.RoleKeys.ROLE_FAILED_STARTING_INSTANCES; -import static org.apache.slider.api.RoleKeys.ROLE_NODE_FAILED_INSTANCES; -import static org.apache.slider.api.RoleKeys.ROLE_PENDING_AA_INSTANCES; -import static org.apache.slider.api.RoleKeys.ROLE_PREEMPTED_INSTANCES; -import static org.apache.slider.api.RoleKeys.ROLE_RELEASING_INSTANCES; -import static org.apache.slider.api.RoleKeys.ROLE_REQUESTED_INSTANCES; -import static org.apache.slider.api.StateValues.STATE_CREATED; -import static org.apache.slider.api.StateValues.STATE_DESTROYED; -import static org.apache.slider.api.StateValues.STATE_LIVE; -import static org.apache.slider.api.StateValues.STATE_SUBMITTED; - +import static org.apache.slider.api.ResourceKeys.*; +import static org.apache.slider.api.RoleKeys.*; +import static org.apache.slider.api.StateValues.*; /** * The model of all the ongoing state of a Slider AM.