@Override public String toString() { return "Set alerts refresh time interval in " + InternalDistributedSystem.getAnyInstance().getDistributedMember(); } }
/** return the argument, or if null the DistributedMember id of this vm */ private DistributedMember getMember(DistributedMember mbr) { if (mbr == null) { return InternalDistributedSystem.getAnyInstance().getDistributedMember(); } else { return null; } }
private boolean isServerNode(){ return (this.system.getDistributedMember().getVmKind() != DistributionManager.LOCATOR_DM_TYPE && this.system.getDistributedMember().getVmKind() != DistributionManager.ADMIN_ONLY_DM_TYPE && !isClient()); }
@Override public void run2() { InternalDistributedSystem system = InternalDistributedSystem.getAnyInstance(); DistributedMember coord = MembershipManagerHelper.getCoordinator(system); assertTrue(coord.equals(system.getDistributedMember())); } });
public static InternalDistributedMember getMyId() { final InternalDistributedMember self = GemFireStore.getMyId(); if (self != null) { return self; } else { return getDistributedSystem().getDistributedMember(); } }
/** * get member id * * @param vm */ @SuppressWarnings("serial") protected static DistributedMember getMember() throws Exception { GemFireCacheImpl cache = GemFireCacheImpl.getInstance(); return cache.getDistributedSystem().getDistributedMember(); }
public void toData(DataOutput out) throws IOException { DistributedMember me = InternalDistributedSystem.getAnyInstance().getDistributedMember(); DataSerializer.writeObject(me, out); } public void fromData(DataInput in)
public void toData(DataOutput out) throws IOException { DistributedMember me = InternalDistributedSystem.getAnyInstance().getDistributedMember(); DataSerializer.writeObject(me, out); } public void fromData(DataInput in)
public static InternalDistributedMember getMyId() { final InternalDistributedMember self = GemFireStore.getMyId(); if (self != null) { return self; } else { return Misc.getDistributedSystem().getDistributedMember(); } }
public GfxdDistributedSystemBridge(SystemManagementService systemManagementService,ConnectionWrapperHolder connectionWrapHolder, InternalDistributedMember thisMember) { this.connectionWrapperHolder = connectionWrapHolder; this.service = systemManagementService; this.thisMember = thisMember; String memberNameOrId = MBeanJMXAdapter.getMemberNameOrId(Misc.getGemFireCache().getDistributedSystem().getDistributedMember()); this.thisMemberName = ManagementUtils.getMemberMBeanName(memberNameOrId,ManagementUtils.DEFAULT_SERVER_GROUP); this.gfxdMemberClusterStatsMonitor = new GfxdMemberClusterStatsMonitor(); this.aggregateTableMBeanBridgeMap = new HashMap<ObjectName, AggregateTableMBeanBridge>(); this.mbeanCounterMap = Collections.synchronizedMap(new HashMap<ObjectName, Long >()); }
public GfxdDistributedSystemBridge(SystemManagementService systemManagementService,ConnectionWrapperHolder connectionWrapHolder, InternalDistributedMember thisMember) { this.connectionWrapperHolder = connectionWrapHolder; this.service = systemManagementService; this.thisMember = thisMember; String memberNameOrId = MBeanJMXAdapter.getMemberNameOrId(Misc.getGemFireCache().getDistributedSystem().getDistributedMember()); this.thisMemberName = ManagementUtils.getMemberMBeanName(memberNameOrId,ManagementUtils.DEFAULT_SERVER_GROUP); this.gfxdMemberClusterStatsMonitor = new GfxdMemberClusterStatsMonitor(); this.aggregateTableMBeanBridgeMap = new HashMap<ObjectName, AggregateTableMBeanBridge>(); this.mbeanCounterMap = Collections.synchronizedMap(new HashMap<ObjectName, Long >()); }
public DistributedMember getOwnerForKey(LocalRegion r, KeyInfo key) { DistributedMember m = r.getOwnerForKey(key); if (m == null) { GemFireCacheImpl cache = GemFireCacheImpl.getExisting("getOwnerForKey"); m = cache.getDistributedSystem().getDistributedMember(); } return m; } }
public PersistentID getPersistentID() { InetAddress host = cache.getDistributedSystem().getDistributedMember() .getIpAddress(); String dir = getDiskDirs()[0].getAbsolutePath(); return new PersistentMemberPattern(host, dir, this.diskStoreID.toUUID(), 0); }
public void run2() throws CacheException { Region region = getRootRegion().getSubregion(name); region.destroyRegion(getSystem().getDistributedMember()); } });
public void run2() throws CacheException { Region region = getRootRegion().getSubregion(name); region.put(key, newValue, getSystem().getDistributedMember()); } });
public void execute(FunctionContext context) { InternalDistributedSystem instance = InternalDistributedSystem.getAnyInstance(); if(instance == null) { context.getResultSender().lastResult(new HashSet()); return; } InternalDistributedMember member = instance.getDistributedMember(); Set<Dependency> dependencies = DeadlockDetector.collectAllDependencies(member); context.getResultSender().lastResult((Serializable) dependencies); }
public boolean areSecondariesPingable() { Set<InternalDistributedMember> hostingservers = this.partitionedRegion.getRegionAdvisor() .getBucketOwners(this.getId()); hostingservers.remove(cache.getDistributedSystem().getDistributedMember()); if (cache.getLoggerI18n().fineEnabled()) cache.getLoggerI18n().fine("Pinging secondaries of bucket " + this.getId() + " on servers " + hostingservers); if (hostingservers.size() == 0) return true; return ServerPingMessage.send(cache, hostingservers); }
public boolean areSecondariesPingable() { Set<InternalDistributedMember> hostingservers = this.partitionedRegion.getRegionAdvisor() .getBucketOwners(this.getId()); hostingservers.remove(cache.getDistributedSystem().getDistributedMember()); if (cache.getLoggerI18n().fineEnabled()) cache.getLoggerI18n().fine("Pinging secondaries of bucket " + this.getId() + " on servers " + hostingservers); if (hostingservers.size() == 0) return true; return ServerPingMessage.send(cache, hostingservers); }
private void handleTableDrop(String fullTableName) { GemFireCacheImpl cache = Misc.getGemFireCache(); InternalDistributedMember thisMember = cache.getDistributedSystem().getDistributedMember(); String memberNameOrId = MBeanJMXAdapter.getMemberNameOrId(thisMember); this.tableMBeanDataUpdater.removeUpdatable(fullTableName); // first stop updates Set<ObjectName> unregisteredMBeanByPattern = this.unregisterMBeanByPattern(ManagementUtils.getTableMBeanGroupPattern(memberNameOrId, fullTableName)); logFine("Unregistered following MBeans for \""+fullTableName+"\": " + unregisteredMBeanByPattern, null); }
private void handleTableDrop(String fullTableName) { GemFireCacheImpl cache = Misc.getGemFireCache(); InternalDistributedMember thisMember = cache.getDistributedSystem().getDistributedMember(); String memberNameOrId = MBeanJMXAdapter.getMemberNameOrId(thisMember); this.tableMBeanDataUpdater.removeUpdatable(fullTableName); // first stop updates Set<ObjectName> unregisteredMBeanByPattern = this.unregisterMBeanByPattern(ManagementUtils.getTableMBeanGroupPattern(memberNameOrId, fullTableName)); logFine("Unregistered following MBeans for \""+fullTableName+"\": " + unregisteredMBeanByPattern, null); }