2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright © 2017 AT&T Intellectual Property. All rights reserved.
6 * Copyright © 2017 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 * ECOMP is a trademark and service mark of AT&T Intellectual Property.
23 package org.openecomp.sparky.viewandinspect.entity;
25 import org.openecomp.sparky.viewandinspect.EntityTypeAggregation;
28 * The Class GraphMeta.
30 public class GraphMeta {
32 private com.fasterxml.jackson.databind.JsonNode aaiEntityNodeDescriptors;
38 private long renderTimeInMs;
40 private int numLinksResolvedSuccessfullyFromCache;
42 private int numLinksResolvedSuccessfullyFromServer;
44 private int numLinkResolveFailed;
46 private EntityTypeAggregation entitySummary;
49 * Instantiates a new graph meta.
52 entitySummary = new EntityTypeAggregation();
55 public EntityTypeAggregation getEntitySummary() {
59 public void setEntitySummary(EntityTypeAggregation entitySummary) {
60 this.entitySummary = entitySummary;
63 public com.fasterxml.jackson.databind.JsonNode getAaiEntityNodeDescriptors() {
64 return aaiEntityNodeDescriptors;
67 public void setAaiEntityNodeDescriptors(
68 com.fasterxml.jackson.databind.JsonNode aaiEntityNodeDefinitions) {
69 this.aaiEntityNodeDescriptors = aaiEntityNodeDefinitions;
72 public int getNumLinksResolvedSuccessfullyFromCache() {
73 return numLinksResolvedSuccessfullyFromCache;
76 public void setNumLinksResolvedSuccessfullyFromCache(int numLinksResolvedSuccessfullyFromCache) {
77 this.numLinksResolvedSuccessfullyFromCache = numLinksResolvedSuccessfullyFromCache;
80 public int getNumLinksResolvedSuccessfullyFromServer() {
81 return numLinksResolvedSuccessfullyFromServer;
84 public void setNumLinksResolvedSuccessfullyFromServer(
85 int numLinksResolvedSuccessfullyFromServer) {
86 this.numLinksResolvedSuccessfullyFromServer = numLinksResolvedSuccessfullyFromServer;
89 public int getNumLinkResolveFailed() {
90 return numLinkResolveFailed;
93 public void setNumLinkResolveFailed(int numLinkResolveFailed) {
94 this.numLinkResolveFailed = numLinkResolveFailed;
97 public int getNumNodes() {
101 public void setNumNodes(int numNodes) {
102 this.numNodes = numNodes;
105 public int getNumLinks() {
109 public void setNumLinks(int numLinks) {
110 this.numLinks = numLinks;
113 public long getRenderTimeInMs() {
114 return renderTimeInMs;
117 public void setRenderTimeInMs(long renderTimeInMs) {
118 this.renderTimeInMs = renderTimeInMs;
124 * @param counterName the counter name
126 public void pegCounter(String counterName) {
127 entitySummary.pegCounter(counterName);
131 * @see java.lang.Object#toString()
134 public String toString() {
136 + (aaiEntityNodeDescriptors != null
137 ? "aaiEntityNodeDescriptors=" + aaiEntityNodeDescriptors + ", " : "")
138 + "numNodes=" + numNodes + ", numLinks=" + numLinks + ", renderTimeInMs=" + renderTimeInMs
139 + ", numLinksResolvedSuccessfullyFromCache=" + numLinksResolvedSuccessfullyFromCache
140 + ", numLinksResolvedSuccessfullyFromServer=" + numLinksResolvedSuccessfullyFromServer
141 + ", numLinkResolveFailed=" + numLinkResolveFailed + ", "
142 + (entitySummary != null ? "entitySummary=" + entitySummary : "") + "]";