2 * Copyright (c) 2016 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
8 package org.opendaylight.controller.cluster.databroker.actors.dds;
10 import org.opendaylight.controller.cluster.access.client.ClientActorContext;
11 import org.opendaylight.controller.cluster.datastore.utils.ActorContext;
12 import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier;
15 * {@link AbstractDataStoreClientBehavior} which connects to a single shard only.
17 * @author Robert Varga
19 final class SimpleDataStoreClientBehavior extends AbstractDataStoreClientBehavior {
21 private static final Long ZERO = Long.valueOf(0);
23 private SimpleDataStoreClientBehavior(final ClientActorContext context,
24 final SimpleShardBackendResolver resolver) {
25 super(context, resolver);
28 SimpleDataStoreClientBehavior(final ClientActorContext context, final ActorContext actorContext,
29 final String shardName) {
30 this(context, new SimpleShardBackendResolver(context.getIdentifier(), actorContext, shardName));
34 Long resolveShardForPath(final YangInstanceIdentifier path) {