/* * Copyright (c) 2016 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.sharding.messages; import com.google.common.annotations.Beta; import com.google.common.base.Preconditions; import java.io.Serializable; import org.opendaylight.controller.cluster.datastore.config.PrefixShardConfiguration; import org.opendaylight.controller.cluster.sharding.ShardedDataTreeActor; /** * Sent to the local {@link ShardedDataTreeActor} when there was a shard created * on the local node. The local actor should notify the remote actors with {@link PrefixShardCreated} which should * create the required frontend/backend shards. */ @Beta public class CreatePrefixShard implements Serializable { private static final long serialVersionUID = 1L; private final PrefixShardConfiguration configuration; public CreatePrefixShard(final PrefixShardConfiguration configuration) { this.configuration = Preconditions.checkNotNull(configuration); } public PrefixShardConfiguration getConfiguration() { return configuration; } }