2 * ============LICENSE_START===================================================
3 * SPARKY (AAI UI service)
4 * ============================================================================
5 * Copyright © 2017 AT&T Intellectual Property.
6 * Copyright © 2017 Amdocs
8 * ============================================================================
9 * Licensed under the Apache License, Version 2.0 (the "License");
10 * you may not use this file except in compliance with the License.
11 * You may obtain a copy of the License at
13 * http://www.apache.org/licenses/LICENSE-2.0
15 * Unless required by applicable law or agreed to in writing, software
16 * distributed under the License is distributed on an "AS IS" BASIS,
17 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 * See the License for the specific language governing permissions and
19 * limitations under the License.
20 * ============LICENSE_END=====================================================
22 * ECOMP and OpenECOMP are trademarks
23 * and service marks of AT&T Intellectual Property.
26 package org.openecomp.sparky.viewandinspect.entity;
28 import org.openecomp.sparky.viewandinspect.EntityTypeAggregation;
31 * The Class GraphMeta.
33 public class GraphMeta {
35 private com.fasterxml.jackson.databind.JsonNode aaiEntityNodeDescriptors;
41 private long renderTimeInMs;
43 private int numLinksResolvedSuccessfullyFromCache;
45 private int numLinksResolvedSuccessfullyFromServer;
47 private int numLinkResolveFailed;
49 private EntityTypeAggregation entitySummary;
52 * Instantiates a new graph meta.
55 entitySummary = new EntityTypeAggregation();
58 public EntityTypeAggregation getEntitySummary() {
62 public void setEntitySummary(EntityTypeAggregation entitySummary) {
63 this.entitySummary = entitySummary;
66 public com.fasterxml.jackson.databind.JsonNode getAaiEntityNodeDescriptors() {
67 return aaiEntityNodeDescriptors;
70 public void setAaiEntityNodeDescriptors(
71 com.fasterxml.jackson.databind.JsonNode aaiEntityNodeDefinitions) {
72 this.aaiEntityNodeDescriptors = aaiEntityNodeDefinitions;
75 public int getNumLinksResolvedSuccessfullyFromCache() {
76 return numLinksResolvedSuccessfullyFromCache;
79 public void setNumLinksResolvedSuccessfullyFromCache(int numLinksResolvedSuccessfullyFromCache) {
80 this.numLinksResolvedSuccessfullyFromCache = numLinksResolvedSuccessfullyFromCache;
83 public int getNumLinksResolvedSuccessfullyFromServer() {
84 return numLinksResolvedSuccessfullyFromServer;
87 public void setNumLinksResolvedSuccessfullyFromServer(
88 int numLinksResolvedSuccessfullyFromServer) {
89 this.numLinksResolvedSuccessfullyFromServer = numLinksResolvedSuccessfullyFromServer;
92 public int getNumLinkResolveFailed() {
93 return numLinkResolveFailed;
96 public void setNumLinkResolveFailed(int numLinkResolveFailed) {
97 this.numLinkResolveFailed = numLinkResolveFailed;
100 public int getNumNodes() {
104 public void setNumNodes(int numNodes) {
105 this.numNodes = numNodes;
108 public int getNumLinks() {
112 public void setNumLinks(int numLinks) {
113 this.numLinks = numLinks;
116 public long getRenderTimeInMs() {
117 return renderTimeInMs;
120 public void setRenderTimeInMs(long renderTimeInMs) {
121 this.renderTimeInMs = renderTimeInMs;
127 * @param counterName the counter name
129 public void pegCounter(String counterName) {
130 entitySummary.pegCounter(counterName);
134 * @see java.lang.Object#toString()
137 public String toString() {
139 + (aaiEntityNodeDescriptors != null
140 ? "aaiEntityNodeDescriptors=" + aaiEntityNodeDescriptors + ", " : "")
141 + "numNodes=" + numNodes + ", numLinks=" + numLinks + ", renderTimeInMs=" + renderTimeInMs
142 + ", numLinksResolvedSuccessfullyFromCache=" + numLinksResolvedSuccessfullyFromCache
143 + ", numLinksResolvedSuccessfullyFromServer=" + numLinksResolvedSuccessfullyFromServer
144 + ", numLinkResolveFailed=" + numLinkResolveFailed + ", "
145 + (entitySummary != null ? "entitySummary=" + entitySummary : "") + "]";