blob: aa1be9c6f539029a0fdfaeb7e8e0f256a85628bf [file] [log] [blame]
Simon Huntc54cd1b2015-05-11 13:43:44 -07001/*
2 * Copyright 2015 Open Networking Laboratory
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 *
16 */
17
18package org.onosproject.ui.impl.topo.overlay;
19
20import com.fasterxml.jackson.databind.node.ObjectNode;
21
22/**
23 * May be called upon to generate the summary messages for the topology view
24 * in the GUI.
25 * <p>
26 * It is assumed that if a custom summary generator is installed on the server
27 * (as part of a topology overlay), a peer custom summary message handler will
28 * be installed on the client side to handle the messages thus generated.
29 */
30public interface SummaryGenerator {
31 /**
32 * Generates the payload for the "showSummary" message.
33 *
34 * @return the message payload
35 */
36 ObjectNode generateSummary();
37}