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
cba2d346
Commit
cba2d346
authored
13 years ago
by
Srinivasan Ramasubramanian
Browse files
Options
Downloads
Patches
Plain Diff
Adding last unicast ARP conversion time to DeviceNetworkAddress class.
parent
d8356848
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/devicemanager/DeviceNetworkAddress.java
+12
-0
12 additions, 0 deletions
...odlightcontroller/devicemanager/DeviceNetworkAddress.java
with
12 additions
and
0 deletions
src/main/java/net/floodlightcontroller/devicemanager/DeviceNetworkAddress.java
+
12
−
0
View file @
cba2d346
...
...
@@ -22,6 +22,7 @@ import java.util.Date;
public
class
DeviceNetworkAddress
{
private
Integer
networkAddress
;
private
Date
lastSeen
;
private
long
lastUnicastArpRequestTime
;
private
Date
lastSeenInStorage
;
private
Date
lastWrittenToStorage
;
private
long
expire
;
...
...
@@ -35,6 +36,7 @@ public class DeviceNetworkAddress {
public
DeviceNetworkAddress
(
Integer
networkAddress
,
Date
lastSeen
)
{
this
.
networkAddress
=
networkAddress
;
this
.
lastSeen
=
lastSeen
;
this
.
lastUnicastArpRequestTime
=
-
1
;
this
.
lastSeenInStorage
=
null
;
this
.
lastWrittenToStorage
=
null
;
}
...
...
@@ -52,6 +54,8 @@ public class DeviceNetworkAddress {
public
void
setLastSeen
(
Date
lastSeen
)
{
this
.
lastSeen
=
lastSeen
;
//whenever the lastSeen is set, clear the lastUnicastArpRequestTime
this
.
lastUnicastArpRequestTime
=
-
1
;
}
public
void
lastSeenWrittenToStorage
(
Date
lastWrittenDate
)
{
...
...
@@ -126,4 +130,12 @@ public class DeviceNetworkAddress {
public
Date
getLastWrittenToStorage
()
{
return
lastWrittenToStorage
;
}
public
long
getLastUnicastArpRequestTime
()
{
return
lastUnicastArpRequestTime
;
}
public
void
setLastUnicastArpRequestTime
(
long
lastUnicastArpRequestTime
)
{
this
.
lastUnicastArpRequestTime
=
lastUnicastArpRequestTime
;
}
}
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