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
Madan Jampani
2014-11-04 23:16:27 -0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
686fa187850b781a5eecfd0b1ea6e868fda85880
686fa187
1 parent
beada936
Javadoc improvements
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
0 deletions
core/store/dist/src/main/java/org/onlab/onos/store/service/impl/DatabaseClient.java
core/store/dist/src/main/java/org/onlab/onos/store/service/impl/DatabaseStateMachine.java
core/store/dist/src/main/java/org/onlab/onos/store/service/impl/InternalReadResult.java
core/store/dist/src/main/java/org/onlab/onos/store/service/impl/InternalWriteResult.java
core/store/dist/src/main/java/org/onlab/onos/store/service/impl/DatabaseClient.java
View file @
686fa18
...
...
@@ -15,6 +15,9 @@ import org.onlab.onos.store.service.DatabaseException;
import
org.onlab.onos.store.service.ReadRequest
;
import
org.onlab.onos.store.service.WriteRequest
;
/**
* Client for interacting with the Copycat Raft cluster.
*/
public
class
DatabaseClient
{
private
final
ProtocolClient
client
;
...
...
core/store/dist/src/main/java/org/onlab/onos/store/service/impl/DatabaseStateMachine.java
View file @
686fa18
...
...
@@ -19,6 +19,13 @@ import org.onlab.util.KryoNamespace;
import
com.google.common.collect.Maps
;
/**
* StateMachine whose transitions are coordinated/replicated
* by Raft consensus.
* Each Raft cluster member has a instance of this state machine that is
* independently updated in lock step once there is consensus
* on the next transition.
*/
public
class
DatabaseStateMachine
implements
StateMachine
{
public
static
final
KryoSerializer
SERIALIZER
=
new
KryoSerializer
()
{
...
...
core/store/dist/src/main/java/org/onlab/onos/store/service/impl/InternalReadResult.java
View file @
686fa18
...
...
@@ -2,6 +2,9 @@ package org.onlab.onos.store.service.impl;
import
org.onlab.onos.store.service.ReadResult
;
/**
* Result of a read operation executed on the DatabaseStateMachine.
*/
public
class
InternalReadResult
{
public
enum
Status
{
...
...
core/store/dist/src/main/java/org/onlab/onos/store/service/impl/InternalWriteResult.java
View file @
686fa18
...
...
@@ -2,6 +2,9 @@ package org.onlab.onos.store.service.impl;
import
org.onlab.onos.store.service.WriteResult
;
/**
* Result of a write operation executed on the DatabaseStateMachine.
*/
public
class
InternalWriteResult
{
public
enum
Status
{
...
...
Please
register
or
login
to post a comment