congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
CoordGmsImpl
Code IndexAdd Tabnine to your IDE (free)

How to use
CoordGmsImpl
in
org.jgroups.protocols.pbcast

Best Java code snippets using org.jgroups.protocols.pbcast.CoordGmsImpl (Showing top 20 results out of 315)

origin: wildfly/wildfly

public void becomeCoordinator() {
  CoordGmsImpl tmp=(CoordGmsImpl)impls.get(COORD);
  if(tmp == null) {
    tmp=new CoordGmsImpl(this);
    impls.put(COORD, tmp);
  }
  try {
    first_view_sent=false;
    tmp.init();
  }
  catch(Exception e) {
    log.error(Util.getMessage("ExceptionSwitchingToCoordinatorRole"), e);
  }
  setImpl(tmp);
}
origin: wildfly/wildfly

public void suspect(Address mbr) {
  if(mbr.equals(gms.local_addr)) {
    if(log.isWarnEnabled()) log.warn("I am the coord and I'm suspected -- will probably leave shortly");
    return;
  }        
  Collection<Request> suspected=new LinkedHashSet<>(1);
  suspected.add(new Request(Request.SUSPECT,mbr));
  handleMembershipChange(suspected);
}
origin: wildfly/wildfly

public void join(Address mbr,boolean useFlushIfPresent) {
  wrongMethod("join");
}

origin: org.jgroups/com.springsource.org.jgroups

    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();
sendLeaveResponses(leaving_mbrs); // no-op if no leaving members
     log.warn("GMS flush by coordinator at " + gms.getLocalAddress() + " failed");
  sendJoinResponses(join_rsp, new_mbrs); // might be a no-op if no joining members
  gms.castViewChangeWithDest(new_view, null, tmp_mbrs);
  sendJoinResponses(join_rsp, new_mbrs); // Return result to newly joined clients (if there are any)
origin: wildfly/wildfly

  sendLeaveResponses(leaving_mbrs); // we still have to send potential leave responses
sendLeaveResponses(leaving_mbrs); // no-op if no leaving members
origin: wildfly/wildfly

@ManagedOperation(description="Fetches digests from all members and installs them, unblocking blocked members")
public void fixDigests() {
  if(impl instanceof CoordGmsImpl)
    ((CoordGmsImpl)impl).fixDigests();
}
origin: wildfly/wildfly

public MergeId _getMergeId() {
  return impl instanceof CoordGmsImpl? ((CoordGmsImpl)impl).getMergeId() : null;
}
origin: wildfly/wildfly

/** The coordinator itself wants to leave the group */
public void leave(Address mbr) {
  if(mbr == null) {
    if(log.isErrorEnabled()) log.error(Util.getMessage("MemberSAddressIsNull"));
    return;
  }
  leaving=true;
  Address next_coord=gms.determineNextCoordinator();
  if(next_coord != null)
    sendLeaveReqTo(next_coord);
  else {
    gms.getViewHandler().add(new Request(Request.LEAVE, mbr));
    // If we're the coord leaving, ignore gms.leave_timeout: https://issues.jboss.org/browse/JGRP-1509
    long timeout=(long)(Math.max(gms.leave_timeout, gms.view_ack_collection_timeout) * 1.10);
    gms.getViewHandler().waitUntilComplete(timeout);
  }
  gms.becomeClient();
}
origin: org.jgroups/com.springsource.org.jgroups

public void handleExit() {
  cancelMerge();
}
origin: org.jboss.eap/wildfly-client-all

  sendLeaveResponses(leaving_mbrs); // we still have to send potential leave responses
sendLeaveResponses(leaving_mbrs); // no-op if no leaving members
origin: org.jboss.eap/wildfly-client-all

@ManagedOperation(description="Fetches digests from all members and installs them, unblocking blocked members")
public void fixDigests() {
  if(impl instanceof CoordGmsImpl)
    ((CoordGmsImpl)impl).fixDigests();
}
origin: org.jboss.eap/wildfly-client-all

public MergeId _getMergeId() {
  return impl instanceof CoordGmsImpl? ((CoordGmsImpl)impl).getMergeId() : null;
}
origin: org.jboss.eap/wildfly-client-all

