@Service(value=UiSharedTopologyModel.class) public final class UiSharedTopologyModel extends org.onosproject.event.AbstractListenerManager<UiModelEvent,UiModelListener>
| Constructor and Description |
|---|
UiSharedTopologyModel() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
activate() |
protected void |
deactivate() |
List<org.onosproject.ui.model.topo.UiClusterMember> |
getClusterMembers()
Returns the list of cluster members stored in the model cache.
|
Set<org.onosproject.ui.model.topo.UiDeviceLink> |
getDeviceLinks()
Returns the set of device links stored in the model cache.
|
Set<org.onosproject.ui.model.topo.UiDevice> |
getDevices()
Returns the set of devices stored in the model cache.
|
Set<org.onosproject.ui.model.topo.UiHost> |
getHosts()
Returns the set of hosts stored in the model cache.
|
org.onosproject.ui.model.topo.UiRegion |
getNullRegion()
Returns the null region.
|
org.onosproject.ui.model.topo.UiRegion |
getRegion(org.onosproject.net.region.RegionId id)
Returns the region for the given identifier.
|
Set<org.onosproject.ui.model.topo.UiRegion> |
getRegions()
Returns the set of regions stored in the model cache.
|
List<org.onosproject.ui.model.topo.UiSynthLink> |
getSynthLinks(org.onosproject.net.region.RegionId regionId)
Returns the synthetic links associated with the specified region.
|
void |
refresh()
Refreshes the cache's internal state.
|
void |
register(UiTopoSession session)
Registers a UI topology session with the topology model.
|
void |
unregister(UiTopoSession session)
Unregisters a UI topology session from the topology model.
|
@Activate protected void activate()
@Deactivate protected void deactivate()
public void register(UiTopoSession session)
session - the session to registerpublic void unregister(UiTopoSession session)
session - the session to unregisterpublic void refresh()
public List<org.onosproject.ui.model.topo.UiClusterMember> getClusterMembers()
public Set<org.onosproject.ui.model.topo.UiRegion> getRegions()
public org.onosproject.ui.model.topo.UiRegion getRegion(org.onosproject.net.region.RegionId id)
id - region identifierpublic org.onosproject.ui.model.topo.UiRegion getNullRegion()
public Set<org.onosproject.ui.model.topo.UiDevice> getDevices()
public Set<org.onosproject.ui.model.topo.UiHost> getHosts()
public Set<org.onosproject.ui.model.topo.UiDeviceLink> getDeviceLinks()
public List<org.onosproject.ui.model.topo.UiSynthLink> getSynthLinks(org.onosproject.net.region.RegionId regionId)
regionId - region ID