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-11-04 20:54:58 -0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
657626eb45abd8d8fd62dfdafaef9a547cdeb53b
657626eb
1 parent
7fe161a1
bugfix @Activate -> @Deactivate
Change-Id: I38b4c86e20275f36e201cfa41a311c86b1dfe95f
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
1 deletions
core/store/dist/src/main/java/org/onlab/onos/store/service/NoSuchTableException.java
core/store/dist/src/main/java/org/onlab/onos/store/service/PreconditionFailedException.java
core/store/dist/src/main/java/org/onlab/onos/store/service/WriteAborted.java
core/store/dist/src/main/java/org/onlab/onos/store/service/impl/DatabaseManager.java
core/store/dist/src/main/java/org/onlab/onos/store/service/NoSuchTableException.java
View file @
657626e
package
org
.
onlab
.
onos
.
store
.
service
;
/**
* Exception thrown when an operation (read or write) is requested for
* a table that does not exist.
...
...
core/store/dist/src/main/java/org/onlab/onos/store/service/PreconditionFailedException.java
View file @
657626e
package
org
.
onlab
.
onos
.
store
.
service
;
/**
* Exception that indicates a precondition failure.
* Scenarios that can cause this exception:
...
...
core/store/dist/src/main/java/org/onlab/onos/store/service/WriteAborted.java
View file @
657626e
package
org
.
onlab
.
onos
.
store
.
service
;
/**
* Exception that indicates a write operation is aborted.
* Aborted operations do not mutate database state is any form.
...
...
core/store/dist/src/main/java/org/onlab/onos/store/service/impl/DatabaseManager.java
View file @
657626e
...
...
@@ -15,6 +15,7 @@ import net.kuujo.copycat.log.ChronicleLog;
import
net.kuujo.copycat.log.Log
;
import
org.apache.felix.scr.annotations.Activate
;
import
org.apache.felix.scr.annotations.Deactivate
;
import
org.apache.felix.scr.annotations.Reference
;
import
org.apache.felix.scr.annotations.ReferenceCardinality
;
import
org.onlab.netty.Endpoint
;
...
...
@@ -91,9 +92,10 @@ public class DatabaseManager implements DatabaseService, DatabaseAdminService {
log
.
info
(
"Started."
);
}
@
A
ctivate
@
Dea
ctivate
public
void
deactivate
()
{
copycat
.
stop
();
log
.
info
(
"Stopped."
);
}
@Override
...
...
Please
register
or
login
to post a comment