2 * ============LICENSE_START=======================================================
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
12 * http://www.apache.org/licenses/LICENSE-2.0
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=========================================================
21 package org.onap.aai.sparky.viewandinspect.entity;
23 import org.onap.aai.sparky.viewandinspect.EntityTypeAggregation;
26 * The Class GraphMeta.
28 public class GraphMeta {
30 private com.fasterxml.jackson.databind.JsonNode aaiEntityNodeDescriptors;
36 private long renderTimeInMs;
38 private int numNodeWithProcessingErrors;
40 private EntityTypeAggregation entitySummary;
43 * Instantiates a new graph meta.
46 entitySummary = new EntityTypeAggregation();
49 public EntityTypeAggregation getEntitySummary() {
53 public void setEntitySummary(EntityTypeAggregation entitySummary) {
54 this.entitySummary = entitySummary;
57 public com.fasterxml.jackson.databind.JsonNode getAaiEntityNodeDescriptors() {
58 return aaiEntityNodeDescriptors;
61 public void setAaiEntityNodeDescriptors(
62 com.fasterxml.jackson.databind.JsonNode aaiEntityNodeDefinitions) {
63 this.aaiEntityNodeDescriptors = aaiEntityNodeDefinitions;
66 public int getNumNodes() {
70 public void setNumNodes(int numNodes) {
71 this.numNodes = numNodes;
74 public int getNumLinks() {
78 public void setNumLinks(int numLinks) {
79 this.numLinks = numLinks;
82 public long getRenderTimeInMs() {
83 return renderTimeInMs;
86 public void setRenderTimeInMs(long renderTimeInMs) {
87 this.renderTimeInMs = renderTimeInMs;
90 public int getNumNodeWithProcessingErrors() {
91 return numNodeWithProcessingErrors;
94 public void setNumNodeWithProcessingErrors(int numNodeWithProcessingErrors) {
95 this.numNodeWithProcessingErrors = numNodeWithProcessingErrors;
101 * @param counterName the counter name
103 public void pegCounter(String counterName) {
104 entitySummary.pegCounter(counterName);
108 public String toString() {
109 return "GraphMeta [aaiEntityNodeDescriptors=" + aaiEntityNodeDescriptors + ", numNodes="
110 + numNodes + ", numLinks=" + numLinks + ", renderTimeInMs=" + renderTimeInMs
111 + ", numNodeWithProcessingErrors=" + numNodeWithProcessingErrors + ", entitySummary="
112 + entitySummary + "]";