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 22:06:41 -0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
dfbfa18d5741eabc577f084129c66a3d1bcac504
dfbfa18d
1 parent
9b19a82c
Deleted old copyright notice text + Javadocs. DatabaseManager is now a active service
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
53 deletions
core/store/dist/src/main/java/org/onlab/onos/store/service/impl/ClusterMessagingProtocol.java
core/store/dist/src/main/java/org/onlab/onos/store/service/impl/ClusterMessagingProtocolClient.java
core/store/dist/src/main/java/org/onlab/onos/store/service/impl/ClusterMessagingProtocolServer.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/impl/ClusterMessagingProtocol.java
View file @
dfbfa18
...
...
@@ -60,24 +60,8 @@ import com.google.common.collect.ImmutableMap;
import
com.google.common.collect.ImmutableSet
;
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under
* the License.
* ONOS Cluster messaging based Copycat protocol.
*/
@Component
(
immediate
=
true
)
@Service
public
class
ClusterMessagingProtocol
implements
Protocol
<
TcpMember
>
{
...
...
core/store/dist/src/main/java/org/onlab/onos/store/service/impl/ClusterMessagingProtocolClient.java
View file @
dfbfa18
...
...
@@ -30,24 +30,8 @@ import org.slf4j.Logger;
import
com.google.common.util.concurrent.ThreadFactoryBuilder
;
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under
* the License.
* ONOS Cluster messaging based Copycat protocol client.
*/
public
class
ClusterMessagingProtocolClient
implements
ProtocolClient
{
private
final
Logger
log
=
getLogger
(
getClass
());
...
...
core/store/dist/src/main/java/org/onlab/onos/store/service/impl/ClusterMessagingProtocolServer.java
View file @
dfbfa18
...
...
@@ -17,24 +17,8 @@ import org.onlab.onos.store.cluster.messaging.ClusterMessageHandler;
import
org.slf4j.Logger
;
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under
* the License.
* ONOS Cluster messaging based Copycat protocol server.
*/
public
class
ClusterMessagingProtocolServer
implements
ProtocolServer
{
private
final
Logger
log
=
getLogger
(
getClass
());
...
...
core/store/dist/src/main/java/org/onlab/onos/store/service/impl/DatabaseManager.java
View file @
dfbfa18
...
...
@@ -15,9 +15,11 @@ 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.Component
;
import
org.apache.felix.scr.annotations.Deactivate
;
import
org.apache.felix.scr.annotations.Reference
;
import
org.apache.felix.scr.annotations.ReferenceCardinality
;
import
org.apache.felix.scr.annotations.Service
;
import
org.onlab.onos.cluster.ClusterService
;
import
org.onlab.onos.cluster.ControllerNode
;
import
org.onlab.onos.store.service.DatabaseAdminService
;
...
...
@@ -40,8 +42,8 @@ import com.google.common.collect.Lists;
* Strongly consistent and durable state management service based on
* Copycat implementation of Raft consensus protocol.
*/
//
@Component(immediate = true)
//
@Service
@Component
(
immediate
=
true
)
@Service
public
class
DatabaseManager
implements
DatabaseService
,
DatabaseAdminService
{
private
final
Logger
log
=
getLogger
(
getClass
());
...
...
@@ -59,6 +61,9 @@ public class DatabaseManager implements DatabaseService, DatabaseAdminService {
@Activate
public
void
activate
()
{
// TODO: Not every node can be part of the consensus ring.
TcpMember
localMember
=
new
TcpMember
(
clusterService
.
getLocalNode
().
ip
().
toString
(),
...
...
Please
register
or
login
to post a comment