2 * Copyright 2016 2015-2016 ZTE, Inc. and others. All rights reserved.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
16 package org.openo.msb.api;
18 import java.util.Date;
20 import com.fasterxml.jackson.annotation.JsonInclude;
21 import com.fasterxml.jackson.annotation.JsonInclude.Include;
22 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
24 public class NodeInfo extends Node {
26 private static final long serialVersionUID = 8955786461351557306L;
28 private String nodeId;
32 @JsonSerialize(using = CustomDateSerializer.class)
33 private Date expiration;
35 @JsonSerialize(using = CustomDateSerializer.class)
36 private Date created_at;
38 @JsonSerialize(using = CustomDateSerializer.class)
39 private Date updated_at;
41 public Date getExpiration() {
45 public void setExpiration(Date expiration) {
46 this.expiration = expiration;
49 public Date getCreated_at() {
53 public void setCreated_at(Date created_at) {
54 this.created_at = created_at;
57 public Date getUpdated_at() {
61 public void setUpdated_at(Date updated_at) {
62 this.updated_at = updated_at;
65 public String getNodeId() {
69 public void setNodeId(String nodeId) {