use of org.apache.geode.management.internal.SystemManagementService in project geode by apache.
the class ManagementTestBase method createSubRegion.
/**
* Creates a Sub region
*/
protected void createSubRegion(final VM vm, final String parentRegionPath, final String subregionName) throws Exception {
vm.invoke("Create Sub region", () -> {
GemFireCacheImpl cache = GemFireCacheImpl.getInstance();
SystemManagementService service = (SystemManagementService) getManagementService();
Region region = cache.getRegion(parentRegionPath);
LogWriterUtils.getLogWriter().info("Creating Sub Region");
region.createSubregion(subregionName, region.getAttributes());
});
}
use of org.apache.geode.management.internal.SystemManagementService in project geode by apache.
the class ManagementTestRule method startManager.
public void startManager() {
SystemManagementService service = getSystemManagementService();
service.createManager();
service.startManager();
}
use of org.apache.geode.management.internal.SystemManagementService in project geode by apache.
the class ManagementTestBase method createPartitionRegion.
/**
* Creates a partition Region
*/
protected void createPartitionRegion(final VM vm, final String partitionRegionName) {
vm.invoke("Create Partitioned region", () -> {
GemFireCacheImpl cache = GemFireCacheImpl.getInstance();
SystemManagementService service = (SystemManagementService) getManagementService();
RegionFactory rf = cache.createRegionFactory(RegionShortcut.PARTITION_REDUNDANT);
LogWriterUtils.getLogWriter().info("Creating Par Region");
rf.create(partitionRegionName);
});
}
use of org.apache.geode.management.internal.SystemManagementService in project geode by apache.
the class ManagementTestBase method createLocalRegion.
/**
* Creates a Local region
*/
protected void createLocalRegion(final VM vm, final String localRegionName) throws Exception {
vm.invoke("Create Local region", () -> {
GemFireCacheImpl cache = GemFireCacheImpl.getInstance();
SystemManagementService service = (SystemManagementService) getManagementService();
RegionFactory rf = cache.createRegionFactory(RegionShortcut.LOCAL);
LogWriterUtils.getLogWriter().info("Creating Local Region");
rf.create(localRegionName);
});
}
use of org.apache.geode.management.internal.SystemManagementService in project geode by apache.
the class ManagementTestBase method startManagingNode.
/**
* Marks a VM as Managing
*/
protected void startManagingNode(final VM vm1) {
vm1.invoke("Start Being Managing Node", () -> {
Cache existingCache = GemFireCacheImpl.getInstance();
// if (existingCache != null && !existingCache.isClosed()) {
managementService = ManagementService.getManagementService(existingCache);
SystemManagementService service = (SystemManagementService) managementService;
service.createManager();
service.startManager();
// }
});
}
Aggregations