public abstract class TopologyViewMessageHandlerBase
extends org.onosproject.ui.UiMessageHandler
| Modifier and Type | Class and Description |
|---|---|
protected class |
TopologyViewMessageHandlerBase.TrafficClass |
| Modifier and Type | Field and Description |
|---|---|
protected org.onosproject.cluster.ClusterService |
clusterService |
protected org.onosproject.net.device.DeviceService |
deviceService |
protected org.onlab.osgi.ServiceDirectory |
directory |
protected org.onosproject.net.flow.FlowRuleService |
flowService |
protected org.onosproject.net.host.HostService |
hostService |
protected org.onosproject.net.intent.IntentService |
intentService |
protected org.onosproject.net.link.LinkService |
linkService |
protected static org.slf4j.Logger |
log |
protected org.onosproject.mastership.MastershipService |
mastershipService |
protected org.onosproject.net.statistic.StatisticService |
statService |
protected org.onosproject.net.topology.TopologyService |
topologyService |
| Modifier | Constructor and Description |
|---|---|
protected |
TopologyViewMessageHandlerBase(Set<String> messageTypes)
Creates a new message handler for the specified set of message types.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addHover(Set<org.onosproject.net.Host> hosts,
Set<org.onosproject.net.Device> devices,
String hover) |
protected void |
addPathTraffic(com.fasterxml.jackson.databind.node.ArrayNode paths,
String type,
String trafficType,
Iterable<org.onosproject.net.Link> links) |
protected com.fasterxml.jackson.databind.node.ObjectNode |
deviceDetails(org.onosproject.net.DeviceId deviceId,
long sid) |
protected com.fasterxml.jackson.databind.node.ObjectNode |
deviceMessage(org.onosproject.net.device.DeviceEvent event) |
protected com.fasterxml.jackson.databind.node.ObjectNode |
envelope(String type,
long sid,
com.fasterxml.jackson.databind.node.ObjectNode payload) |
protected com.fasterxml.jackson.databind.node.ObjectNode |
error(long id,
String message) |
protected com.fasterxml.jackson.databind.node.ObjectNode |
flowSummaryMessage(long sid,
Set<org.onosproject.net.Device> devices) |
protected Set<org.onosproject.net.Device> |
getDevices(com.fasterxml.jackson.databind.node.ArrayNode array) |
protected int |
getFlowCount(org.onosproject.net.DeviceId deviceId) |
protected Map<org.onosproject.net.Link,Integer> |
getFlowCounts(org.onosproject.net.DeviceId deviceId) |
protected Set<org.onosproject.net.Host> |
getHosts(com.fasterxml.jackson.databind.node.ArrayNode array) |
protected com.fasterxml.jackson.databind.node.ObjectNode |
hostDetails(org.onosproject.net.HostId hostId,
long sid) |
protected com.fasterxml.jackson.databind.node.ObjectNode |
hostMessage(org.onosproject.net.host.HostEvent event) |
protected com.fasterxml.jackson.databind.node.ObjectNode |
info(long id,
String message) |
void |
init(org.onosproject.ui.UiConnection connection,
org.onlab.osgi.ServiceDirectory directory) |
protected com.fasterxml.jackson.databind.node.ObjectNode |
instanceMessage(org.onosproject.cluster.ClusterEvent event,
String messageType) |
protected com.fasterxml.jackson.databind.node.ObjectNode |
linkMessage(org.onosproject.net.link.LinkEvent event) |
protected long |
number(com.fasterxml.jackson.databind.node.ObjectNode node,
String name) |
protected com.fasterxml.jackson.databind.node.ObjectNode |
payload(com.fasterxml.jackson.databind.node.ObjectNode event) |
protected String |
string(com.fasterxml.jackson.databind.node.ObjectNode node,
String name) |
protected String |
string(com.fasterxml.jackson.databind.node.ObjectNode node,
String name,
String defaultValue) |
protected com.fasterxml.jackson.databind.node.ObjectNode |
summmaryMessage(long sid) |
protected com.fasterxml.jackson.databind.node.ObjectNode |
trafficMessage(long sid,
TopologyViewMessageHandlerBase.TrafficClass... trafficClasses) |
protected com.fasterxml.jackson.databind.node.ObjectNode |
trafficSummaryMessage(long sid) |
protected void |
updateMetaUi(com.fasterxml.jackson.databind.node.ObjectNode event) |
protected com.fasterxml.jackson.databind.node.ObjectNode |
warning(long id,
String message) |
protected static final org.slf4j.Logger log
protected org.onlab.osgi.ServiceDirectory directory
protected org.onosproject.cluster.ClusterService clusterService
protected org.onosproject.net.device.DeviceService deviceService
protected org.onosproject.net.link.LinkService linkService
protected org.onosproject.net.host.HostService hostService
protected org.onosproject.mastership.MastershipService mastershipService
protected org.onosproject.net.intent.IntentService intentService
protected org.onosproject.net.flow.FlowRuleService flowService
protected org.onosproject.net.statistic.StatisticService statService
protected org.onosproject.net.topology.TopologyService topologyService
public void init(org.onosproject.ui.UiConnection connection,
org.onlab.osgi.ServiceDirectory directory)
init in class org.onosproject.ui.UiMessageHandlerprotected com.fasterxml.jackson.databind.node.ObjectNode payload(com.fasterxml.jackson.databind.node.ObjectNode event)
protected long number(com.fasterxml.jackson.databind.node.ObjectNode node,
String name)
protected String string(com.fasterxml.jackson.databind.node.ObjectNode node, String name, String defaultValue)
protected com.fasterxml.jackson.databind.node.ObjectNode info(long id,
String message)
protected com.fasterxml.jackson.databind.node.ObjectNode warning(long id,
String message)
protected com.fasterxml.jackson.databind.node.ObjectNode error(long id,
String message)
protected com.fasterxml.jackson.databind.node.ObjectNode envelope(String type, long sid, com.fasterxml.jackson.databind.node.ObjectNode payload)
envelope in class org.onosproject.ui.UiMessageHandlerprotected Set<org.onosproject.net.Host> getHosts(com.fasterxml.jackson.databind.node.ArrayNode array)
protected Set<org.onosproject.net.Device> getDevices(com.fasterxml.jackson.databind.node.ArrayNode array)
protected void addHover(Set<org.onosproject.net.Host> hosts, Set<org.onosproject.net.Device> devices, String hover)
protected com.fasterxml.jackson.databind.node.ObjectNode instanceMessage(org.onosproject.cluster.ClusterEvent event,
String messageType)
protected com.fasterxml.jackson.databind.node.ObjectNode deviceMessage(org.onosproject.net.device.DeviceEvent event)
protected com.fasterxml.jackson.databind.node.ObjectNode linkMessage(org.onosproject.net.link.LinkEvent event)
protected com.fasterxml.jackson.databind.node.ObjectNode hostMessage(org.onosproject.net.host.HostEvent event)
protected void updateMetaUi(com.fasterxml.jackson.databind.node.ObjectNode event)
protected com.fasterxml.jackson.databind.node.ObjectNode summmaryMessage(long sid)
protected com.fasterxml.jackson.databind.node.ObjectNode deviceDetails(org.onosproject.net.DeviceId deviceId,
long sid)
protected int getFlowCount(org.onosproject.net.DeviceId deviceId)
protected Map<org.onosproject.net.Link,Integer> getFlowCounts(org.onosproject.net.DeviceId deviceId)
protected com.fasterxml.jackson.databind.node.ObjectNode hostDetails(org.onosproject.net.HostId hostId,
long sid)
protected com.fasterxml.jackson.databind.node.ObjectNode trafficSummaryMessage(long sid)
protected com.fasterxml.jackson.databind.node.ObjectNode flowSummaryMessage(long sid,
Set<org.onosproject.net.Device> devices)
protected com.fasterxml.jackson.databind.node.ObjectNode trafficMessage(long sid,
TopologyViewMessageHandlerBase.TrafficClass... trafficClasses)
Copyright © 2015. All rights reserved.