protected boolean versionMatch(short version, Address sender) { boolean match=Version.isBinaryCompatible(version); if(!match && log_discard_msgs_version && log.isWarnEnabled()) { if(suppress_log_different_version != null) suppress_log_different_version.log(SuppressLog.Level.warn, sender, suppress_time_different_version_warnings, sender, Version.print(version), Version.printVersion()); else log.warn(Util.getMessage("VersionMismatch"), sender, Version.print(version), Version.printVersion()); } return match; }
throw new IOException("packet from " + client_sock.getInetAddress() + ":" + client_sock.getPort() + " has different version (" + Version.print(version) + ") from ours (" + Version.printVersion() + "); discarding it");
if(!Version.isBinaryCompatible(version)) throw new IOException("packet from " + channel.getRemoteAddress() + " has different version (" + Version.print(version) + ") from ours (" + Version.printVersion() + "); discarding it"); recv_buf.add(ByteBuffer.allocate(Global.SHORT_SIZE)); break;
@Override public void installServices(OperationContext context, ModelNode model) throws OperationFailedException { ROOT_LOGGER.activatingSubsystem(Version.printVersion());
break; case 'v': System.out.printf("Version: %s\n", Version.printVersion()); break; case 'x':
throw new IOException("packet from " + client_sock.getInetAddress() + ":" + client_sock.getPort() + " has different version (" + Version.print(version) + ") from ours (" + Version.printVersion() + "); discarding it");
log.warn(new StringBuffer("packet from ").append(client_addr).append(':').append(client_port). append(" has different version (").append(Version.print(version)).append(") from ours ("). append(Version.printVersion()).append("). This may cause problems"));
StringBuffer sb=new StringBuffer(); sb.append("packet from ").append(sender).append(" has different version (").append(Version.print(version)); sb.append(") from ours (").append(Version.printVersion()).append("). "); if(discard_incompatible_packets) sb.append("Packet is discarded");
protected boolean versionMatch(short version, Address sender) { boolean match=Version.isBinaryCompatible(version); if(!match && log_discard_msgs_version && log.isWarnEnabled()) { if(suppress_log_different_version != null) suppress_log_different_version.log(SuppressLog.Level.warn, sender, suppress_time_different_version_warnings, sender, Version.print(version), Version.printVersion()); else log.warn(Util.getMessage("VersionMismatch"), sender, Version.print(version), Version.printVersion()); } return match; }
StringBuffer sb=new StringBuffer(); sb.append("packet from ").append(sender).append(" has different version (").append(Version.print(version)); sb.append(") from ours (").append(Version.printVersion()).append("). "); if(discard_incompatible_packets) sb.append("Packet is discarded");
if(!Version.isBinaryCompatible(version)) throw new IOException("packet from " + channel.getRemoteAddress() + " has different version (" + Version.print(version) + ") from ours (" + Version.printVersion() + "); discarding it"); recv_buf.add(ByteBuffer.allocate(Global.SHORT_SIZE)); break;
@Override public void installServices(OperationContext context, ModelNode model) throws OperationFailedException { ROOT_LOGGER.activatingSubsystem(Version.printVersion());
public void doStart() throws JGroupsClusterViewManagerException { LOGGER.debug("JGroups v{0}", org.jgroups.Version.printVersion());
break; case 'v': System.out.printf("Version: %s\n", Version.printVersion()); break; case 'x':