X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-distributed-datastore%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fdatastore%2FThreePhaseCommitCohortProxy.java;h=5f82584f856cc69b987c473178232d3aea6b3a66;hb=HEAD;hp=197b3b70cefa292e3829b776560b4cd2ae99967f;hpb=b2e6c299fad844633c8b40a2e180780f5774a4ae;p=controller.git diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/ThreePhaseCommitCohortProxy.java b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/ThreePhaseCommitCohortProxy.java deleted file mode 100644 index 197b3b70ce..0000000000 --- a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/ThreePhaseCommitCohortProxy.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright (c) 2014 Cisco Systems, Inc. and others. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v1.0 which accompanies this distribution, - * and is available at http://www.eclipse.org/legal/epl-v10.html - */ - -package org.opendaylight.controller.cluster.datastore; - -import akka.actor.ActorPath; -import com.google.common.util.concurrent.ListenableFuture; -import org.opendaylight.controller.sal.core.spi.data.DOMStoreThreePhaseCommitCohort; - -import java.util.Collections; -import java.util.List; - -/** - * ThreePhaseCommitCohortProxy represents a set of remote cohort proxies - */ -public class ThreePhaseCommitCohortProxy implements - DOMStoreThreePhaseCommitCohort{ - - private final List cohortPaths; - - public ThreePhaseCommitCohortProxy(List cohortPaths) { - - this.cohortPaths = cohortPaths; - } - - @Override public ListenableFuture canCommit() { - throw new UnsupportedOperationException("canCommit"); - } - - @Override public ListenableFuture preCommit() { - throw new UnsupportedOperationException("preCommit"); - } - - @Override public ListenableFuture abort() { - throw new UnsupportedOperationException("abort"); - } - - @Override public ListenableFuture commit() { - throw new UnsupportedOperationException("commit"); - } - - public List getCohortPaths() { - return Collections.unmodifiableList(this.cohortPaths); - } -}