/** The coordinator itself wants to leave the group */
public void leave(Address mbr) {
  if(mbr == null) {
    if(log.isErrorEnabled()) log.error(Util.getMessage("MemberSAddressIsNull"));
    return;
  }
  leaving=true;
  Address next_coord=gms.determineNextCoordinator();
  if(next_coord != null)
    sendLeaveReqTo(next_coord);
  else {
    gms.getViewHandler().add(new Request(Request.LEAVE, mbr));
    // If we're the coord leaving, ignore gms.leave_timeout: https://issues.jboss.org/browse/JGRP-1509
    long timeout=(long)(Math.max(gms.leave_timeout, gms.view_ack_collection_timeout) * 1.10);
    gms.getViewHandler().waitUntilComplete(timeout);
  }
  gms.becomeClient();
}
origin: org.jgroups/com.springsource.org.jgroups

public void init() throws Exception {
  super.init();
  cancelMerge();
}
origin: org.jgroups/com.springsource.org.jgroups

public void becomeCoordinator() {
  CoordGmsImpl tmp=(CoordGmsImpl)impls.get(COORD);
  if(tmp == null) {
    tmp=new CoordGmsImpl(this);
    impls.put(COORD, tmp);
  }
  try {
    tmp.init();
  }
  catch(Exception e) {
    log.error("exception switching to coordinator role", e);
  }
  setImpl(tmp);
}
origin: wildfly/wildfly

public void joinWithStateTransfer(Address mbr,boolean useFlushIfPresent) {
  wrongMethod("join");
}
origin: org.jgroups/com.springsource.org.jgroups

public void suspect(Address mbr) {
  if(mbr.equals(gms.local_addr)) {
    if(log.isWarnEnabled()) log.warn("I am the coord and I'm being am suspected -- will probably leave shortly");
    return;
  }
  Collection emptyVector=new LinkedHashSet(0);
  Collection suspected=new LinkedHashSet(1);
  suspected.add(mbr);
  handleMembershipChange(emptyVector, emptyVector, suspected);
}
origin: org.jboss.eap/wildfly-client-all

public void becomeCoordinator() {
  CoordGmsImpl tmp=(CoordGmsImpl)impls.get(COORD);
  if(tmp == null) {
    tmp=new CoordGmsImpl(this);
    impls.put(COORD, tmp);
  }
  try {
    first_view_sent=false;
    tmp.init();
  }
  catch(Exception e) {
    log.error(Util.getMessage("ExceptionSwitchingToCoordinatorRole"), e);
  }
  setImpl(tmp);
}
origin: org.jboss.eap/wildfly-client-all

public void joinWithStateTransfer(Address mbr,boolean useFlushIfPresent) {
  wrongMethod("join");
}
origin: org.jboss.eap/wildfly-client-all

public void suspect(Address mbr) {
  if(mbr.equals(gms.local_addr)) {
    if(log.isWarnEnabled()) log.warn("I am the coord and I'm suspected -- will probably leave shortly");
    return;
  }        
  Collection<Request> suspected=new LinkedHashSet<>(1);
  suspected.add(new Request(Request.SUSPECT,mbr));
  handleMembershipChange(suspected);
}
org.jgroups.protocols.pbcastCoordGmsImpl

Javadoc

Coordinator role of the Group MemberShip (GMS) protocol. Accepts JOIN and LEAVE requests and emits view changes accordingly.

Most used methods

  • <init>
  • handleMembershipChange
  • init
  • sendLeaveResponses
  • wrongMethod
  • fixDigests
    Fetches the digests from all members and installs them again. Used only for diagnosis and support; d
  • getMergeId
  • sendLeaveReqTo
  • cancelMerge
  • consolidateDigests
    Merge all digests into one. For each sender, the new value is min(low_seqno), max(high_seqno), max(h
  • getMergeResponse
  • sendJoinResponse
  • getMergeResponse,
  • sendJoinResponse,
  • sendJoinResponses,
  • sendMergeRejectedResponse,
  • sendMergeResponse,
  • setMergeId,
  • startMergeCanceller,
  • startMergeTask,
  • stopMergeCanceller,
  • stopMergeTask

Popular in Java

  • Start an intent from android
  • scheduleAtFixedRate (ScheduledExecutorService)
  • setContentView (Activity)
  • requestLocationUpdates (LocationManager)
  • Path (java.nio.file)
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • Top 25 Plugins for Webstorm
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