Tabnine Logo
org.apache.avro.ipc
Code IndexAdd Tabnine to your IDE (free)

How to use org.apache.avro.ipc

Best Java code snippets using org.apache.avro.ipc (Showing top 20 results out of 315)

origin: apache/avro

@Override protected Transceiver getTransceiver(SocketChannel channel)
 throws IOException {
 return new SaslSocketTransceiver(channel, factory.getServer());
}
origin: apache/avro

/**
 * Called by {@link Requestor#request(String,Object,Callback)} for two-way messages using callbacks.
 */
public void transceive(List<ByteBuffer> request, Callback<List<ByteBuffer>> callback)
 throws IOException {
 // The default implementation works synchronously
 try {
  List<ByteBuffer> response = transceive(request);
  callback.handleResult(response);
 } catch (IOException e) {
  callback.handleError(e);
 }
}
origin: apache/avro

@Override
public List<ByteBuffer> transceive(List<ByteBuffer> request)
  throws IOException {
 return responder.respond(request);
}
origin: apache/avro

@Override
public String hello(String greeting) throws AvroRemoteException {
 releaseEnterPermit();
 acquireRunPermit();
 try {
  return super.hello(greeting);
 } finally {
  releaseRunPermit();
 }
}
origin: apache/avro

@Override
public int add(int arg1, int arg2) throws AvroRemoteException {
 releaseEnterPermit();
 acquireRunPermit();
 try {
  return super.add(arg1, arg2);
 } finally {
  releaseRunPermit();
 }
}
origin: apache/avro

@Override
public TestRecord echo(TestRecord record) throws AvroRemoteException {
 releaseEnterPermit();
 acquireRunPermit();
 try {
  return super.echo(record);
 } finally {
  releaseRunPermit();
 }
}
origin: apache/avro

@Override
public void ack() {
 releaseEnterPermit();
 acquireRunPermit();
 try {
  super.ack();
 } finally {
  releaseRunPermit();
 }
}
origin: apache/avro

@Override
public ByteBuffer echoBytes(ByteBuffer data) throws AvroRemoteException {
 releaseEnterPermit();
 acquireRunPermit();
 try {
  return super.echoBytes(data);
 } finally {
  releaseRunPermit();
 }
}
origin: apache/avro

@Override
public void error() throws AvroRemoteException, TestError {
 releaseEnterPermit();
 acquireRunPermit();
 try {
  super.error();
 } finally {
  releaseRunPermit();
 }
}
origin: apache/avro

/**
 * Sets the value of the 'clientHash' field.
 * @param value The value of 'clientHash'.
 * @return This builder.
 */
public org.apache.avro.ipc.HandshakeRequest.Builder setClientHash(org.apache.avro.ipc.MD5 value) {
 validate(fields()[0], value);
 this.clientHash = value;
 fieldSetFlags()[0] = true;
 return this;
}
origin: apache/avro

/**
 * Creates a new HandshakeRequest RecordBuilder by copying an existing Builder.
 * @param other The existing builder to copy.
 * @return A new HandshakeRequest RecordBuilder
 */
public static org.apache.avro.ipc.HandshakeRequest.Builder newBuilder(org.apache.avro.ipc.HandshakeRequest.Builder other) {
 if (other == null) {
  return new org.apache.avro.ipc.HandshakeRequest.Builder();
 } else {
  return new org.apache.avro.ipc.HandshakeRequest.Builder(other);
 }
}
origin: apache/avro

/**
 * Checks whether the 'serverHash' field has been set.
 * @return True if the 'serverHash' field has been set, false otherwise.
 */
public boolean hasServerHash() {
 return fieldSetFlags()[2];
}
origin: apache/avro

/**
 * Clears the value of the 'match' field.
 * @return This builder.
 */
public org.apache.avro.ipc.HandshakeResponse.Builder clearMatch() {
 match = null;
 fieldSetFlags()[0] = false;
 return this;
}
origin: apache/avro

/** Create using SASL's anonymous (<a
 * href="http://www.ietf.org/rfc/rfc2245.txt">RFC 2245) mechanism. */
public SaslSocketTransceiver(SocketAddress address) throws IOException {
 this(address, new AnonymousClient());
}
origin: apache/avro

/**
 * Creates a new HandshakeResponse RecordBuilder.
 * @return A new HandshakeResponse RecordBuilder
 */
public static org.apache.avro.ipc.HandshakeResponse.Builder newBuilder() {
 return new org.apache.avro.ipc.HandshakeResponse.Builder();
}
origin: apache/avro

@Override
public void handleResult(TestRecord result) {
 future2.handleResult(result);
}
@Override
origin: apache/avro

 @Override
 public void handleError(Throwable error) {
  future2.handleError(error);
 }
});
origin: apache/avro

/**
 * Creates a new HandshakeRequest RecordBuilder by copying an existing HandshakeRequest instance.
 * @param other The existing instance to copy.
 * @return A new HandshakeRequest RecordBuilder
 */
public static org.apache.avro.ipc.HandshakeRequest.Builder newBuilder(org.apache.avro.ipc.HandshakeRequest other) {
 if (other == null) {
  return new org.apache.avro.ipc.HandshakeRequest.Builder();
 } else {
  return new org.apache.avro.ipc.HandshakeRequest.Builder(other);
 }
}
origin: apache/avro

/**
 * Clears the value of the 'serverHash' field.
 * @return This builder.
 */
public org.apache.avro.ipc.HandshakeRequest.Builder clearServerHash() {
 serverHash = null;
 fieldSetFlags()[2] = false;
 return this;
}
origin: apache/avro

/**
 * Clears the value of the 'meta' field.
 * @return This builder.
 */
public org.apache.avro.ipc.HandshakeResponse.Builder clearMeta() {
 meta = null;
 fieldSetFlags()[3] = false;
 return this;
}
org.apache.avro.ipc

Most used classes

  • Server
    A server listening on a port.
  • SpecificResponder
    org.apache.avro.ipc.Responder for generated interfaces.
  • NettyServer
    A Netty-based RPC Server implementation.
  • NettyTransceiver
    A Netty-based Transceiver implementation.
  • SpecificRequestor
    org.apache.avro.ipc.Requestor for generated interfaces.
  • Transceiver,
  • HttpTransceiver,
  • HandshakeRequest,
  • MD5,
  • SocketServer,
  • CallFuture,
  • DatagramServer,
  • DatagramTransceiver,
  • HandshakeResponse,
  • RPCContext,
  • Requestor,
  • Responder,
  • SaslSocketServer,
  • SaslSocketTransceiver
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now