((IpAddress)sender).setProcessId(0); stack.gfPeerFunctions.incUcastReadBytes(len);
((IpAddress)me).setProcessId(0);
private void defaultToCurrentHost() { int defaultDcPort = MemberAttributes.DEFAULT.getPort(); // [bruce] disabled to allow loners to modify the ID post-connect // Assert.assertTrue(defaultDcPort > 0); this.dcPort = defaultDcPort;; this.vmKind = MemberAttributes.DEFAULT.getVmKind(); this.vmPid = MemberAttributes.DEFAULT.getVmPid(); this.name = MemberAttributes.DEFAULT.getName(); this.groups = MemberAttributes.DEFAULT.getGroups(); this.vmViewId = MemberAttributes.DEFAULT.getVmViewId(); this.durableClientAttributes = MemberAttributes.DEFAULT.getDurableClientAttributes(); if (this.ipAddr != null) { this.ipAddr.getAddress().setProcessId(this.vmPid); } try { if (SocketCreator.resolve_dns) { this.hostName = SocketCreator.getHostName(SocketCreator.getLocalHost()); } else { this.hostName = SocketCreator.getLocalHost().getHostAddress(); } } catch(UnknownHostException ee){ throw new InternalGemFireError(ee); } // checkHostName(); }
public void setPort(int p) { IpAddress i = new IpAddress(ipAddr.getIpAddress(), p); i.setFlags(ipAddr.getFlags()); i.setVmKind(ipAddr.getVmKind()); i.setDirectPort(ipAddr.getDirectPort()); i.setProcessId(ipAddr.getProcessId()); i.setRoles(ipAddr.getRoles()); i.setDurableClientAttributes(ipAddr.getDurableClientAttributes()); i.setVersionOrdinal(ipAddr.getVersionOrdinal()); this.ipAddr = i; } }
public static void insertGemFireAttributes(IpAddress addr, Object obj) { MemberAttributes attr = (MemberAttributes)obj; addr.setProcessId(attr.getVmPid()); addr.setVmKind(attr.getVmKind()); addr.setDirectPort(attr.getPort()); addr.setBirthViewId(attr.getVmViewId()); addr.setName(attr.getName()); addr.setRoles(attr.getGroups()); addr.setDurableClientAttributes(attr.getDurableClientAttributes()); addr.setSize(-1); addr.setSize(addr.size(Version.CURRENT_ORDINAL)); }