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 numLinksResolvedSuccessfullyFromCache;
40 private int numLinksResolvedSuccessfullyFromServer;
42 private int numLinkResolveFailed;
44 private EntityTypeAggregation entitySummary;
47 * Instantiates a new graph meta.
50 entitySummary = new EntityTypeAggregation();
53 public EntityTypeAggregation getEntitySummary() {
57 public void setEntitySummary(EntityTypeAggregation entitySummary) {
58 this.entitySummary = entitySummary;
61 public com.fasterxml.jackson.databind.JsonNode getAaiEntityNodeDescriptors() {
62 return aaiEntityNodeDescriptors;
65 public void setAaiEntityNodeDescriptors(
66 com.fasterxml.jackson.databind.JsonNode aaiEntityNodeDefinitions) {
67 this.aaiEntityNodeDescriptors = aaiEntityNodeDefinitions;
70 public int getNumLinksResolvedSuccessfullyFromCache() {
71 return numLinksResolvedSuccessfullyFromCache;
74 public void setNumLinksResolvedSuccessfullyFromCache(int numLinksResolvedSuccessfullyFromCache) {
75 this.numLinksResolvedSuccessfullyFromCache = numLinksResolvedSuccessfullyFromCache;
78 public int getNumLinksResolvedSuccessfullyFromServer() {
79 return numLinksResolvedSuccessfullyFromServer;
82 public void setNumLinksResolvedSuccessfullyFromServer(
83 int numLinksResolvedSuccessfullyFromServer) {
84 this.numLinksResolvedSuccessfullyFromServer = numLinksResolvedSuccessfullyFromServer;
87 public int getNumLinkResolveFailed() {
88 return numLinkResolveFailed;
91 public void setNumLinkResolveFailed(int numLinkResolveFailed) {
92 this.numLinkResolveFailed = numLinkResolveFailed;
95 public int getNumNodes() {
99 public void setNumNodes(int numNodes) {
100 this.numNodes = numNodes;
103 public int getNumLinks() {
107 public void setNumLinks(int numLinks) {
108 this.numLinks = numLinks;
111 public long getRenderTimeInMs() {
112 return renderTimeInMs;
115 public void setRenderTimeInMs(long renderTimeInMs) {
116 this.renderTimeInMs = renderTimeInMs;
122 * @param counterName the counter name
124 public void pegCounter(String counterName) {
125 entitySummary.pegCounter(counterName);
129 * @see java.lang.Object#toString()
132 public String toString() {
134 + (aaiEntityNodeDescriptors != null
135 ? "aaiEntityNodeDescriptors=" + aaiEntityNodeDescriptors + ", " : "")
136 + "numNodes=" + numNodes + ", numLinks=" + numLinks + ", renderTimeInMs=" + renderTimeInMs
137 + ", numLinksResolvedSuccessfullyFromCache=" + numLinksResolvedSuccessfullyFromCache
138 + ", numLinksResolvedSuccessfullyFromServer=" + numLinksResolvedSuccessfullyFromServer
139 + ", numLinkResolveFailed=" + numLinkResolveFailed + ", "
140 + (entitySummary != null ? "entitySummary=" + entitySummary : "") + "]";