blob: 7aedc48a95505e204d5535771688f7f57ac22b90 [file] [log] [blame]
Simon Hunt1911fe42017-05-02 18:25:58 -07001/*
2 * Copyright 2017-present 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;
19
20import org.onosproject.ui.impl.TrafficMonitorBase;
21import org.onosproject.ui.impl.topo.util.ServicesBundle;
22import org.slf4j.Logger;
23import org.slf4j.LoggerFactory;
24
25/**
26 * Encapsulates the behavior of monitoring specific traffic patterns in the
27 * Topology-2 view.
28 */
29public class Traffic2Monitor extends TrafficMonitorBase {
30
31 private static final Logger log =
32 LoggerFactory.getLogger(Traffic2Monitor.class);
33
34 /**
35 * Constructs a traffic monitor.
36 *
37 * @param trafficPeriod traffic task period in ms
38 * @param servicesBundle bundle of services
39 */
40 public Traffic2Monitor(long trafficPeriod, ServicesBundle servicesBundle) {
41 super(trafficPeriod, servicesBundle);
42 }
43
44 @Override
45 protected void sendAllFlowTraffic() {
46 // TODO
47 }
48
49 @Override
50 protected void sendAllPortTrafficBits() {
51 // TODO
52 }
53
54 @Override
55 protected void sendAllPortTrafficPackets() {
56 // TODO
57 }
58
59 @Override
60 protected void sendDeviceLinkFlows() {
61 // NOTE: currently this monitor holds no state - nothing to do
62 }
63
64 @Override
65 protected void sendSelectedIntentTraffic() {
66 // NOTE: currently this monitor holds no state - nothing to do
67 }
68
69 @Override
70 protected void sendClearHighlights() {
71 // TODO
72 }
73
74 @Override
75 protected void clearSelection() {
76 // NOTE: currently this monitor holds no state - nothing to do
77 }
78}