Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
floodlight
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
croft1
floodlight
Commits
a6769855
Commit
a6769855
authored
13 years ago
by
Srinivasan Ramasubramanian
Browse files
Options
Downloads
Patches
Plain Diff
Updating the add<Listener>Aware and remove<Listener>Aware methods for Link Discovery and Topology.
parent
8c7e6280
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/net/floodlightcontroller/topology/internal/TopologyImpl.java
+22
-3
22 additions, 3 deletions
.../floodlightcontroller/topology/internal/TopologyImpl.java
with
22 additions
and
3 deletions
src/main/java/net/floodlightcontroller/topology/internal/TopologyImpl.java
+
22
−
3
View file @
a6769855
...
@@ -1636,21 +1636,40 @@ public class TopologyImpl
...
@@ -1636,21 +1636,40 @@ public class TopologyImpl
public
void
addListener
(
ITopologyListener
listener
)
{
public
void
addListener
(
ITopologyListener
listener
)
{
topologyAware
.
add
(
listener
);
topologyAware
.
add
(
listener
);
}
}
/**
* Register a link discovery aware component
* @param linkDiscoveryAwareComponent
*/
public
void
addLinkDiscoveryAware
(
ILinkDiscoveryListener
linkDiscoveryAwareComponent
)
{
// TODO make this a copy on write set or lock it somehow
this
.
linkDiscoveryAware
.
add
(
linkDiscoveryAwareComponent
);
}
/**
* Deregister a link discovery aware component
* @param linkDiscoveryAwareComponent
*/
public
void
removeLinkDiscoveryAware
(
ILinkDiscoveryListener
linkDiscoveryAwareComponent
)
{
// TODO make this a copy on write set or lock it somehow
this
.
linkDiscoveryAware
.
remove
(
linkDiscoveryAwareComponent
);
}
/**
/**
* Register a topology aware component
* Register a topology aware component
* @param topoAwareComponent
* @param topoAwareComponent
*/
*/
public
void
addTopologyAware
(
I
LinkDiscover
yListener
topoAwareComponent
)
{
public
void
addTopologyAware
(
I
Topolog
yListener
topoAwareComponent
)
{
// TODO make this a copy on write set or lock it somehow
// TODO make this a copy on write set or lock it somehow
this
.
linkDiscover
yAware
.
add
(
topoAwareComponent
);
this
.
topolog
yAware
.
add
(
topoAwareComponent
);
}
}
/**
/**
* Deregister a topology aware component
* Deregister a topology aware component
* @param topoAwareComponent
* @param topoAwareComponent
*/
*/
public
void
removeTopologyAware
(
I
LinkDiscover
yListener
topoAwareComponent
)
{
public
void
removeTopologyAware
(
I
Topolog
yListener
topoAwareComponent
)
{
// TODO make this a copy on write set or lock it somehow
// TODO make this a copy on write set or lock it somehow
this
.
topologyAware
.
remove
(
topoAwareComponent
);
this
.
topologyAware
.
remove
(
topoAwareComponent
);
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment