msb protocol synch change
[msb/apigateway.git] / msb-core / apiroute / apiroute-service / src / main / java / org / openo / msb / api / NodeInfo.java
1 /**
2  * Copyright 2016 ZTE Corporation.
3  *
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
7  *
8  *     http://www.apache.org/licenses/LICENSE-2.0
9  *
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.
15  */
16 package org.openo.msb.api;
17
18 import java.util.Date;
19
20 import com.fasterxml.jackson.annotation.JsonInclude;
21 import com.fasterxml.jackson.annotation.JsonInclude.Include;
22 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
23
24 public class NodeInfo extends Node {
25
26     private static final long serialVersionUID = 8955786461351557306L;
27     
28     private String nodeId;
29     
30   
31
32     @JsonSerialize(using = CustomDateSerializer.class)
33     private Date expiration;
34     
35     @JsonSerialize(using = CustomDateSerializer.class)
36     private Date created_at;
37     
38     @JsonSerialize(using = CustomDateSerializer.class)
39     private Date updated_at;
40
41     public Date getExpiration() {
42         return expiration;
43     }
44
45     public void setExpiration(Date expiration) {
46         this.expiration = expiration;
47     }
48
49     public Date getCreated_at() {
50         return created_at;
51     }
52
53     public void setCreated_at(Date created_at) {
54         this.created_at = created_at;
55     }
56
57     public Date getUpdated_at() {
58         return updated_at;
59     }
60
61     public void setUpdated_at(Date updated_at) {
62         this.updated_at = updated_at;
63     }
64
65     public String getNodeId() {
66         return nodeId;
67     }
68
69     public void setNodeId(String nodeId) {
70         this.nodeId = nodeId;
71     }
72   
73     
74 }