2 * Copyright (c) 2014 Cisco 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
9 package org.opendaylight.controller.cluster.datastore;
11 import akka.actor.ActorPath;
12 import com.google.common.util.concurrent.ListenableFuture;
13 import org.opendaylight.controller.sal.core.spi.data.DOMStoreThreePhaseCommitCohort;
15 import java.util.Collections;
16 import java.util.List;
19 * ThreePhaseCommitCohortProxy represents a set of remote cohort proxies
21 public class ThreePhaseCommitCohortProxy implements
22 DOMStoreThreePhaseCommitCohort{
24 private final List<ActorPath> cohortPaths;
26 public ThreePhaseCommitCohortProxy(List<ActorPath> cohortPaths) {
28 this.cohortPaths = cohortPaths;
31 @Override public ListenableFuture<Boolean> canCommit() {
32 throw new UnsupportedOperationException("canCommit");
35 @Override public ListenableFuture<Void> preCommit() {
36 throw new UnsupportedOperationException("preCommit");
39 @Override public ListenableFuture<Void> abort() {
40 throw new UnsupportedOperationException("abort");
43 @Override public ListenableFuture<Void> commit() {
44 throw new UnsupportedOperationException("commit");
47 public List<ActorPath> getCohortPaths() {
48 return Collections.unmodifiableList(this.cohortPaths);