@Override public URL getCacheXmlURL() { if (this.getMyId().getVmKind() == ClusterDistributionManager.LOCATOR_DM_TYPE) { return null;
when(cache.getInternalDistributedSystem()).thenReturn(system); when(cache.getSystem()).thenReturn(system); when(cache.getMyId()).thenReturn(member); when(cache.getDistributionManager()).thenReturn(distributionManager); when(cache.getCancelCriterion()).thenReturn(systemCancelCriterion);
@Override public synchronized void initializePdxRegistry() { if (this.pdxRegistry == null) { // The member with locator is initialized with a NullTypePdxRegistration if (this.getMyId().getVmKind() == ClusterDistributionManager.LOCATOR_DM_TYPE) { this.pdxRegistry = new TypeRegistry(this, true); } else { this.pdxRegistry = new TypeRegistry(this, false); } this.pdxRegistry.initialize(); } }
public void initialize(GemFireCacheImpl cache, PartitionedRegion queueRegion) { InternalDistributedMember member = cache.getMyId(); when(queueRegion.getMyId()).thenReturn(member); when(cache.getRegionByPath(this.bucketRegionQueue.getFullPath())) .thenReturn(this.bucketRegionQueue); } }
private VersionTag createVersionTag(boolean validVersionTag) throws ClassNotFoundException, IOException { VersionTag tag = VersionTag.create(cache.getMyId()); if (validVersionTag) { tag.setRegionVersion(1); tag.setEntryVersion(1); } return tag; }
throws RegionExistsException, TimeoutException, IOException, ClassNotFoundException { if (getMyId().getVmKind() == ClusterDistributionManager.LOCATOR_DM_TYPE) { if (!internalRegionArgs.isUsedForMetaRegion() && internalRegionArgs.getInternalMetaRegion() == null) {
false, getMyId(), true); try {
for (CacheServer s : servers) { if (((CacheServerImpl) s).getSystem().getDistributedMember() .equals(((GemFireCacheImpl) CacheFactory.getAnyInstance()).getMyId())) { s.stop(); DistributedSystem ds = InternalDistributedSystem.getAnyInstance(); .equals(((GemFireCacheImpl) CacheFactory.getAnyInstance()).getMyId())) { s.stop(); DistributedSystem ds = InternalDistributedSystem.getAnyInstance();
for (CacheServer s : servers) { if (((CacheServerImpl) s).getSystem().getDistributedMember() .equals(((GemFireCacheImpl) CacheFactory.getAnyInstance()).getMyId())) { s.stop(); DistributedSystem ds = InternalDistributedSystem.getAnyInstance(); .equals(((GemFireCacheImpl) CacheFactory.getAnyInstance()).getMyId())) { s.stop(); DistributedSystem ds = InternalDistributedSystem.getAnyInstance();