congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
JoinRsp.getFailReason
Code IndexAdd Tabnine to your IDE (free)

How to use
getFailReason
method
in
org.jgroups.protocols.pbcast.JoinRsp

Best Java code snippets using org.jgroups.protocols.pbcast.JoinRsp.getFailReason (Showing top 3 results out of 315)

origin: wildfly/wildfly

protected boolean isJoinResponseValid(final JoinRsp rsp) {
  if(rsp.getFailReason() != null)
    throw new SecurityException(rsp.getFailReason());
  Digest tmp_digest=rsp.getDigest();
  if(tmp_digest == null || tmp_digest.capacity() == 0) {
    log.warn("%s: digest is empty: digest=%s", gms.local_addr, rsp.getDigest());
    return false;
  }
  if(!tmp_digest.contains(gms.local_addr)) {
    log.error("%s: digest in JOIN_RSP does not contain myself; join response: %s", gms.local_addr, rsp);
    return false;
  }
  if(rsp.getView() == null) {
    log.error("%s: JoinRsp has a null view, skipping it", gms.local_addr);
    return false;
  }
  return true;
}
origin: org.jboss.eap/wildfly-client-all

protected boolean isJoinResponseValid(final JoinRsp rsp) {
  if(rsp.getFailReason() != null)
    throw new SecurityException(rsp.getFailReason());
  Digest tmp_digest=rsp.getDigest();
  if(tmp_digest == null || tmp_digest.capacity() == 0) {
    log.warn("%s: digest is empty: digest=%s", gms.local_addr, rsp.getDigest());
    return false;
  }
  if(!tmp_digest.contains(gms.local_addr)) {
    log.error("%s: digest in JOIN_RSP does not contain myself; join response: %s", gms.local_addr, rsp);
    return false;
  }
  if(rsp.getView() == null) {
    log.error("%s: JoinRsp has a null view, skipping it", gms.local_addr);
    return false;
  }
  return true;
}
origin: org.jgroups/com.springsource.org.jgroups

String failure=rsp.getFailReason();
if(failure != null)
  throw new SecurityException(failure);
org.jgroups.protocols.pbcastJoinRspgetFailReason

Popular methods of JoinRsp

  • <init>
  • getDigest
  • getView
  • serializedSize

Popular in Java

  • Finding current android device location
  • compareTo (BigDecimal)
  • setContentView (Activity)
  • onRequestPermissionsResult (Fragment)
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • JList (javax.swing)
  • From CI to AI: The AI layer in your organization
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