2 * Copyright (c) 2014 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
9 package org.opendaylight.controller.cluster.datastore.messages;
11 import java.io.IOException;
12 import java.io.ObjectInput;
13 import java.io.ObjectOutput;
14 import org.opendaylight.controller.cluster.datastore.DataStoreVersions;
16 @Deprecated(since = "9.0.0", forRemoval = true)
17 public class ReadyTransactionReply extends VersionedExternalizableMessage {
18 private static final long serialVersionUID = 1L;
20 private String cohortPath;
22 public ReadyTransactionReply() {
25 public ReadyTransactionReply(final String cohortPath) {
26 this(cohortPath, DataStoreVersions.CURRENT_VERSION);
29 public ReadyTransactionReply(final String cohortPath, final short version) {
31 this.cohortPath = cohortPath;
34 public String getCohortPath() {
39 public void readExternal(final ObjectInput in) throws IOException, ClassNotFoundException {
40 super.readExternal(in);
41 cohortPath = in.readUTF();
45 public void writeExternal(final ObjectOutput out) throws IOException {
46 super.writeExternal(out);
47 out.writeUTF(cohortPath);
50 public static ReadyTransactionReply fromSerializable(final Object serializable) {
51 return (ReadyTransactionReply)serializable;
54 public static boolean isSerializedType(final Object message) {
55 return message instanceof ReadyTransactionReply;