/* * Copyright (c) 2015 Dell 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 com.google.common.base.Preconditions; import java.io.Serializable; import java.util.ArrayList; import java.util.List; import javax.annotation.Nonnull; /** * Persisted data of the ShardManager */ public class ShardManagerSnapshot implements Serializable { private static final long serialVersionUID = 1L; private final List shardList; public ShardManagerSnapshot(@Nonnull List shardList) { this.shardList = new ArrayList<>(Preconditions.checkNotNull(shardList)); } public List getShardList() { return this.shardList; } @Override public String toString() { return "ShardManagerSnapshot [ShardList = " + shardList + " ]"; } }