public AsyncRpcServer(final Class<?> protocol, final Object instance, final InetSocketAddress bindAddress, final int threads) throws Exception { super(protocol.getSimpleName(), bindAddress); String serviceClassName = protocol.getName() + "$" + protocol.getSimpleName() + "Service"; Class<?> serviceClass = Class.forName(serviceClassName); Class<?> interfaceClass = Class.forName(serviceClassName + "$Interface"); Method method = serviceClass.getMethod("newReflectiveService", interfaceClass); this.service = (Service) method.invoke(null, instance); this.initializer = new ProtoServerChannelInitializer(new ServerHandler(), RpcRequest.getDefaultInstance()); super.init(this.initializer, threads); }
public AsyncRpcServer(final Class<?> protocol, final Object instance, final InetSocketAddress bindAddress, final int workerNum) throws Exception { super(protocol.getSimpleName(), bindAddress); String serviceClassName = protocol.getName() + "$" + protocol.getSimpleName() + "Service"; Class<?> serviceClass = Class.forName(serviceClassName); Class<?> interfaceClass = Class.forName(serviceClassName + "$Interface"); Method method = serviceClass.getMethod("newReflectiveService", interfaceClass); this.service = (Service) method.invoke(null, instance); this.initializer = new ProtoChannelInitializer(new ServerHandler(), RpcRequest.getDefaultInstance()); super.init(this.initializer, workerNum); }
public AsyncRpcServer(final Class<?> protocol, final Object instance, final InetSocketAddress bindAddress, final int threads) throws Exception { super(protocol.getSimpleName(), bindAddress); String serviceClassName = protocol.getName() + "$" + protocol.getSimpleName() + "Service"; Class<?> serviceClass = Class.forName(serviceClassName); Class<?> interfaceClass = Class.forName(serviceClassName + "$Interface"); Method method = serviceClass.getMethod("newReflectiveService", interfaceClass); this.service = (Service) method.invoke(null, instance); this.initializer = new ProtoServerChannelInitializer(new ServerHandler(), RpcRequest.getDefaultInstance()); super.init(this.initializer, threads); }
public BlockingRpcServer(final Class<?> protocol, final Object instance, final InetSocketAddress bindAddress, final int threads) throws Exception { super(protocol.getSimpleName(), bindAddress); String serviceClassName = protocol.getName() + "$" + protocol.getSimpleName() + "Service"; Class<?> serviceClass = Class.forName(serviceClassName); Class<?> interfaceClass = Class.forName(serviceClassName + "$BlockingInterface"); Method method = serviceClass.getMethod( "newReflectiveBlockingService", interfaceClass); this.service = (BlockingService) method.invoke(null, instance); this.initializer = new ProtoServerChannelInitializer(new ServerHandler(), RpcRequest.getDefaultInstance()); super.init(this.initializer, threads); }
public BlockingRpcServer(final Class<?> protocol, final Object instance, final InetSocketAddress bindAddress, final int workerNum) throws Exception { super(protocol.getSimpleName(), bindAddress); String serviceClassName = protocol.getName() + "$" + protocol.getSimpleName() + "Service"; Class<?> serviceClass = Class.forName(serviceClassName); Class<?> interfaceClass = Class.forName(serviceClassName + "$BlockingInterface"); Method method = serviceClass.getMethod( "newReflectiveBlockingService", interfaceClass); this.service = (BlockingService) method.invoke(null, instance); this.initializer = new ProtoChannelInitializer(new ServerHandler(), RpcRequest.getDefaultInstance()); super.init(this.initializer, workerNum); }
public BlockingRpcServer(final Class<?> protocol, final Object instance, final InetSocketAddress bindAddress, final int threads) throws Exception { super(protocol.getSimpleName(), bindAddress); String serviceClassName = protocol.getName() + "$" + protocol.getSimpleName() + "Service"; Class<?> serviceClass = Class.forName(serviceClassName); Class<?> interfaceClass = Class.forName(serviceClassName + "$BlockingInterface"); Method method = serviceClass.getMethod( "newReflectiveBlockingService", interfaceClass); this.service = (BlockingService) method.invoke(null, instance); this.initializer = new ProtoServerChannelInitializer(new ServerHandler(), RpcRequest.getDefaultInstance()); super.init(this.initializer, threads); }
public Builder mergeFrom(org.apache.tajo.rpc.RpcProtos.RpcRequest other) { if (other == org.apache.tajo.rpc.RpcProtos.RpcRequest.getDefaultInstance()) return this; if (other.hasId()) { setId(other.getId()); } if (other.hasMethodName()) { bitField0_ |= 0x00000002; methodName_ = other.methodName_; onChanged(); } if (other.hasRequestMessage()) { setRequestMessage(other.getRequestMessage()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
public Builder mergeFrom(org.apache.tajo.rpc.RpcProtos.RpcRequest other) { if (other == org.apache.tajo.rpc.RpcProtos.RpcRequest.getDefaultInstance()) return this; if (other.hasId()) { setId(other.getId()); } if (other.hasMethodName()) { bitField0_ |= 0x00000002; methodName_ = other.methodName_; onChanged(); } if (other.hasRequestMessage()) { setRequestMessage(other.getRequestMessage()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
public Builder mergeFrom(org.apache.tajo.rpc.RpcProtos.RpcRequest other) { if (other == org.apache.tajo.rpc.RpcProtos.RpcRequest.getDefaultInstance()) return this; if (other.hasId()) { setId(other.getId()); } if (other.hasMethodName()) { bitField0_ |= 0x00000002; methodName_ = other.methodName_; onChanged(); } if (other.hasRequestMessage()) { setRequestMessage(other.getRequestMessage()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
public org.apache.tajo.rpc.RpcProtos.RpcRequest getDefaultInstanceForType() { return org.apache.tajo.rpc.RpcProtos.RpcRequest.getDefaultInstance(); }
public org.apache.tajo.rpc.RpcProtos.RpcRequest getDefaultInstanceForType() { return org.apache.tajo.rpc.RpcProtos.RpcRequest.getDefaultInstance(); }
public org.apache.tajo.rpc.RpcProtos.RpcRequest getDefaultInstanceForType() { return org.apache.tajo.rpc.RpcProtos.RpcRequest.getDefaultInstance(); }
/** * <code>optional bytes request_message = 3;</code> */ public Builder clearRequestMessage() { bitField0_ = (bitField0_ & ~0x00000004); requestMessage_ = getDefaultInstance().getRequestMessage(); onChanged(); return this; }
/** * <code>optional bytes request_message = 3;</code> */ public Builder clearRequestMessage() { bitField0_ = (bitField0_ & ~0x00000004); requestMessage_ = getDefaultInstance().getRequestMessage(); onChanged(); return this; }
/** * <code>required string method_name = 2;</code> */ public Builder clearMethodName() { bitField0_ = (bitField0_ & ~0x00000002); methodName_ = getDefaultInstance().getMethodName(); onChanged(); return this; } /**
/** * <code>required string method_name = 2;</code> */ public Builder clearMethodName() { bitField0_ = (bitField0_ & ~0x00000002); methodName_ = getDefaultInstance().getMethodName(); onChanged(); return this; } /**
/** * <code>optional bytes request_message = 3;</code> */ public Builder clearRequestMessage() { bitField0_ = (bitField0_ & ~0x00000004); requestMessage_ = getDefaultInstance().getRequestMessage(); onChanged(); return this; }
/** * <code>required string method_name = 2;</code> */ public Builder clearMethodName() { bitField0_ = (bitField0_ & ~0x00000002); methodName_ = getDefaultInstance().getMethodName(); onChanged(); return this; } /**