/** Returns a string representation for this <code>Version</code>. * @return the name of this operation. */ @Override public String toString() { if (this.gemfireVersion == null) { return this.productName + " " + this.name; } else { return this.productName + " " + this.name + '[' + this.gemfireVersion.toString() + ']'; } }
@Override public String toString() { return String.valueOf(remoteAddr) + '@' + this.uniqueId + (this.remoteVersion != null ? ('(' + this.remoteVersion.toString() + ')') : "") /*DEBUG + " accepted=" + this.isReceiver + " connected=" + this.connected + " hash=" + System.identityHashCode(this) + " preserveOrder=" + this.preserveOrder + " closing=" + isClosing() + ">"*/; }
public static String toString(short ordinal) { if (ordinal <= CURRENT.ordinal) { try { return fromOrdinal(ordinal, false).toString(); } catch (UnsupportedVersionException uve) { // ignored in toString() } } return "UNKNOWN[ordinal=" + ordinal + ']'; }
private String getRecoveredGFVersionName() { String currentVersionStr = "GFE pre-7.0"; Version version = getRecoveredGFVersion(); if (version != null) { currentVersionStr = version.toString(); } return currentVersionStr; }
sb.append("(version:").append(Version.toString(this.version)) .append(')');
/** * Handle a {@link DSFIDNotFoundException} indicating a message type is not * implemented on another server (for example due to different product * version). Default implementation logs the exception as severe and moves on. * * Rationale for default handling: New operations can have caused changes to * other newer versioned GFE JVMs that cannot be reverted. So ignoring * exceptions is a conservative way considering such scenarios. It will be * upto individual messages to handle differently by overriding the above * method. */ protected synchronized void processException(DistributionMessage msg, DSFIDNotFoundException ex) { final short versionOrdinal = ex.getProductVersionOrdinal(); String versionStr = null; try { Version version = Version.fromOrdinal(versionOrdinal, false); versionStr = version.toString(); } catch (UnsupportedVersionException e) { } if (versionStr == null) { versionStr = "Ordinal=" + versionOrdinal; } logger.fatal(LocalizedMessage.create(LocalizedStrings.ReplyProcessor21_UNKNOWN_DSFID_ERROR, new Object[] { ex.getUnknownDSFID(), msg.getSender(), versionStr }), ex); }
LocalizedStrings.ServerHandShakeProcessor_0_SERVERS_CURRENT_VERSION_IS_1 .toLocalizedString(new Object[] { e.getMessage(), Acceptor.VERSION.toString() }), REPLY_REFUSED); connection.stats.incFailedConnectionAttempts(); connection.cleanup();