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
alshabib
2014-10-22 23:32:04 -0700
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
558e89376640cb61f871732af2c8ef32e6aa5b4b
558e8937
2 parents
f6c2ede9
156c2ff2
Merge branch 'master' of
ssh://gerrit.onlab.us:29418/onos-next
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 @
558e893
...
...
@@ -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