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
2015-02-17 14:17:29 -0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
2546111a36fee76d2274d42a68e7e29a7f20e618
2546111a
1 parent
fccd312f
Added copy right headers.
Change-Id: I3a42d1af23f4afb8d584c788ade026c3ed8db0e5
Hide whitespace changes
Inline
Side-by-side
Showing
23 changed files
with
368 additions
and
0 deletions
core/api/src/main/java/org/onosproject/store/service/ConsistentMap.java
core/api/src/main/java/org/onosproject/store/service/ConsistentMapException.java
core/api/src/main/java/org/onosproject/store/service/Serializer.java
core/api/src/main/java/org/onosproject/store/service/StorageService.java
core/api/src/main/java/org/onosproject/store/service/UpdateOperation.java
core/api/src/main/java/org/onosproject/store/service/Versioned.java
core/store/dist/src/main/java/org/onosproject/store/consistent/impl/ConsistentMapImpl.java
core/store/dist/src/main/java/org/onosproject/store/consistent/impl/Database.java
core/store/dist/src/main/java/org/onosproject/store/consistent/impl/DatabaseConfig.java
core/store/dist/src/main/java/org/onosproject/store/consistent/impl/DatabaseDefinitionStore.java
core/store/dist/src/main/java/org/onosproject/store/consistent/impl/DatabaseManager.java
core/store/dist/src/main/java/org/onosproject/store/consistent/impl/DatabasePartitioner.java
core/store/dist/src/main/java/org/onosproject/store/consistent/impl/DatabaseProxy.java
core/store/dist/src/main/java/org/onosproject/store/consistent/impl/DatabaseSerializer.java
core/store/dist/src/main/java/org/onosproject/store/consistent/impl/DatabaseState.java
core/store/dist/src/main/java/org/onosproject/store/consistent/impl/DefaultDatabase.java
core/store/dist/src/main/java/org/onosproject/store/consistent/impl/DefaultDatabaseState.java
core/store/dist/src/main/java/org/onosproject/store/consistent/impl/PartitionedDatabase.java
core/store/dist/src/main/java/org/onosproject/store/consistent/impl/PartitionedDatabaseConfig.java
core/store/dist/src/main/java/org/onosproject/store/consistent/impl/PartitionedDatabaseManager.java
core/store/dist/src/main/java/org/onosproject/store/consistent/impl/Partitioner.java
core/store/dist/src/main/java/org/onosproject/store/consistent/impl/SimpleKeyHashPartitioner.java
core/store/dist/src/main/java/org/onosproject/store/consistent/impl/SimpleTableHashPartitioner.java
core/api/src/main/java/org/onosproject/store/service/ConsistentMap.java
View file @
2546111
/*
* Copyright 2015 Open Networking Laboratory
*
* Licensed 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.
*/
package
org
.
onosproject
.
store
.
service
;
import
java.util.Collection
;
...
...
core/api/src/main/java/org/onosproject/store/service/ConsistentMapException.java
View file @
2546111
/*
* Copyright 2015 Open Networking Laboratory
*
* Licensed 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.
*/
package
org
.
onosproject
.
store
.
service
;
/**
...
...
core/api/src/main/java/org/onosproject/store/service/Serializer.java
View file @
2546111
/*
* Copyright 2015 Open Networking Laboratory
*
* Licensed 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.
*/
package
org
.
onosproject
.
store
.
service
;
/**
...
...
core/api/src/main/java/org/onosproject/store/service/StorageService.java
View file @
2546111
/*
* Copyright 2015 Open Networking Laboratory
*
* Licensed 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.
*/
package
org
.
onosproject
.
store
.
service
;
/**
...
...
core/api/src/main/java/org/onosproject/store/service/UpdateOperation.java
View file @
2546111
/*
* Copyright 2015 Open Networking Laboratory
*
* Licensed 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.
*/
package
org
.
onosproject
.
store
.
service
;
import
static
com
.
google
.
common
.
base
.
Preconditions
.*;
...
...
core/api/src/main/java/org/onosproject/store/service/Versioned.java
View file @
2546111
/*
* Copyright 2015 Open Networking Laboratory
*
* Licensed 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.
*/
package
org
.
onosproject
.
store
.
service
;
import
com.google.common.base.MoreObjects
;
...
...
core/store/dist/src/main/java/org/onosproject/store/consistent/impl/ConsistentMapImpl.java
View file @
2546111
/*
* Copyright 2015 Open Networking Laboratory
*
* Licensed 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.
*/
package
org
.
onosproject
.
store
.
consistent
.
impl
;
import
static
com
.
google
.
common
.
base
.
Preconditions
.*;
...
...
core/store/dist/src/main/java/org/onosproject/store/consistent/impl/Database.java
View file @
2546111
/*
* Copyright 2015 Open Networking Laboratory
*
* Licensed 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.
*/
package
org
.
onosproject
.
store
.
consistent
.
impl
;
...
...
core/store/dist/src/main/java/org/onosproject/store/consistent/impl/DatabaseConfig.java
View file @
2546111
/*
* Copyright 2015 Open Networking Laboratory
*
* Licensed 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.
*/
package
org
.
onosproject
.
store
.
consistent
.
impl
;
import
com.typesafe.config.ConfigValueFactory
;
...
...
core/store/dist/src/main/java/org/onosproject/store/consistent/impl/DatabaseDefinitionStore.java
View file @
2546111
/*
* Copyright 2015 Open Networking Laboratory
*
* Licensed 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.
*/
package
org
.
onosproject
.
store
.
consistent
.
impl
;
import
static
com
.
google
.
common
.
base
.
Preconditions
.
checkArgument
;
...
...
core/store/dist/src/main/java/org/onosproject/store/consistent/impl/DatabaseManager.java
View file @
2546111
/*
* Copyright 2015 Open Networking Laboratory
*
* Licensed 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.
*/
package
org
.
onosproject
.
store
.
consistent
.
impl
;
import
static
org
.
slf4j
.
LoggerFactory
.
getLogger
;
...
...
core/store/dist/src/main/java/org/onosproject/store/consistent/impl/DatabasePartitioner.java
View file @
2546111
/*
* Copyright 2015 Open Networking Laboratory
*
* Licensed 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.
*/
package
org
.
onosproject
.
store
.
consistent
.
impl
;
import
static
com
.
google
.
common
.
base
.
Preconditions
.
checkState
;
...
...
core/store/dist/src/main/java/org/onosproject/store/consistent/impl/DatabaseProxy.java
View file @
2546111
/*
* Copyright 2015 Open Networking Laboratory
*
* Licensed 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.
*/
package
org
.
onosproject
.
store
.
consistent
.
impl
;
import
java.util.Collection
;
...
...
core/store/dist/src/main/java/org/onosproject/store/consistent/impl/DatabaseSerializer.java
View file @
2546111
/*
* Copyright 2015 Open Networking Laboratory
*
* Licensed 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.
*/
package
org
.
onosproject
.
store
.
consistent
.
impl
;
import
java.nio.ByteBuffer
;
...
...
core/store/dist/src/main/java/org/onosproject/store/consistent/impl/DatabaseState.java
View file @
2546111
/*
* Copyright 2015 Open Networking Laboratory
*
* Licensed 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.
*/
package
org
.
onosproject
.
store
.
consistent
.
impl
;
import
java.util.Collection
;
...
...
core/store/dist/src/main/java/org/onosproject/store/consistent/impl/DefaultDatabase.java
View file @
2546111
/*
* Copyright 2015 Open Networking Laboratory
*
* Licensed 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.
*/
package
org
.
onosproject
.
store
.
consistent
.
impl
;
import
net.kuujo.copycat.resource.internal.ResourceContext
;
...
...
core/store/dist/src/main/java/org/onosproject/store/consistent/impl/DefaultDatabaseState.java
View file @
2546111
/*
* Copyright 2015 Open Networking Laboratory
*
* Licensed 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.
*/
package
org
.
onosproject
.
store
.
consistent
.
impl
;
import
java.util.Arrays
;
...
...
core/store/dist/src/main/java/org/onosproject/store/consistent/impl/PartitionedDatabase.java
View file @
2546111
/*
* Copyright 2015 Open Networking Laboratory
*
* Licensed 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.
*/
package
org
.
onosproject
.
store
.
consistent
.
impl
;
import
java.util.Collection
;
...
...
core/store/dist/src/main/java/org/onosproject/store/consistent/impl/PartitionedDatabaseConfig.java
View file @
2546111
/*
* Copyright 2015 Open Networking Laboratory
*
* Licensed 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.
*/
package
org
.
onosproject
.
store
.
consistent
.
impl
;
import
java.util.Collections
;
...
...
core/store/dist/src/main/java/org/onosproject/store/consistent/impl/PartitionedDatabaseManager.java
View file @
2546111
/*
* Copyright 2015 Open Networking Laboratory
*
* Licensed 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.
*/
package
org
.
onosproject
.
store
.
consistent
.
impl
;
import
java.util.Map
;
...
...
core/store/dist/src/main/java/org/onosproject/store/consistent/impl/Partitioner.java
View file @
2546111
/*
* Copyright 2015 Open Networking Laboratory
*
* Licensed 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.
*/
package
org
.
onosproject
.
store
.
consistent
.
impl
;
/**
...
...
core/store/dist/src/main/java/org/onosproject/store/consistent/impl/SimpleKeyHashPartitioner.java
View file @
2546111
/*
* Copyright 2015 Open Networking Laboratory
*
* Licensed 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.
*/
package
org
.
onosproject
.
store
.
consistent
.
impl
;
import
java.util.Map
;
...
...
core/store/dist/src/main/java/org/onosproject/store/consistent/impl/SimpleTableHashPartitioner.java
View file @
2546111
/*
* Copyright 2015 Open Networking Laboratory
*
* Licensed 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.
*/
package
org
.
onosproject
.
store
.
consistent
.
impl
;
import
java.util.Map
;
...
...
Please
register
or
login
to post a comment