1 package test.mock.util;
3 import com.google.common.base.Optional;
4 import org.opendaylight.controller.md.sal.common.api.clustering.*;
6 import javax.annotation.Nonnull;
9 * Created by vishnoianil on 1/13/16.
11 public class EntityOwnershipServiceMock implements EntityOwnershipService {
13 public EntityOwnershipCandidateRegistration registerCandidate(@Nonnull Entity entity) throws CandidateAlreadyRegisteredException {
18 public EntityOwnershipListenerRegistration registerListener(@Nonnull String entityType, @Nonnull EntityOwnershipListener listener) {
23 public Optional<EntityOwnershipState> getOwnershipState(@Nonnull Entity forEntity) {
24 return Optional.of(new EntityOwnershipState(true,true));
28 public boolean isCandidateRegistered(@Nonnull Entity entity) {