Tabnine Logo
SetSASLResponse
Code IndexAdd Tabnine to your IDE (free)

How to use
SetSASLResponse
in
org.apache.zookeeper.proto

Best Java code snippets using org.apache.zookeeper.proto.SetSASLResponse (Showing top 14 results out of 315)

origin: apache/zookeeper

private void sendSaslPacket(byte[] saslToken, ClientCnxn cnxn)
 throws SaslException{
  if (LOG.isDebugEnabled()) {
    LOG.debug("ClientCnxn:sendSaslPacket:length="+saslToken.length);
  }
  GetSASLRequest request = new GetSASLRequest();
  request.setToken(saslToken);
  SetSASLResponse response = new SetSASLResponse();
  ServerSaslResponseCallback cb = new ServerSaslResponseCallback();
  try {
    cnxn.sendPacket(request,response,cb, ZooDefs.OpCode.sasl);
  } catch (IOException e) {
    throw new SaslException("Failed to send SASL packet to server.",
      e);
  }
}
origin: apache/zookeeper

public void readFields(java.io.DataInput in) throws java.io.IOException {
 BinaryInputArchive archive = new BinaryInputArchive(in);
 deserialize(archive, "");
}
public int compareTo (Object peer_) throws ClassCastException {
origin: apache/zookeeper

public void write(java.io.DataOutput out) throws java.io.IOException {
 BinaryOutputArchive archive = new BinaryOutputArchive(out);
 serialize(archive, "");
}
public void readFields(java.io.DataInput in) throws java.io.IOException {
origin: apache/zookeeper

private void sendSaslPacket(ClientCnxn cnxn) throws SaslException {
  if (LOG.isDebugEnabled()) {
    LOG.debug("ClientCnxn:sendSaslPacket:length="+saslToken.length);
  }
  GetSASLRequest request = new GetSASLRequest();
  request.setToken(createSaslToken());
  SetSASLResponse response = new SetSASLResponse();
  ServerSaslResponseCallback cb = new ServerSaslResponseCallback();
  try {
    cnxn.sendPacket(request,response,cb, ZooDefs.OpCode.sasl);
  } catch (IOException e) {
    throw new SaslException("Failed to send SASL packet to server due " +
     "to IOException:", e);
  }
}
origin: org.apache.zookeeper/zookeeper

public void readFields(java.io.DataInput in) throws java.io.IOException {
 BinaryInputArchive archive = new BinaryInputArchive(in);
 deserialize(archive, "");
}
public int compareTo (Object peer_) throws ClassCastException {
origin: org.apache.zookeeper/zookeeper

public void write(java.io.DataOutput out) throws java.io.IOException {
 BinaryOutputArchive archive = new BinaryOutputArchive(out);
 serialize(archive, "");
}
public void readFields(java.io.DataInput in) throws java.io.IOException {
origin: apache/zookeeper

return new SetSASLResponse(responseToken);
origin: org.apache.zookeeper/zookeeper

private void sendSaslPacket(byte[] saslToken, ClientCnxn cnxn)
 throws SaslException{
  if (LOG.isDebugEnabled()) {
    LOG.debug("ClientCnxn:sendSaslPacket:length="+saslToken.length);
  }
  GetSASLRequest request = new GetSASLRequest();
  request.setToken(saslToken);
  SetSASLResponse response = new SetSASLResponse();
  ServerSaslResponseCallback cb = new ServerSaslResponseCallback();
  try {
    cnxn.sendPacket(request,response,cb, ZooDefs.OpCode.sasl);
  } catch (IOException e) {
    throw new SaslException("Failed to send SASL packet to server.",
      e);
  }
}
origin: org.apache.zookeeper/zookeeper

private void sendSaslPacket(ClientCnxn cnxn) throws SaslException {
  if (LOG.isDebugEnabled()) {
    LOG.debug("ClientCnxn:sendSaslPacket:length="+saslToken.length);
  }
  GetSASLRequest request = new GetSASLRequest();
  request.setToken(createSaslToken());
  SetSASLResponse response = new SetSASLResponse();
  ServerSaslResponseCallback cb = new ServerSaslResponseCallback();
  try {
    cnxn.sendPacket(request,response,cb, ZooDefs.OpCode.sasl);
  } catch (IOException e) {
    throw new SaslException("Failed to send SASL packet to server due " +
     "to IOException:", e);
  }
}
origin: org.apache.zookeeper/zookeeper

return new SetSASLResponse(responseToken);
origin: jboss-fuse/fabric8

private void sendSaslPacket(byte[] saslToken, ClientCnxn cnxn)
 throws SaslException{
  if (LOG.isDebugEnabled()) {
    LOG.debug("ClientCnxn:sendSaslPacket:length="+saslToken.length);
  }
  GetSASLRequest request = new GetSASLRequest();
  request.setToken(saslToken);
  SetSASLResponse response = new SetSASLResponse();
  ServerSaslResponseCallback cb = new ServerSaslResponseCallback();
  try {
    cnxn.sendPacket(request,response,cb, ZooDefs.OpCode.sasl);
  } catch (IOException e) {
    throw new SaslException("Failed to send SASL packet to server.",
      e);
  }
}
origin: io.fabric8/fabric-zookeeper

private void sendSaslPacket(byte[] saslToken, ClientCnxn cnxn)
    throws SaslException{
  if (LOG.isDebugEnabled()) {
    LOG.debug("ClientCnxn:sendSaslPacket:length="+saslToken.length);
  }
  GetSASLRequest request = new GetSASLRequest();
  request.setToken(saslToken);
  SetSASLResponse response = new SetSASLResponse();
  ServerSaslResponseCallback cb = new ServerSaslResponseCallback();
  try {
    cnxn.sendPacket(request,response,cb, ZooDefs.OpCode.sasl);
  } catch (IOException e) {
    throw new SaslException("Failed to send SASL packet to server.",
        e);
  }
}
origin: jboss-fuse/fabric8

private void sendSaslPacket(ClientCnxn cnxn) throws SaslException {
  if (LOG.isDebugEnabled()) {
    LOG.debug("ClientCnxn:sendSaslPacket:length="+saslToken.length);
  }
  GetSASLRequest request = new GetSASLRequest();
  request.setToken(createSaslToken());
  SetSASLResponse response = new SetSASLResponse();
  ServerSaslResponseCallback cb = new ServerSaslResponseCallback();
  try {
    cnxn.sendPacket(request,response,cb, ZooDefs.OpCode.sasl);
  } catch (IOException e) {
    throw new SaslException("Failed to send SASL packet to server due " +
     "to IOException:", e);
  }
}
origin: io.fabric8/fabric-zookeeper

private void sendSaslPacket(ClientCnxn cnxn) throws SaslException {
  if (LOG.isDebugEnabled()) {
    LOG.debug("ClientCnxn:sendSaslPacket:length="+saslToken.length);
  }
  GetSASLRequest request = new GetSASLRequest();
  request.setToken(createSaslToken());
  SetSASLResponse response = new SetSASLResponse();
  ServerSaslResponseCallback cb = new ServerSaslResponseCallback();
  try {
    cnxn.sendPacket(request,response,cb, ZooDefs.OpCode.sasl);
  } catch (IOException e) {
    throw new SaslException("Failed to send SASL packet to server due " +
        "to IOException:", e);
  }
}
org.apache.zookeeper.protoSetSASLResponse

Most used methods

  • <init>
  • deserialize
  • serialize

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getApplicationContext (Context)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • onCreateOptionsMenu (Activity)
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • JPanel (javax.swing)
  • Table (org.hibernate.mapping)
    A relational table
  • Best plugins for Eclipse
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