use of org.onosproject.ui.topo.DeviceHighlight in project onos by opennetworkinglab.
the class AlarmTopovMessageHandler method addDeviceBadge.
private void addDeviceBadge(Highlights h, DeviceId devId, int n) {
DeviceHighlight dh = new DeviceHighlight(devId.toString());
dh.setBadge(createBadge(n));
h.add(dh);
}
use of org.onosproject.ui.topo.DeviceHighlight in project onos by opennetworkinglab.
the class PathPainterTopovMessageHandler method addDeviceBadge.
private Highlights addDeviceBadge(Highlights h, String elemId, String type) {
DeviceHighlight dh = new DeviceHighlight(elemId);
dh.setBadge(createBadge(type));
h.add(dh);
return h;
}
use of org.onosproject.ui.topo.DeviceHighlight in project onos by opennetworkinglab.
the class ProtectedIntentMonitor method ensureNodePresent.
// TODO duplicate and can be brought in abstract upper class.
private void ensureNodePresent(Highlights highlights, ElementId eid) {
String id = eid.toString();
NodeHighlight nh = highlights.getNode(id);
if (nh == null) {
if (eid instanceof DeviceId) {
nh = new DeviceHighlight(id);
highlights.add((DeviceHighlight) nh);
} else if (eid instanceof HostId) {
nh = new HostHighlight(id);
highlights.add((HostHighlight) nh);
}
}
}
use of org.onosproject.ui.topo.DeviceHighlight in project onos by opennetworkinglab.
the class TrafficMonitorBase method ensureNodePresent.
protected void ensureNodePresent(Highlights highlights, ElementId eid) {
String id = eid.toString();
NodeHighlight nh = highlights.getNode(id);
if (nh == null) {
if (eid instanceof DeviceId) {
nh = new DeviceHighlight(id);
highlights.add((DeviceHighlight) nh);
} else if (eid instanceof HostId) {
nh = new HostHighlight(id);
highlights.add((HostHighlight) nh);
}
}
}
Aggregations