blob: 64e5e1666cdec2d47187f0a8f6ee05f8e14ae03b [file] [log] [blame]
Thomas Vachuska4f1a60c2014-10-28 13:39:07 -07001/*
2 * Copyright 2014 Open Networking Laboratory
3 *
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 */
Yuta HIGUCHI68b34942014-10-02 23:23:21 -070016package org.onlab.onos.store.trivial.impl;
17
18import org.apache.felix.scr.annotations.Component;
19import org.apache.felix.scr.annotations.Service;
Yuta HIGUCHI80912e62014-10-12 00:15:47 -070020import org.onlab.onos.mastership.MastershipTerm;
Yuta HIGUCHI68b34942014-10-02 23:23:21 -070021import org.onlab.onos.net.DeviceId;
Yuta HIGUCHI093e83e2014-10-10 22:26:11 -070022import org.onlab.onos.net.device.DeviceClockProviderService;
Yuta HIGUCHI68b34942014-10-02 23:23:21 -070023
24//FIXME: Code clone in onos-core-trivial, onos-core-hz-net
25/**
Yuta HIGUCHI093e83e2014-10-10 22:26:11 -070026 * Dummy implementation of {@link DeviceClockProviderService}.
Yuta HIGUCHI68b34942014-10-02 23:23:21 -070027 */
28@Component(immediate = true)
29@Service
Yuta HIGUCHI093e83e2014-10-10 22:26:11 -070030public class NoOpClockProviderService implements DeviceClockProviderService {
Yuta HIGUCHI68b34942014-10-02 23:23:21 -070031
32 @Override
33 public void setMastershipTerm(DeviceId deviceId, MastershipTerm term) {
34 }
35}