Tabnine Logo
InternalDistributedMember.getVersionObject
Code IndexAdd Tabnine to your IDE (free)

How to use
getVersionObject
method
in
com.gemstone.gemfire.distributed.internal.membership.InternalDistributedMember

Best Java code snippets using com.gemstone.gemfire.distributed.internal.membership.InternalDistributedMember.getVersionObject (Showing top 20 results out of 315)

origin: io.snappydata/gemfire-core

@Override
public Version leastCommonVersion(Collection<DistributedMember> members) {
 Version min = null;
 for (Object dm : members) {
  Version v = ((InternalDistributedMember) dm).getVersionObject();
  if (min == null || v.compareTo(min) < 0) {
   min = v;
  }
 }
 return min;
}
origin: org.apache.geode/gemfire-core

@Override // DM method
public void removeMembersWithSameOrNewerVersion(Collection<InternalDistributedMember> members, Version version) {
 for (Iterator<InternalDistributedMember> it = members.iterator(); it.hasNext(); ) {
  InternalDistributedMember id = it.next();
  if (id.getVersionObject().compareTo(version) >= 0) {
   it.remove();
  }
 }
}

origin: org.apache.geode/gemfire-core

@Override // DM method
public void removeMembersWithSameOrNewerVersion(Collection<InternalDistributedMember> members, Version version) {
 for (Iterator<InternalDistributedMember> it = members.iterator(); it.hasNext(); ) {
  InternalDistributedMember id = it.next();
  if (id.getVersionObject().compareTo(version) >= 0) {
   it.remove();
  }
 }
}

origin: org.apache.geode/gemfire-core

@Override // DM method
public void retainMembersWithSameOrNewerVersion(Collection<InternalDistributedMember> members, Version version) {
 for (Iterator<InternalDistributedMember> it = members.iterator(); it.hasNext(); ) {
  InternalDistributedMember id = it.next();
  if (id.getVersionObject().compareTo(version) < 0) {
   it.remove();
  }
 }
}

origin: io.snappydata/gemfire-core

@Override
public Version leastCommonVersion(Collection<DistributedMember> members) {
 Version min = null;
 for (Object dm : members) {
  Version v = ((InternalDistributedMember) dm).getVersionObject();
  if (min == null || v.compareTo(min) < 0) {
   min = v;
  }
 }
 return min;
}
origin: org.apache.geode/gemfire-core

@Override // DM method
public void retainMembersWithSameOrNewerVersion(Collection<InternalDistributedMember> members, Version version) {
 for (Iterator<InternalDistributedMember> it = members.iterator(); it.hasNext(); ) {
  InternalDistributedMember id = it.next();
  if (id.getVersionObject().compareTo(version) < 0) {
   it.remove();
  }
 }
}

origin: org.apache.geode/gemfire-core

public Version getClientVersion() {
 return ((InternalDistributedMember)getDistributedMember()).getVersionObject();
}
origin: org.apache.geode/gemfire-core

 bucketId.add(bucket);
