Improve segmented journal actor metrics
[controller.git] / opendaylight / md-sal / sal-clustering-commons / src / main / java / org / opendaylight / controller / cluster / datastore / node / utils / stream / CompatNormalizedNodeDataOutput.java
1 /*
2  * Copyright (c) 2019 PANTHEON.tech, s.r.o. and others.  All rights reserved.
3  *
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
7  */
8 package org.opendaylight.controller.cluster.datastore.node.utils.stream;
9
10 import static java.util.Objects.requireNonNull;
11
12 import com.google.common.collect.ForwardingObject;
13 import java.io.IOException;
14 import org.opendaylight.yangtools.yang.common.QName;
15 import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier;
16 import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.PathArgument;
17 import org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode;
18 import org.opendaylight.yangtools.yang.model.api.SchemaPath;
19
20 @Deprecated
21 final class CompatNormalizedNodeDataOutput extends ForwardingObject implements NormalizedNodeDataOutput {
22     private final org.opendaylight.yangtools.yang.data.codec.binfmt.NormalizedNodeDataOutput delegate;
23
24     CompatNormalizedNodeDataOutput(
25         final org.opendaylight.yangtools.yang.data.codec.binfmt.NormalizedNodeDataOutput delegate) {
26         this.delegate = requireNonNull(delegate);
27     }
28
29     @Override
30     @SuppressWarnings("checkstyle:parameterName")
31     public void write(final int b) throws IOException {
32         delegate.write(b);
33     }
34
35     @Override
36     @SuppressWarnings("checkstyle:parameterName")
37     public void write(final byte[] b) throws IOException {
38         delegate.write(b);
39     }
40
41     @Override
42     @SuppressWarnings("checkstyle:parameterName")
43     public void write(final byte[] b, final int off, final int len) throws IOException {
44         delegate.write(b, off, len);
45     }
46
47     @Override
48     @SuppressWarnings("checkstyle:parameterName")
49     public void writeBoolean(final boolean v) throws IOException {
50         delegate.writeBoolean(v);
51     }
52
53     @Override
54     @SuppressWarnings("checkstyle:parameterName")
55     public void writeByte(final int v) throws IOException {
56         delegate.writeByte(v);
57     }
58
59     @Override
60     @SuppressWarnings("checkstyle:parameterName")
61     public void writeShort(final int v) throws IOException {
62         delegate.writeShort(v);
63     }
64
65     @Override
66     @SuppressWarnings("checkstyle:parameterName")
67     public void writeChar(final int v) throws IOException {
68         delegate.writeChar(v);
69     }
70
71     @Override
72     @SuppressWarnings("checkstyle:parameterName")
73     public void writeInt(final int v) throws IOException {
74         delegate.writeInt(v);
75     }
76
77     @Override
78     @SuppressWarnings("checkstyle:parameterName")
79     public void writeLong(final long v) throws IOException {
80         delegate.writeLong(v);
81     }
82
83     @Override
84     @SuppressWarnings("checkstyle:parameterName")
85     public void writeFloat(final float v) throws IOException {
86         delegate.writeFloat(v);
87     }
88
89     @Override
90     @SuppressWarnings("checkstyle:parameterName")
91     public void writeDouble(final double v) throws IOException {
92         delegate.writeDouble(v);
93     }
94
95     @Override
96     @SuppressWarnings("checkstyle:parameterName")
97     public void writeBytes(final String s) throws IOException {
98         delegate.writeBytes(s);
99     }
100
101     @Override
102     @SuppressWarnings("checkstyle:parameterName")
103     public void writeChars(final String s) throws IOException {
104         delegate.writeChars(s);
105     }
106
107     @Override
108     @SuppressWarnings("checkstyle:parameterName")
109     public void writeUTF(final String s) throws IOException {
110         delegate.writeUTF(s);
111     }
112
113     @Override
114     public void writeQName(final QName qname) throws IOException {
115         delegate.writeQName(qname);
116     }
117
118     @Override
119     public void writeNormalizedNode(final NormalizedNode<?, ?> normalizedNode) throws IOException {
120         delegate.writeNormalizedNode(normalizedNode);
121     }
122
123     @Override
124     public void writePathArgument(final PathArgument pathArgument) throws IOException {
125         delegate.writePathArgument(pathArgument);
126     }
127
128     @Override
129     public void writeYangInstanceIdentifier(final YangInstanceIdentifier identifier) throws IOException {
130         delegate.writeYangInstanceIdentifier(identifier);
131     }
132
133     @Override
134     public void writeSchemaPath(final SchemaPath path) throws IOException {
135         delegate.writeSchemaPath(path);
136     }
137
138     @Override
139     public void close() throws IOException {
140         delegate.close();
141     }
142
143     @Override
144     protected Object delegate() {
145         return delegate;
146     }
147 }