* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
-package org.opendaylight.mdsal.singleton.common.spi;
+package org.opendaylight.mdsal.singleton.dom.impl;
import com.google.common.base.Preconditions;
import com.google.common.base.Strings;
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
-package org.opendaylight.mdsal.singleton.common.spi;
+package org.opendaylight.mdsal.singleton.dom.impl;
import com.google.common.util.concurrent.ListenableFuture;
import java.util.List;
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
-package org.opendaylight.mdsal.singleton.common.spi;
+package org.opendaylight.mdsal.singleton.dom.impl;
import com.google.common.annotations.VisibleForTesting;
import com.google.common.base.Preconditions;
}
/*
- * Help method to registerated DoubleCandidateEntity. It is first step
+ * Help method to registered DoubleCandidateEntity. It is first step
* before the actual instance take Leadership.
*/
private void tryToTakeOwnership() {
final ListenableFuture<List<Void>> destroyFuture = Futures.allAsList(serviceCloseFutureList);
Futures.addCallback(destroyFuture, newAsyncCloseCallback(clusterLock));
/*
- * We wish to stop all possible EOS activitis before we don't close
+ * We wish to stop all possible EOS activities before we don't close
* a close candidate registration that acts as a guard. So we don't want
* to release Semaphore (clusterLock) before we are not fully finished.
* Semaphore lock release has to be realized as FutureCallback after a service
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
-package org.opendaylight.mdsal.singleton.common.spi;
+package org.opendaylight.mdsal.singleton.dom.impl;
import com.google.common.base.Preconditions;
import com.google.common.util.concurrent.ListenableFuture;
* ClusterSingletonServiceGroup list reference.
*
* Close {@link ClusterSingletonServiceRegistration} is prepared for a possible restart
- * service or application in osgi container. Any another servicies from group can not be
- * stoped.
+ * service or application in osgi container. Any another services from group can not be
+ * stopped.
*/
class ClusterSingletonServiceRegistrationDelegator
implements ClusterSingletonServiceRegistration, ClusterSingletonService {
import org.opendaylight.mdsal.eos.dom.api.DOMEntityOwnershipListener;
import org.opendaylight.mdsal.eos.dom.api.DOMEntityOwnershipListenerRegistration;
import org.opendaylight.mdsal.eos.dom.api.DOMEntityOwnershipService;
-import org.opendaylight.mdsal.singleton.common.spi.AbstractClusterSingletonServiceProviderImpl;
import org.opendaylight.mdsal.singleton.dom.api.DOMClusterSingletonServiceProvider;
import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier;
import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifierWithPredicates;
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
-package org.opendaylight.mdsal.singleton.common.spi;
+package org.opendaylight.mdsal.singleton.dom.impl;
import static org.mockito.Mockito.doNothing;
import static org.mockito.Mockito.doReturn;
import org.opendaylight.mdsal.singleton.common.api.ClusterSingletonService;
import org.opendaylight.mdsal.singleton.common.api.ClusterSingletonServiceRegistration;
import org.opendaylight.mdsal.singleton.common.api.ServiceGroupIdentifier;
-import org.opendaylight.mdsal.singleton.common.spi.util.TestEntity;
-import org.opendaylight.mdsal.singleton.common.spi.util.TestInstanceIdentifier;
+import org.opendaylight.mdsal.singleton.dom.impl.ClusterSingletonServiceGroup;
+import org.opendaylight.mdsal.singleton.dom.impl.ClusterSingletonServiceGroupImpl;
+import org.opendaylight.mdsal.singleton.dom.impl.util.TestEntity;
+import org.opendaylight.mdsal.singleton.dom.impl.util.TestInstanceIdentifier;
/**
* Testing {@link ClusterSingletonServiceGroupImpl}
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
-package org.opendaylight.mdsal.singleton.common.spi;
+package org.opendaylight.mdsal.singleton.dom.impl;
import static org.mockito.Matchers.any;
import static org.mockito.Mockito.doNothing;
import org.mockito.MockitoAnnotations;
import org.opendaylight.mdsal.singleton.common.api.ClusterSingletonService;
import org.opendaylight.mdsal.singleton.common.api.ServiceGroupIdentifier;
+import org.opendaylight.mdsal.singleton.dom.impl.ClusterSingletonServiceGroup;
+import org.opendaylight.mdsal.singleton.dom.impl.ClusterSingletonServiceGroupImpl;
+import org.opendaylight.mdsal.singleton.dom.impl.ClusterSingletonServiceRegistrationDelegator;
/**
* Testing {@link ClusterSingletonServiceRegistrationDelegator}
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
-package org.opendaylight.mdsal.singleton.common.spi.util;
+package org.opendaylight.mdsal.singleton.dom.impl.util;
import javax.annotation.Nonnull;
import org.opendaylight.mdsal.eos.common.api.GenericEntity;
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
-package org.opendaylight.mdsal.singleton.common.spi.util;
+package org.opendaylight.mdsal.singleton.dom.impl.util;
import com.google.common.base.Preconditions;
import com.google.common.collect.ImmutableList;