Toggle navigation
Toggle navigation
This project
Loading...
Sign in
홍길동
/
onos
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
Thomas Vachuska
2014-10-22 22:33:49 -0700
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
5c436bab370050e262012b610795733284a1d520
5c436bab
2 parents
0e752bdb
156c2ff2
Merge remote-tracking branch 'origin/master'
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
core/api/src/main/java/org/onlab/onos/net/device/DeviceEvent.java
core/api/src/main/java/org/onlab/onos/net/device/DeviceEvent.java
View file @
5c436ba
...
...
@@ -4,6 +4,8 @@ import org.onlab.onos.event.AbstractEvent;
import
org.onlab.onos.net.Device
;
import
org.onlab.onos.net.Port
;
import
static
com
.
google
.
common
.
base
.
MoreObjects
.
toStringHelper
;
/**
* Describes infrastructure device event.
*/
...
...
@@ -109,4 +111,12 @@ public class DeviceEvent extends AbstractEvent<DeviceEvent.Type, Device> {
return
port
;
}
@Override
public
String
toString
()
{
if
(
port
==
null
)
{
return
super
.
toString
();
}
return
toStringHelper
(
this
).
add
(
"time"
,
time
()).
add
(
"type"
,
type
())
.
add
(
"subject"
,
subject
()).
add
(
"port"
,
port
).
toString
();
}
}
...
...
Please
register
or
login
to post a comment