2 * Copyright (c) 2015 Brocade Communications Systems, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.controller.cluster.datastore.entityownership;
10 import org.opendaylight.controller.cluster.datastore.DistributedDataStore;
11 import org.opendaylight.controller.md.sal.common.api.clustering.CandidateAlreadyRegisteredException;
12 import org.opendaylight.controller.md.sal.common.api.clustering.Entity;
13 import org.opendaylight.controller.md.sal.common.api.clustering.EntityOwnershipCandidate;
14 import org.opendaylight.controller.md.sal.common.api.clustering.EntityOwnershipCandidateRegistration;
15 import org.opendaylight.controller.md.sal.common.api.clustering.EntityOwnershipListener;
16 import org.opendaylight.controller.md.sal.common.api.clustering.EntityOwnershipListenerRegistration;
17 import org.opendaylight.controller.md.sal.common.api.clustering.EntityOwnershipService;
18 import org.slf4j.Logger;
19 import org.slf4j.LoggerFactory;
22 * The distributed implementation of the EntityOwnershipService.
24 * @author Thomas Pantelis
26 public class DistributedEntityOwnershipService implements EntityOwnershipService, AutoCloseable {
27 private static final Logger LOG = LoggerFactory.getLogger(DistributedEntityOwnershipService.class);
29 private final DistributedDataStore datastore;
31 public DistributedEntityOwnershipService(DistributedDataStore datastore) {
32 this.datastore = datastore;
36 LOG.info("DistributedEntityOwnershipService starting");
40 public EntityOwnershipCandidateRegistration registerCandidate(Entity entity, EntityOwnershipCandidate candidate)
41 throws CandidateAlreadyRegisteredException {
42 // TODO Auto-generated method stub
47 public EntityOwnershipListenerRegistration registerListener(Entity entity, EntityOwnershipListener listener) {
48 // TODO Auto-generated method stub