X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fcds-access-api%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Faccess%2Fcommands%2FAbstractLocalHistoryRequestProxy.java;fp=opendaylight%2Fmd-sal%2Fcds-access-api%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Faccess%2Fcommands%2FAbstractLocalHistoryRequestProxy.java;h=0fbeecc02336fbc19bbb514c9404869261de6aca;hb=98d1c5606bad9633ce5549bcd691a98c75abdf6a;hp=0000000000000000000000000000000000000000;hpb=e6b9c7e282a526aeb1469b6f7aa9b61f69d01743;p=controller.git diff --git a/opendaylight/md-sal/cds-access-api/src/main/java/org/opendaylight/controller/cluster/access/commands/AbstractLocalHistoryRequestProxy.java b/opendaylight/md-sal/cds-access-api/src/main/java/org/opendaylight/controller/cluster/access/commands/AbstractLocalHistoryRequestProxy.java new file mode 100644 index 0000000000..0fbeecc023 --- /dev/null +++ b/opendaylight/md-sal/cds-access-api/src/main/java/org/opendaylight/controller/cluster/access/commands/AbstractLocalHistoryRequestProxy.java @@ -0,0 +1,37 @@ +/* + * 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.access.commands; + +import java.io.DataInput; +import java.io.IOException; +import org.opendaylight.controller.cluster.access.concepts.AbstractRequestProxy; +import org.opendaylight.controller.cluster.access.concepts.LocalHistoryIdentifier; + +/** + * Abstract base class for serialization proxies associated with {@link LocalHistoryRequest}s. + * + * @author Robert Varga + * + * @param Message type + */ +abstract class AbstractLocalHistoryRequestProxy> extends AbstractRequestProxy { + private static final long serialVersionUID = 1L; + + AbstractLocalHistoryRequestProxy() { + // For Externalizable + } + + AbstractLocalHistoryRequestProxy(final T request) { + super(request); + } + + @Override + protected final LocalHistoryIdentifier readTarget(final DataInput in) throws IOException { + return LocalHistoryIdentifier.readFrom(in); + } +}