blob: cc09bef0091c05feec15f8390588d51bfac3eb8b [file] [log] [blame]
Avantika-Huawei9e848e82016-09-01 12:12:42 +05301/*
Brian O'Connora09fe5b2017-08-03 21:12:30 -07002 * Copyright 2016-present Open Networking Foundation
Avantika-Huawei9e848e82016-09-01 12:12:42 +05303 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16package org.onosproject.pcelabelstore.util;
17
18import org.onosproject.store.service.AtomicCounterBuilder;
19import org.onosproject.store.service.AtomicValueBuilder;
20import org.onosproject.store.service.ConsistentMapBuilder;
Aaron Kruglikov61582a02016-09-06 13:18:58 -070021import org.onosproject.store.service.ConsistentMultimapBuilder;
Avantika-Huawei9e848e82016-09-01 12:12:42 +053022import org.onosproject.store.service.DistributedSetBuilder;
23import org.onosproject.store.service.EventuallyConsistentMapBuilder;
Ray Milkeyd1c34da2018-06-22 18:10:53 -070024import org.onosproject.store.service.StorageServiceAdapter;
Avantika-Huawei9e848e82016-09-01 12:12:42 +053025import org.onosproject.store.service.TransactionContextBuilder;
26
27public class TestStorageService extends StorageServiceAdapter {
28
29
30 @Override
31 public <K, V> EventuallyConsistentMapBuilder<K, V> eventuallyConsistentMapBuilder() {
32 return TestEventuallyConsistentMap.builder();
33 }
34
35 @Override
36 public <K, V> ConsistentMapBuilder<K, V> consistentMapBuilder() {
37 return TestConsistentMap.builder();
38 }
39
40 @Override
Aaron Kruglikov61582a02016-09-06 13:18:58 -070041 public <K, V> ConsistentMultimapBuilder<K, V> consistentMultimapBuilder() {
42 return null;
43 }
44
45 @Override
Avantika-Huawei9e848e82016-09-01 12:12:42 +053046 public <E> DistributedSetBuilder<E> setBuilder() {
47 return TestDistributedSet.builder();
48 }
49
50 @Override
51 public AtomicCounterBuilder atomicCounterBuilder() {
52 return TestAtomicCounter.builder();
53 }
54
55 @Override
56 public <V> AtomicValueBuilder<V> atomicValueBuilder() {
57 throw new UnsupportedOperationException("atomicValueBuilder");
58 }
59
60 @Override
61 public TransactionContextBuilder transactionContextBuilder() {
62 throw new UnsupportedOperationException("transactionContextBuilder");
63 }
Aaron Kruglikov61582a02016-09-06 13:18:58 -070064
Avantika-Huawei9e848e82016-09-01 12:12:42 +053065}