/* * 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.raft.messages; public class InstallSnapshot extends AbstractRaftRPC { private final String leaderId; private final long lastIncludedIndex; private final long lastIncludedTerm; private final Object data; public InstallSnapshot(long term, String leaderId, long lastIncludedIndex, long lastIncludedTerm, Object data) { super(term); this.leaderId = leaderId; this.lastIncludedIndex = lastIncludedIndex; this.lastIncludedTerm = lastIncludedTerm; this.data = data; } public String getLeaderId() { return leaderId; } public long getLastIncludedIndex() { return lastIncludedIndex; } public long getLastIncludedTerm() { return lastIncludedTerm; } public Object getData() { return data; } }