/** * Copyright 2014 Lockheed Martin Corporation * * 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 streamflow.model; import java.io.Serializable; public class TopologyLogEntry implements Serializable { private String timestamp; private String level; private String host; private String task; private String component; private String category; private String text; public TopologyLogEntry() { } public String getTimestamp() { return timestamp; } public void setTimestamp(String timestamp) { this.timestamp = timestamp; } public String getLevel() { return level; } public void setLevel(String level) { this.level = level; } public String getHost() { return host; } public void setHost(String host) { this.host = host; } public String getTask() { return task; } public void setTask(String task) { this.task = task; } public String getComponent() { return component; } public void setComponent(String component) { this.component = component; } public String getCategory() { return category; } public void setCategory(String category) { this.category = category; } public String getText() { return text; } public void setText(String text) { this.text = text; } @Override public int hashCode() { int hash = 3; hash = 97 * hash + (this.timestamp != null ? this.timestamp.hashCode() : 0); hash = 97 * hash + (this.level != null ? this.level.hashCode() : 0); hash = 97 * hash + (this.host != null ? this.host.hashCode() : 0); hash = 97 * hash + (this.task != null ? this.task.hashCode() : 0); hash = 97 * hash + (this.component != null ? this.component.hashCode() : 0); hash = 97 * hash + (this.category != null ? this.category.hashCode() : 0); hash = 97 * hash + (this.text != null ? this.text.hashCode() : 0); return hash; } @Override public boolean equals(Object obj) { if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } final TopologyLogEntry other = (TopologyLogEntry) obj; if ((this.timestamp == null) ? (other.timestamp != null) : !this.timestamp.equals(other.timestamp)) { return false; } if ((this.level == null) ? (other.level != null) : !this.level.equals(other.level)) { return false; } if ((this.host == null) ? (other.host != null) : !this.host.equals(other.host)) { return false; } if ((this.task == null) ? (other.task != null) : !this.task.equals(other.task)) { return false; } if ((this.component == null) ? (other.component != null) : !this.component.equals(other.component)) { return false; } if ((this.category == null) ? (other.category != null) : !this.category.equals(other.category)) { return false; } if ((this.text == null) ? (other.text != null) : !this.text.equals(other.text)) { return false; } return true; } @Override public String toString() { return "TopologyLogEntry{" + "timestamp=" + timestamp + ", level=" + level + ", host=" + host + ", task=" + task + ", component=" + component + ", category=" + category + ", text=" + text + '}'; } }