mirror of https://github.com/grpc/grpc-java.git
core,services: move BinaryLog class to grpc-services (#3867)
This commit is contained in:
parent
f1151f91b9
commit
02f56b0218
|
|
@ -83,7 +83,6 @@ final class ClientCallImpl<ReqT, RespT> extends ClientCall<ReqT, RespT> {
|
||||||
private boolean fullStreamDecompression;
|
private boolean fullStreamDecompression;
|
||||||
private DecompressorRegistry decompressorRegistry = DecompressorRegistry.getDefaultInstance();
|
private DecompressorRegistry decompressorRegistry = DecompressorRegistry.getDefaultInstance();
|
||||||
private CompressorRegistry compressorRegistry = CompressorRegistry.getDefaultInstance();
|
private CompressorRegistry compressorRegistry = CompressorRegistry.getDefaultInstance();
|
||||||
private final BinaryLog binlog;
|
|
||||||
|
|
||||||
ClientCallImpl(
|
ClientCallImpl(
|
||||||
MethodDescriptor<ReqT, RespT> method, Executor executor, CallOptions callOptions,
|
MethodDescriptor<ReqT, RespT> method, Executor executor, CallOptions callOptions,
|
||||||
|
|
@ -105,7 +104,6 @@ final class ClientCallImpl<ReqT, RespT> extends ClientCall<ReqT, RespT> {
|
||||||
this.callOptions = callOptions;
|
this.callOptions = callOptions;
|
||||||
this.clientTransportProvider = clientTransportProvider;
|
this.clientTransportProvider = clientTransportProvider;
|
||||||
this.deadlineCancellationExecutor = deadlineCancellationExecutor;
|
this.deadlineCancellationExecutor = deadlineCancellationExecutor;
|
||||||
this.binlog = BinaryLog.getLog(method.getFullMethodName());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private final class ContextCancellationListener implements CancellationListener {
|
private final class ContextCancellationListener implements CancellationListener {
|
||||||
|
|
|
||||||
|
|
@ -54,7 +54,6 @@ final class ServerCallImpl<ReqT, RespT> extends ServerCall<ReqT, RespT> {
|
||||||
private final byte[] messageAcceptEncoding;
|
private final byte[] messageAcceptEncoding;
|
||||||
private final DecompressorRegistry decompressorRegistry;
|
private final DecompressorRegistry decompressorRegistry;
|
||||||
private final CompressorRegistry compressorRegistry;
|
private final CompressorRegistry compressorRegistry;
|
||||||
private final BinaryLog binlog;
|
|
||||||
|
|
||||||
// state
|
// state
|
||||||
private volatile boolean cancelled;
|
private volatile boolean cancelled;
|
||||||
|
|
@ -72,7 +71,6 @@ final class ServerCallImpl<ReqT, RespT> extends ServerCall<ReqT, RespT> {
|
||||||
this.messageAcceptEncoding = inboundHeaders.get(MESSAGE_ACCEPT_ENCODING_KEY);
|
this.messageAcceptEncoding = inboundHeaders.get(MESSAGE_ACCEPT_ENCODING_KEY);
|
||||||
this.decompressorRegistry = decompressorRegistry;
|
this.decompressorRegistry = decompressorRegistry;
|
||||||
this.compressorRegistry = compressorRegistry;
|
this.compressorRegistry = compressorRegistry;
|
||||||
binlog = BinaryLog.getLog(method.getFullMethodName());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package io.grpc.internal;
|
package io.grpc.services;
|
||||||
|
|
||||||
import com.google.common.annotations.VisibleForTesting;
|
import com.google.common.annotations.VisibleForTesting;
|
||||||
import com.google.common.base.Objects;
|
import com.google.common.base.Objects;
|
||||||
|
|
@ -14,12 +14,12 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package io.grpc.internal;
|
package io.grpc.services;
|
||||||
|
|
||||||
import static org.junit.Assert.assertEquals;
|
import static org.junit.Assert.assertEquals;
|
||||||
import static org.junit.Assert.assertNull;
|
import static org.junit.Assert.assertNull;
|
||||||
|
|
||||||
import io.grpc.internal.BinaryLog.FactoryImpl;
|
import io.grpc.services.BinaryLog.FactoryImpl;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
import org.junit.runner.RunWith;
|
import org.junit.runner.RunWith;
|
||||||
import org.junit.runners.JUnit4;
|
import org.junit.runners.JUnit4;
|
||||||
Loading…
Reference in New Issue