/* * 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); } }