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
Yuta HIGUCHI
2014-10-26 13:28:48 -0700
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
fd5cdf191fba706f4c72b7816135a821064cf444
fd5cdf19
1 parent
76905087
add toString
Change-Id: Iaab5d307e93b3784359a3bc1f80791b1ea833e58
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
core/api/src/main/java/org/onlab/onos/mastership/MastershipEvent.java
core/api/src/main/java/org/onlab/onos/mastership/MastershipEvent.java
View file @
fd5cdf1
...
...
@@ -4,6 +4,8 @@ import org.onlab.onos.cluster.RoleInfo;
import
org.onlab.onos.event.AbstractEvent
;
import
org.onlab.onos.net.DeviceId
;
import
com.google.common.base.MoreObjects
;
/**
* Describes a device mastership event.
*/
...
...
@@ -62,4 +64,14 @@ public class MastershipEvent extends AbstractEvent<MastershipEvent.Type, DeviceI
public
RoleInfo
roleInfo
()
{
return
roleInfo
;
}
@Override
public
String
toString
()
{
return
MoreObjects
.
toStringHelper
(
getClass
())
.
add
(
"time"
,
time
())
.
add
(
"type"
,
type
())
.
add
(
"subject"
,
subject
())
.
add
(
"roleInfo"
,
roleInfo
)
.
toString
();
}
}
...
...
Please
register
or
login
to post a comment