try {
 if (entry.getKey().getVersionObject().compareTo(Version.GFE_80) < 0) {
  failures.addAll(nodeToBuckets.get(entry.getKey()));
  continue;
origin: io.snappydata/gemfirexd-core

final Version v = m.getVersionObject();
exec = CallbackFactoryProvider.getClusterCallbacks().getSQLExecute(
  sql, ctx, v);
origin: org.apache.geode/gemfire-core

public boolean goWithFullGII(DistributedRegion rgn, RegionVersionVector requesterRVV) {
 if (getSender().getVersionObject().compareTo(Version.GFE_80) < 0) {
  // pre-8.0 could not handle a delta-GII
  return true;
 }
 if (!rgn.getDataPolicy().withPersistence()) {
  // non-persistent regions always do full GII
  if (logger.isDebugEnabled()) {
   logger.debug("Region {} is not a persistent region, do full GII", rgn.getFullPath());
  }
  return true;
 }
 if (!rgn.getVersionVector().isRVVGCDominatedBy(requesterRVV)) {
  if (logger.isDebugEnabled()) {
   logger.debug("Region {}'s local RVVGC is not dominated by remote RVV={}, do full GII", rgn.getFullPath(), requesterRVV);
  }
  return true;
 }
 // TODO GGG: verify GII after UpgradeDiskStore
 return false;
}
  
origin: org.apache.geode/gemfire-core

if (rec.getVersionObject().compareTo(Version.GFE_81) < 0) {
 throw new UnsupportedOperationException("Indexes should not be created during rolling upgrade");
origin: org.apache.geode/gemfire-core

boolean isPostGFE_8_1 = this.getSender().getVersionObject().compareTo(Version.GFE_81) > 0 ;
origin: org.apache.geode/gemfire-core

  InitialImageOperation.CHUNK_SIZE_IN_BYTES+2048, recipient.getVersionObject());
do {
 mos.reset();
origin: org.apache.geode/gemfire-core

protected void checkVersionTag(DistributedRegion rgn, VersionTag tag) {
 RegionAttributes attr = rgn.getAttributes();
 if (attr.getConcurrencyChecksEnabled() 
   && attr.getDataPolicy().withPersistence() 
   && attr.getScope() != Scope.GLOBAL
   && (tag.getMemberID() == null || test_InvalidVersion)) {
  if (logger.isDebugEnabled()) {
   logger.debug("Version tag is missing the memberID: {}", tag);
  }
  
  String msg = LocalizedStrings.DistributedPutAllOperation_MISSING_VERSION
    .toLocalizedString(tag);
  RuntimeException ex = (sender.getVersionObject().compareTo(Version.GFE_80) < 0) 
    ? new InternalGemFireException(msg) 
    : new InvalidVersionException(msg);
  throw ex;
 }
}

origin: org.apache.geode/gemfire-core

/** 
 * process the memberid:threadid -> sequence# information transmitted 
 * along with an initial image from another cache 
 */ 
void processRegionStateMessage(RegionStateMessage msg) { 
 if (msg.eventState != null) { 
  logger.debug("Applying event state to region {} from {}", region.getName(), msg.getSender()); 
  region.recordEventState(msg.getSender(), msg.eventState); 
 }
 if (msg.versionVector != null && msg.getSender().getVersionObject().compareTo(Version.GFE_80) < 0 && region.getConcurrencyChecksEnabled()) {
  // for older version, save received rvv from RegionStateMessage
  logger.debug("Applying version vector to {}: {}", region.getName(), msg.versionVector);
  // pack the original RVV, then save the received one
  if (internalBeforeSavedReceivedRVV != null && internalBeforeSavedReceivedRVV.getRegionName().equals(region.getName())) {
   internalBeforeSavedReceivedRVV.run();
  }
  saveReceivedRVV(msg.versionVector);
  if (internalAfterSavedReceivedRVV != null && internalAfterSavedReceivedRVV.getRegionName().equals(region.getName())) {
   internalAfterSavedReceivedRVV.run();
  }
 }
} 
origin: io.snappydata/snappydata-store-core

final Version v = m.getVersionObject();
exec = CallbackFactoryProvider.getClusterCallbacks().getSQLExecute(
  sql, schema, ctx, v, this.isPreparedStatement(), this.isPreparedPhase(), this.pvs);
origin: io.snappydata/gemfire-core

if(Version.GFXD_101.compareTo(recipient.getVersionObject()) <= 0) {
 filteredRecipients.add(recipient);
origin: org.apache.geode/gemfire-core

if(Version.GFE_81.compareTo(recipient.getVersionObject()) <= 0) {
 filteredRecipients.add(recipient);
origin: org.apache.geode/gemfire-core

if (incomingRequest.getMemberID().getVersionObject().compareTo(Version.CURRENT) < 0) {
 logger.warn("detected an attempt to start a peer using an older version of the product {}", incomingRequest.getMemberID());
 JoinResponseMessage m = new JoinResponseMessage("Rejecting the attempt of a member using an older version");
origin: io.snappydata/gemfire-core

 protected void checkVersionTag(DistributedRegion rgn, VersionTag tag) {
  RegionAttributes attr = rgn.getAttributes();
  if (attr.getConcurrencyChecksEnabled() 
    && attr.getDataPolicy().withPersistence() 
    && attr.getScope() != Scope.GLOBAL
    && (tag.getMemberID() == null || test_InvalidVersion)) {
   if (rgn.getLogWriterI18n().fineEnabled()) {
    rgn.getLogWriterI18n().info(LocalizedStrings.DEBUG, "Version tag is missing the memberID: " + tag);
   }
   
   String msg = LocalizedStrings.DistributedPutAllOperation_MISSING_VERSION
     .toLocalizedString(tag);
   RuntimeException ex = (sender.getVersionObject().compareTo(Version.GFXD_101) < 0) 
     ? new InternalGemFireException(msg) 
     : new InvalidVersionException(msg);
   throw ex;
  }
 }
}
com.gemstone.gemfire.distributed.internal.membershipInternalDistributedMembergetVersionObject

Popular methods of InternalDistributedMember

  • <init>
    Construct a InternalDistributedMember. All fields are specified. This, and the following constructor
  • equals
  • toString
  • getHost
  • getId
  • getName
    Returns the name of this member's distributed system connection or null if no name was specified.
  • getPort
    Return the underlying port (membership port)
  • getRoles
    Returns an unmodifiable Set of this member's Roles.
  • getVmKind
    [GemStone] Returns the kind of VM that hosts the distribution manager with this address.
  • hashCode
  • getIpAddress
    Return the underlying host address
  • getProcessId
  • getIpAddress,
  • getProcessId,
  • fromData,
  • getDirectChannelPort,
  • getGroups,
  • getNetMember,
  • getVmViewId,
  • toData,
  • _readEssentialData

Popular in Java

  • Making http requests using okhttp
  • runOnUiThread (Activity)
  • compareTo (BigDecimal)
  • getExternalFilesDir (Context)
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • 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
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • Github Copilot alternatives
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