public class UiTopoOverlay
extends java.lang.Object
This base class does little more than provide a logger and an identifier. Subclasses will probably want to override some or all of the base methods to do useful things during the life-cycle of the overlay.
Modifier and Type | Field and Description |
---|---|
protected org.slf4j.Logger |
log
Logger for this overlay.
|
Constructor and Description |
---|
UiTopoOverlay(java.lang.String id)
Creates a new user interface topology view overlay descriptor, with
the given identifier.
|
Modifier and Type | Method and Description |
---|---|
void |
activate()
Callback invoked when this overlay is activated.
|
java.util.Map<java.lang.String,java.lang.String> |
additionalLinkData(LinkEvent event)
Deprecated.
this is a temporary addition for Goldeneye (1.6) release,
and is superceded by use of
modifyEdgeLinkDetails(org.onosproject.ui.topo.PropertyPanel, org.onosproject.net.HostId, org.onosproject.net.ConnectPoint) and
modifyInfraLinkDetails(org.onosproject.ui.topo.PropertyPanel, org.onosproject.net.ConnectPoint, org.onosproject.net.ConnectPoint) . |
void |
deactivate()
Callback invoked when this overlay is deactivated.
|
void |
destroy()
Callback invoked to destroy this instance by cleaning up any
internal state ready for garbage collection.
|
java.lang.String |
id()
Returns the identifier for this overlay.
|
void |
init()
Callback invoked to initialize this overlay, soon after creation.
|
boolean |
isActive()
Returns true if this overlay is currently active.
|
void |
modifyDeviceDetails(PropertyPanel pp,
DeviceId deviceId)
Callback to modify the contents of the details panel for
a selected device.
|
void |
modifyEdgeLinkDetails(PropertyPanel pp,
HostId hostId,
ConnectPoint cp)
Callback to modify the contents of the details panel for a selected
edge link.
|
void |
modifyHostDetails(PropertyPanel pp,
HostId hostId)
Callback to modify the contents of the details panel for
a selected host.
|
void |
modifyInfraLinkDetails(PropertyPanel pp,
ConnectPoint cpA,
ConnectPoint cpB)
Callback to modify the contents of the details panel for a selected
infrastructure link.
|
void |
modifySummary(PropertyPanel pp)
Callback to modify the contents of the summary panel.
|
public UiTopoOverlay(java.lang.String id)
id
- overlay identifierpublic java.lang.String id()
public void init()
public void activate()
public void deactivate()
public boolean isActive()
public void destroy()
public void modifySummary(PropertyPanel pp)
pp
- property panel model of summary datapublic void modifyDeviceDetails(PropertyPanel pp, DeviceId deviceId)
pp
- property panel model of device datadeviceId
- device idpublic void modifyHostDetails(PropertyPanel pp, HostId hostId)
pp
- property panel model of host datahostId
- host idpublic void modifyEdgeLinkDetails(PropertyPanel pp, HostId hostId, ConnectPoint cp)
This default implementation does nothing.
pp
- property panel model of edge link datahostId
- host IDcp
- connect pointpublic void modifyInfraLinkDetails(PropertyPanel pp, ConnectPoint cpA, ConnectPoint cpB)
Note that links in the topology view are (usually) "bi-directional", meaning that both A-->B and B-->A backing links exist. If, however, there is only one backing link, it is guaranteed to be A-->B.
This default implementation does nothing.
pp
- property panel model of infrastructure link datacpA
- connect point AcpB
- connect point B@Deprecated public java.util.Map<java.lang.String,java.lang.String> additionalLinkData(LinkEvent event)
modifyEdgeLinkDetails(org.onosproject.ui.topo.PropertyPanel, org.onosproject.net.HostId, org.onosproject.net.ConnectPoint)
and
modifyInfraLinkDetails(org.onosproject.ui.topo.PropertyPanel, org.onosproject.net.ConnectPoint, org.onosproject.net.ConnectPoint)
.
The default implementation returns null
, that is, no additional
properties to be added.
event
- the link event