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-24 22:12:03 -0700
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
a9700c7a6043c7e6ca47442cc5366e5534a56638
a9700c7a
1 parent
3195f55e
add toString
Change-Id: I14b07972b1f0aec1a7cc21ff053aa30a25af8ca1
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/mastership/MastershipTerm.java
core/api/src/main/java/org/onlab/onos/mastership/MastershipTerm.java
View file @
a9700c7
...
...
@@ -4,6 +4,8 @@ import java.util.Objects;
import
org.onlab.onos.cluster.NodeId
;
import
com.google.common.base.MoreObjects
;
public
final
class
MastershipTerm
{
private
final
NodeId
master
;
...
...
@@ -48,4 +50,12 @@ public final class MastershipTerm {
}
return
false
;
}
@Override
public
String
toString
()
{
return
MoreObjects
.
toStringHelper
(
getClass
())
.
add
(
"master"
,
this
.
master
)
.
add
(
"termNumber"
,
this
.
termNumber
)
.
toString
();
}
}
...
...
Please
register
or
login
to post a comment