Cleanup sparky-be pom
[aai/sparky-be.git] / sparkybe-onap-service / src / main / java / org / onap / aai / sparky / viewandinspect / entity / GraphMeta.java
1 /**
2  * ============LICENSE_START=======================================================
3  * org.onap.aai
4  * ================================================================================
5  * Copyright © 2017-2018 AT&T Intellectual Property. All rights reserved.
6  * Copyright © 2017-2018 Amdocs
7  * ================================================================================
8  * Licensed under the Apache License, Version 2.0 (the "License");
9  * you may not use this file except in compliance with the License.
10  * You may obtain a copy of the License at
11  *
12  *       http://www.apache.org/licenses/LICENSE-2.0
13  *
14  * Unless required by applicable law or agreed to in writing, software
15  * distributed under the License is distributed on an "AS IS" BASIS,
16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17  * See the License for the specific language governing permissions and
18  * limitations under the License.
19  * ============LICENSE_END=========================================================
20  */
21 package org.onap.aai.sparky.viewandinspect.entity;
22
23 import org.onap.aai.sparky.viewandinspect.EntityTypeAggregation;
24
25 /**
26  * The Class GraphMeta.
27  */
28 public class GraphMeta {
29
30   private com.fasterxml.jackson.databind.JsonNode aaiEntityNodeDescriptors;
31
32   private int numNodes;
33
34   private int numLinks;
35
36   private long renderTimeInMs;
37   
38   private int numNodeWithProcessingErrors;
39
40   private EntityTypeAggregation entitySummary;
41
42   /**
43    * Instantiates a new graph meta.
44    */
45   public GraphMeta() {
46     entitySummary = new EntityTypeAggregation();
47   }
48
49   public EntityTypeAggregation getEntitySummary() {
50     return entitySummary;
51   }
52
53   public void setEntitySummary(EntityTypeAggregation entitySummary) {
54     this.entitySummary = entitySummary;
55   }
56
57   public com.fasterxml.jackson.databind.JsonNode getAaiEntityNodeDescriptors() {
58     return aaiEntityNodeDescriptors;
59   }
60
61   public void setAaiEntityNodeDescriptors(
62       com.fasterxml.jackson.databind.JsonNode aaiEntityNodeDefinitions) {
63     this.aaiEntityNodeDescriptors = aaiEntityNodeDefinitions;
64   }
65
66   public int getNumNodes() {
67     return numNodes;
68   }
69
70   public void setNumNodes(int numNodes) {
71     this.numNodes = numNodes;
72   }
73
74   public int getNumLinks() {
75     return numLinks;
76   }
77
78   public void setNumLinks(int numLinks) {
79     this.numLinks = numLinks;
80   }
81
82   public long getRenderTimeInMs() {
83     return renderTimeInMs;
84   }
85
86   public void setRenderTimeInMs(long renderTimeInMs) {
87     this.renderTimeInMs = renderTimeInMs;
88   }
89
90   public int getNumNodeWithProcessingErrors() {
91     return numNodeWithProcessingErrors;
92   }
93
94   public void setNumNodeWithProcessingErrors(int numNodeWithProcessingErrors) {
95     this.numNodeWithProcessingErrors = numNodeWithProcessingErrors;
96   }
97
98   /**
99    * Peg counter.
100    *
101    * @param counterName the counter name
102    */
103   public void pegCounter(String counterName) {
104     entitySummary.pegCounter(counterName);
105   }
106
107   @Override
108   public String toString() {
109     return "GraphMeta [aaiEntityNodeDescriptors=" + aaiEntityNodeDescriptors + ", numNodes="
110         + numNodes + ", numLinks=" + numLinks + ", renderTimeInMs=" + renderTimeInMs
111         + ", numNodeWithProcessingErrors=" + numNodeWithProcessingErrors + ", entitySummary="
112         + entitySummary + "]";
113   }
114
115 }