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-09-25 13:53:15 -0700
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
080d78484bbee68269c7e03845e30a6d896b3627
080d7848
1 parent
ee1c4677
inital term info service
Change-Id: I4503f1dcadda62bb25e2dba106e9a1101b4d37d6
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
0 deletions
core/api/src/main/java/org/onlab/onos/cluster/MastershipTerm.java
core/api/src/main/java/org/onlab/onos/cluster/MastershipTermService.java
core/api/src/main/java/org/onlab/onos/cluster/MastershipTerm.java
0 → 100644
View file @
080d784
package
org
.
onlab
.
onos
.
cluster
;
public
class
MastershipTerm
{
private
final
NodeId
master
=
null
;
private
int
termNumber
;
}
core/api/src/main/java/org/onlab/onos/cluster/MastershipTermService.java
0 → 100644
View file @
080d784
package
org
.
onlab
.
onos
.
cluster
;
import
org.onlab.onos.net.DeviceId
;
// TODO give me a better name
/**
* Service to obtain mastership term information.
*/
public
interface
MastershipTermService
{
// TBD: manage/increment per device mastership change
// or increment on any change
/**
* Returns the term number of mastership change occurred for given device.
*
* @param deviceId the identifier of the device
* @return current master's term.
*/
MastershipTerm
getMastershipTerm
(
DeviceId
deviceId
);
}
Please
register
or
login
to post a comment