1 /*******************************************************************************
2 * Copyright 2017 ZTE, Inc. and others.
4 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
5 * in compliance with the License. You may obtain a copy of the License at
7 * http://www.apache.org/licenses/LICENSE-2.0
9 * Unless required by applicable law or agreed to in writing, software distributed under the License
10 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
11 * or implied. See the License for the specific language governing permissions and limitations under
13 ******************************************************************************/
14 package org.onap.msb.sdk.discovery.entity;
16 import java.util.Date;
18 import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
19 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
21 @JsonIgnoreProperties(ignoreUnknown = true)
22 public class NodeInfo extends Node {
24 private static final long serialVersionUID = 8955786461351557306L;
26 private String nodeId;
28 private String status;
30 @JsonSerialize(using = CustomDateSerializer.class)
31 private Date expiration;
33 @JsonSerialize(using = CustomDateSerializer.class)
34 private Date created_at;
36 @JsonSerialize(using = CustomDateSerializer.class)
37 private Date updated_at;
39 public Date getExpiration() {
43 public void setExpiration(Date expiration) {
44 this.expiration = expiration;
47 public Date getCreated_at() {
51 public void setCreated_at(Date created_at) {
52 this.created_at = created_at;
55 public Date getUpdated_at() {
59 public void setUpdated_at(Date updated_at) {
60 this.updated_at = updated_at;
63 public String getNodeId() {
67 public void setNodeId(String nodeId) {
71 public String getStatus() {
75 public void setStatus(String status) {