All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.vip.saturn.job.console.domain.ServerRunningInfo Maven / Gradle / Ivy

/**
 * Copyright 1999-2015 dangdang.com.
 * 

* Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. *

*/ package com.vip.saturn.job.console.domain; import com.google.common.collect.Lists; import com.google.common.collect.Maps; import java.util.ArrayList; import java.util.List; import java.util.Map; /** * 记录指定executor上的所有正在运行/潜在运行的分片信息 */ public class ServerRunningInfo { private String executorName; /** * 包括正常运行中,停止中,failover中的作业分片信息; * key为作业名,value为分片信息, 多个分片用逗号分隔 */ private Map runningJobItems = Maps.newHashMap(); /** * 包括不上报作业状态的作业分片信息(如秒级作业) * key为作业名,value为分片信息, 多个分片用逗号分隔 */ private Map potentialRunningJobItems = Maps.newHashMap(); public ServerRunningInfo(String executorName) { this.executorName = executorName; } public String getExecutorName() { return executorName; } public void setExecutorName(String executorName) { this.executorName = executorName; } public Map getRunningJobItems() { return runningJobItems; } public void setRunningJobItems(Map runningJobItems) { this.runningJobItems = runningJobItems; } public Map getPotentialRunningJobItems() { return potentialRunningJobItems; } public void setPotentialRunningJobItems(Map potentialRunningJobItems) { this.potentialRunningJobItems = potentialRunningJobItems; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy