@Override public boolean done() { final ManagementService service = getManagementService(); final DistributedSystemMXBean bean = service.getDistributedSystemMXBean(); if(bean !=null){ if (bean.listCacheServers().length > 0) { return true; } } return false; } @Override
@Override public boolean done() { final ManagementService service = getManagementService(); final DistributedSystemMXBean bean = service .getDistributedSystemMXBean(); if (bean != null) { if (bean.getNumClients() > 0) { return true; } } return false; }
@Override public boolean done() { final ManagementService service = getManagementService(); final DistributedSystemMXBean bean = service .getDistributedSystemMXBean(); if (bean != null) { if (bean.getTotalHeapSize() > 0) { return true; } } return false; } @Override
@Override public boolean done() { final ManagementService service = getManagementService(); final DistributedSystemMXBean bean = service .getDistributedSystemMXBean(); if (bean != null) { if (bean.getNumRunningFunctions() > 0) { return true; } else { return false; } } return false; }
@Override public boolean done() { final ManagementService service = getManagementService(); final DistributedSystemMXBean bean = service.getDistributedSystemMXBean(); if (bean != null) { if(bean.getActiveCQCount() > 0){ return true; } } return false; }
@Override public boolean done() { final ManagementService service = getManagementService(); final DistributedSystemMXBean bean = service.getDistributedSystemMXBean(); if (bean != null) { if(bean.getLocatorCount() > 0){ return true; } } return false; }
public Object call() throws Exception { ManagementService service = getManagementService(); DistributedSystemMXBean bean = service.getDistributedSystemMXBean(); DiskBackupStatus status = bean.backupAllMembers(getBackupDir("test_backupAllMembers") .getAbsolutePath()); return null; } });
public void run() { Cache cache = getCache(); ManagementService service = getManagementService(); DiskStoreMXBean bean = service.getLocalDiskStoreMBean(REGION_NAME); assertNotNull(bean); } };
public Object call() throws Exception { GemFireCacheImpl cache = GemFireCacheImpl.getInstance(); ManagementService service = getManagementService(); DistributedSystemMXBean bean = service.getDistributedSystemMXBean(); assertNotNull(bean); bean.changeAlertLevel(alertLevel); return null; } });
public void run() { Cache cache = getCache(); ManagementService service = getManagementService(); DistributedSystemMXBean bean = service.getDistributedSystemMXBean(); PersistentMemberDetails[] missingDiskStores = bean .listMissingDiskStores(); assertNull(missingDiskStores); } });
public void run() { GemFireCacheImpl cache = GemFireCacheImpl.getInstance(); SystemManagementService service = (SystemManagementService) getManagementService(); RegionFactory rf = cache .createRegionFactory(RegionShortcut.LOCAL); getLogWriter().info("Creating Local Region"); rf.create(localRegionName); } };
public void run() { GemFireCacheImpl cache = GemFireCacheImpl.getInstance(); SystemManagementService service = (SystemManagementService) getManagementService(); RegionFactory rf = cache .createRegionFactory(RegionShortcut.PARTITION_REDUNDANT); getLogWriter().info("Creating Par Region"); rf.create(partitionRegionName); } };
public void run() { GemFireCacheImpl cache = GemFireCacheImpl.getInstance(); SystemManagementService service = (SystemManagementService) getManagementService(); RegionFactory rf = cache.createRegionFactory(RegionShortcut.REPLICATE); getLogWriter().info("Creating Dist Region"); rf.create(regionName); } };
public void run() { GemFireCacheImpl cache = GemFireCacheImpl.getInstance(); SystemManagementService service = (SystemManagementService) getManagementService(); Region region = cache.getRegion(parentRegionPath); getLogWriter().info("Creating Sub Region"); region.createSubregion(subregionName, region.getAttributes()); } };
public void run() { Cache cache = getCache(); DiskStoreFactory dsf = cache.createDiskStoreFactory(); dsf.setAllowForceCompaction(true); String name = "testForceCompaction_" + vm.getPid(); DiskStore ds = dsf.create(name); ManagementService service = getManagementService(); DiskStoreMXBean bean = service.getLocalDiskStoreMBean(name); assertNotNull(bean); assertEquals(false, bean.forceCompaction()); } };
public Object call() throws Exception { GemFireCacheImpl cache = GemFireCacheImpl.getInstance(); ManagementService service = getManagementService(); DistributedSystemMXBean bean = service.getDistributedSystemMXBean(); AlertNotifListener nt = AlertNotifListener.getInstance(); nt.resetCount(); mbeanServer.addNotificationListener(MBeanJMXAdapter .getDistributedSystemName(), nt, null, null); return null; } });
public Object call() throws Exception { GemFireCacheImpl cache = GemFireCacheImpl.getInstance(); ManagementService service = getManagementService(); DistributedSystemMXBean bean = service.getDistributedSystemMXBean(); assertNotNull(bean); TestDistributedSystemNotif nt = new TestDistributedSystemNotif(); mbeanServer.addNotificationListener(MBeanJMXAdapter .getDistributedSystemName(), nt, null, null); return null; } });
public void run() { Cache cache = getCache(); DiskStoreFactory dsf = cache.createDiskStoreFactory(); String name = "testForceRoll_" + vm.getPid(); DiskStore ds = dsf.create(name); ManagementService service = getManagementService(); DiskStoreMXBean bean = service.getLocalDiskStoreMBean(name); assertNotNull(bean); bean.forceRoll(); } };
public void run() { Cache cache = getCache(); DiskStoreFactory dsf = cache.createDiskStoreFactory(); String name = "testFlush_" + vm.getPid(); DiskStore ds = dsf.create(name); ManagementService service = getManagementService(); DiskStoreMXBean bean = service.getLocalDiskStoreMBean(name); assertNotNull(bean); bean.flush(); } };
public void run() { GemFireCacheImpl cache = GemFireCacheImpl.getInstance(); SystemManagementService service = (SystemManagementService)getManagementService(); assertNotNull(service.getLocalRegionMBean(PARTITIONED_REGION_PATH)); RegionMXBean bean = service .getLocalRegionMBean(PARTITIONED_REGION_PATH); Region partitionedRegion = cache.getRegion(PARTITIONED_REGION_PATH); RegionAttributes regAttrs = partitionedRegion.getAttributes(); RegionAttributesData data = bean.listRegionAttributes(); PartitionAttributesData parData = bean.listPartitionAttributes(); assertPartitionData(regAttrs, parData); } };