congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
JoinRsp.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.jgroups.protocols.pbcast.JoinRsp
constructor

Best Java code snippets using org.jgroups.protocols.pbcast.JoinRsp.<init> (Showing top 8 results out of 315)

origin: wildfly/wildfly

protected void sendJoinRejectionMessage(Address dest, String error_msg) {
  if (dest == null)
    return;
  JoinRsp joinRes = new JoinRsp(error_msg); // specify the error message on the JoinRsp
  Message msg = new Message(dest).putHeader(GMS_ID, new GmsHeader(GmsHeader.JOIN_RSP)).setBuffer(
      GMS.marshal(joinRes));
  down_prot.down(msg);
}
origin: wildfly/wildfly

protected void sendJoinRejectionMessage(Address dest, String error_msg) {
  if(dest == null)
    return;
  JoinRsp joinRes=new JoinRsp(error_msg); // specify the error message on the JoinRsp
  Message msg = new Message(dest).putHeader(GMS_ID, new GMS.GmsHeader(GMS.GmsHeader.JOIN_RSP))
   .setBuffer(GMS.marshal(joinRes));
  if(this.authenticate_coord)
    msg.putHeader(this.id, new AuthHeader(this.auth_token));
  down_prot.down(msg);
}
origin: wildfly/wildfly

Tuple<View,Digest> tuple=gms.getViewAndDigest();
if(tuple != null)
  gms.sendJoinResponse(new JoinRsp(tuple.getVal1(), tuple.getVal2()), mbr);
else
  log.warn("%s: did not find a digest matching view %s; dropping JOIN-RSP", gms.local_addr, gms.view);
  join_rsp=new JoinRsp(new_view, join_digest);
else
  log.warn("%s: digest does not match view (missing seqnos for %s); dropping JOIN-RSP",
origin: org.jgroups/com.springsource.org.jgroups

/**
 * Used to create a failed JOIN_RSP message to pass back down the stack
 * @param joiner The Address of the requesting member
 * @param message The failure message to send back to the joiner
 * @return An Event containing a GmsHeader with a JoinRsp object
 */
private Event createFailureEvent(Address joiner, String message){
  Message msg = new Message(joiner, null, null);
  if(log.isDebugEnabled()){
    log.debug("Creating JoinRsp with failure message - " + message);
  }
  JoinRsp joinRes = new JoinRsp(message);
  //need to specify the error message on the JoinRsp object once it's been changed
  GMS.GmsHeader gmsHeader = new GMS.GmsHeader(GMS.GmsHeader.JOIN_RSP, joinRes);
  msg.putHeader(GMS.name, gmsHeader);
  if(log.isDebugEnabled()){
    log.debug("GMSHeader created for failure JOIN_RSP");
  }
  return new Event(Event.MSG, msg);
}
origin: org.jboss.eap/wildfly-client-all

protected void sendJoinRejectionMessage(Address dest, String error_msg) {
  if (dest == null)
    return;
  JoinRsp joinRes = new JoinRsp(error_msg); // specify the error message on the JoinRsp
  Message msg = new Message(dest).putHeader(GMS_ID, new GmsHeader(GmsHeader.JOIN_RSP)).setBuffer(
      GMS.marshal(joinRes));
  down_prot.down(msg);
}
origin: org.jgroups/com.springsource.org.jgroups

if(log.isWarnEnabled())
  log.warn(mbr + " already present; returning existing view " + gms.view);
JoinRsp join_rsp=new JoinRsp(new View(gms.view_id, gms.members.getMembers()), gms.getDigest());
sendJoinResponse(join_rsp, mbr);
it.remove();
    join_digest.add((Address)i.next(), 0, 0); // ... and add the new members. their first seqno will be 1
join_rsp=new JoinRsp(new_view, join_digest != null? join_digest.copy() : null);
origin: org.jboss.eap/wildfly-client-all

protected void sendJoinRejectionMessage(Address dest, String error_msg) {
  if(dest == null)
    return;
  JoinRsp joinRes=new JoinRsp(error_msg); // specify the error message on the JoinRsp
  Message msg = new Message(dest).putHeader(GMS_ID, new GMS.GmsHeader(GMS.GmsHeader.JOIN_RSP))
   .setBuffer(GMS.marshal(joinRes));
  if(this.authenticate_coord)
    msg.putHeader(this.id, new AuthHeader(this.auth_token));
  down_prot.down(msg);
}
origin: org.jboss.eap/wildfly-client-all

Tuple<View,Digest> tuple=gms.getViewAndDigest();
if(tuple != null)
  gms.sendJoinResponse(new JoinRsp(tuple.getVal1(), tuple.getVal2()), mbr);
else
  log.warn("%s: did not find a digest matching view %s; dropping JOIN-RSP", gms.local_addr, gms.view);
  join_rsp=new JoinRsp(new_view, join_digest);
else
  log.warn("%s: digest does not match view (missing seqnos for %s); dropping JOIN-RSP",
org.jgroups.protocols.pbcastJoinRsp<init>

Popular methods of JoinRsp

  • getDigest
  • getFailReason
  • getView
  • serializedSize

Popular in Java

  • Making http requests using okhttp
  • compareTo (BigDecimal)
  • getApplicationContext (Context)
  • notifyDataSetChanged (ArrayAdapter)
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • Top 15 Vim Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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