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.
25 package org.onap.aai.sparky.viewandinspect.entity;
27 import org.onap.aai.sparky.viewandinspect.EntityTypeAggregation;
30 * The Class GraphMeta.
32 public class GraphMeta {
34 private com.fasterxml.jackson.databind.JsonNode aaiEntityNodeDescriptors;
40 private long renderTimeInMs;
42 private int numLinksResolvedSuccessfullyFromCache;
44 private int numLinksResolvedSuccessfullyFromServer;
46 private int numLinkResolveFailed;
48 private EntityTypeAggregation entitySummary;
51 * Instantiates a new graph meta.
54 entitySummary = new EntityTypeAggregation();
57 public EntityTypeAggregation getEntitySummary() {
61 public void setEntitySummary(EntityTypeAggregation entitySummary) {
62 this.entitySummary = entitySummary;
65 public com.fasterxml.jackson.databind.JsonNode getAaiEntityNodeDescriptors() {
66 return aaiEntityNodeDescriptors;
69 public void setAaiEntityNodeDescriptors(
70 com.fasterxml.jackson.databind.JsonNode aaiEntityNodeDefinitions) {
71 this.aaiEntityNodeDescriptors = aaiEntityNodeDefinitions;
74 public int getNumLinksResolvedSuccessfullyFromCache() {
75 return numLinksResolvedSuccessfullyFromCache;
78 public void setNumLinksResolvedSuccessfullyFromCache(int numLinksResolvedSuccessfullyFromCache) {
79 this.numLinksResolvedSuccessfullyFromCache = numLinksResolvedSuccessfullyFromCache;
82 public int getNumLinksResolvedSuccessfullyFromServer() {
83 return numLinksResolvedSuccessfullyFromServer;
86 public void setNumLinksResolvedSuccessfullyFromServer(
87 int numLinksResolvedSuccessfullyFromServer) {
88 this.numLinksResolvedSuccessfullyFromServer = numLinksResolvedSuccessfullyFromServer;
91 public int getNumLinkResolveFailed() {
92 return numLinkResolveFailed;
95 public void setNumLinkResolveFailed(int numLinkResolveFailed) {
96 this.numLinkResolveFailed = numLinkResolveFailed;
99 public int getNumNodes() {
103 public void setNumNodes(int numNodes) {
104 this.numNodes = numNodes;
107 public int getNumLinks() {
111 public void setNumLinks(int numLinks) {
112 this.numLinks = numLinks;
115 public long getRenderTimeInMs() {
116 return renderTimeInMs;
119 public void setRenderTimeInMs(long renderTimeInMs) {
120 this.renderTimeInMs = renderTimeInMs;
126 * @param counterName the counter name
128 public void pegCounter(String counterName) {
129 entitySummary.pegCounter(counterName);
133 * @see java.lang.Object#toString()
136 public String toString() {
138 + (aaiEntityNodeDescriptors != null
139 ? "aaiEntityNodeDescriptors=" + aaiEntityNodeDescriptors + ", " : "")
140 + "numNodes=" + numNodes + ", numLinks=" + numLinks + ", renderTimeInMs=" + renderTimeInMs
141 + ", numLinksResolvedSuccessfullyFromCache=" + numLinksResolvedSuccessfullyFromCache
142 + ", numLinksResolvedSuccessfullyFromServer=" + numLinksResolvedSuccessfullyFromServer
143 + ", numLinkResolveFailed=" + numLinkResolveFailed + ", "
144 + (entitySummary != null ? "entitySummary=" + entitySummary : "") + "]";