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

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

/**
 * Copyright 2016 vip.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 java.util.ArrayList; import java.util.List; /** * @author hebelala */ public class Timeout4AlarmJob extends AbstractAlarmJob { private int timeout4AlarmSeconds; private List timeoutItems = new ArrayList<>(); public Timeout4AlarmJob() { } public Timeout4AlarmJob(String jobName, String domainName, String nns, String degree) { super(jobName, domainName, nns, degree); } public int getTimeout4AlarmSeconds() { return timeout4AlarmSeconds; } public void setTimeout4AlarmSeconds(int timeout4AlarmSeconds) { this.timeout4AlarmSeconds = timeout4AlarmSeconds; } public List getTimeoutItems() { return timeoutItems; } public void setTimeoutItems(List timeoutItems) { this.timeoutItems = timeoutItems; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } Timeout4AlarmJob that = (Timeout4AlarmJob) o; if (!jobName.equals(that.jobName)) { return false; } return domainName.equals(that.domainName); } @Override public int hashCode() { int result = jobName.hashCode(); result = 31 * result + domainName.hashCode(); return result; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy