private static Object getSource() { Object source = SOURCE.get(); if (source == null) { source = InternalDistributedSystem.getAnyInstance().getMemberId(); } return source; }
/** * Gets the ID of the member in the GemFire distributed system as determined and assigned by * GemFire when the member process joins the distributed system. Note, this call only works if the * API is used in-process. * * @return a String value indicating the ID of the member in the GemFire distributed system. */ public String getMemberId() { final InternalDistributedSystem distributedSystem = InternalDistributedSystem.getConnectedInstance(); return distributedSystem != null ? distributedSystem.getMemberId() : null; }
private static Object getDest() { return InternalDistributedSystem.getAnyInstance().getMemberId(); }
private static String getServerMessage(String msg) { // To fix bug 44679 add a description of the member the server is on. // Do this without changing how this class gets serialized so that old // clients will still work. InternalDistributedSystem ids = InternalDistributedSystem.getAnyInstance(); if (ids != null) { if (msg != null) { return "remote server on " + ids.getMemberId() + ": " + msg; } else { return "remote server on " + ids.getMemberId(); } } else { if (msg != null) { return "remote server on unknown location: " + msg; } else { return "remote server on unknown location"; } } }
protected static DistributedMember getMemberId() { await("Waiting for client to connect " + getSystemStatic().getMemberId()) .until(() -> getSystemStatic().getDistributedMember().getPort() > 0); return getSystemStatic().getDistributedMember(); }
protected void initializeDistributedSystem(DistributedSystem distributedSystem) { InternalDistributedSystem ids = (InternalDistributedSystem) distributedSystem; setMemberId(ids.getMemberId()); DistributionConfig config = ids.getConfig(); setMemberName(config.getName()); setMcastPort(config.getMcastPort()); setMcastAddress(config.getMcastAddress()); String bindAddress = config.getBindAddress(); setBindAddress(bindAddress); setLocators(config.getLocators()); setUpTime(System.currentTimeMillis() - ids.getStartTime()); try { setHostAddress((bindAddress != null && bindAddress.length() > 0) ? InetAddress.getByName(bindAddress) : SocketCreator.getLocalHost()); } catch (IOException e) { /* ignore - leave null host address */} }
.getPrimaryMemberForKey(this, event.getKey()); if (ids != null) { extractDelta = !this.getSystem().getMemberId().equals(ids.getId()) || hasAdjunctRecipientsNeedingDelta(event); } else {