public class DiskManagementDUnitTest extends ManagementTestBase
DistributedTestCase.ExpectedException, DistributedTestCase.WaitCriterion, DistributedTestCase.WaitCriterion2| Modifier and Type | Field and Description |
|---|---|
protected static com.gemstone.gemfire.LogWriter |
logWriter |
ds, locatorVM, managedNode1, managedNode2, managedNode3, managedNodeList, managementService, managingNode, mbeanServerlogPerTest, reconnect, system, testName| Constructor and Description |
|---|
DiskManagementDUnitTest(String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
backupAllMembers(VM managingVM)
Takes a back up of all the disk store in a given directory
|
protected void |
checkIfContainsFileWithExt(String fileExtension)
Checks if a file with the given extension is present
|
protected void |
checkNavigation(VM vm,
com.gemstone.gemfire.distributed.DistributedMember diskMember,
String diskStoreName) |
protected void |
closeRegion(VM vm)
Close the given region REGION_NAME
|
void |
compactAllDiskStores(VM vm1)
Compacts all DiskStores belonging to a member
|
void |
compactDiskStoresRemote(VM managingVM)
Compact a disk store from Managing node
|
protected void |
createPersistentRegion(VM vm)
Creates a persistent region
|
protected AsyncInvocation |
createPersistentRegionAsync(VM vm)
Creates a persistent region in async manner
|
protected static File |
getBackupDir(String name) |
protected File |
getDiskDirForVM(VM vm)
Appends vm id to disk dir
|
protected static com.gemstone.gemfire.distributed.DistributedMember |
getMember()
get Distributed member for a given vm
|
void |
invokeFlush(VM vm)
Invokes flush on the given disk store by MBean interface
|
void |
invokeForceCompaction(VM vm)
Invokes force compaction on disk store by MBean interface
|
void |
invokeForceRoll(VM vm)
Invokes force roll on disk store by MBean interface
|
void |
makeDiskCompactable(VM vm1)
Makes the disk compactable by adding and deleting some entries
|
protected void |
putAnEntry(VM vm0)
Put an entry to region
|
void |
setUp()
Sets up the test (noop).
|
void |
tearDown2()
Tears down the test.
|
void |
testDiskBackupAllMembers() |
void |
testDiskCompact()
Tests Disk Compaction from a MemberMbean which is at cache level.
|
void |
testDiskCompactRemote()
Tests Disk Compaction from a MemberMbean which is at cache level.
|
void |
testDiskOps()
Tests various operations defined on DiskStore Mbean
|
void |
testMissingMembers()
Checks the test case of missing disks and revoking them through MemberMbean
interfaces
|
protected void |
updateTheEntry(VM vm1)
Update Entry
|
protected void |
updateTheEntry(VM vm1,
String value)
Update an Entry
|
protected void |
validatePersistentRegion(VM vm)
Validates a persistent region
|
checkManagedNodeCleanup, checkManagementExceptions, checkProxyCleanup, closeAllCache, closeCache, closeRegion, createCache, createCache, createCache, createCache, createDistributedRegion, createDistributedRegionAsync, createLocalRegion, createManagementCache, createPartitionRegion, createSubRegion, disableManagement, enableManagement, getCache, getManagedNodeList, getManagementService, getManagingNode, getMember, getMemberId, initManagement, putInDistributedRegion, runManagementTaskAdhoc, startBeingManagingNode, startManagingNode, startManagingNodeAsync, stopManagingNode, waitForAllMembers, waitForProxy, waitForRefreshaddExpectedException, addExpectedException, addHydraProperties, attachDebugger, checkBBFlag, cleanupAllVms, clearBBFlag, crashDistributedSystem, crashDistributedSystem, createLogWriter, disconnectAllFromDS, disconnectFromDS, dumpAllStacks, dumpMyThreads, dumpStack, dumpStack, dumpStack, dumpStackTrace, fail, getAllDistributedSystemProperties, getDistributedSystemProperties, getDUnitLocatorAddress, getDUnitLocatorPort, getDUnitLocatorString, getDUnitLogLevel, getIPLiteral, getLogWriter, getLonerSystem, getMcastSystem, getMcastSystem, getRepeatTimeoutMs, getServerHostName, getSystem, getSystem, getTestClass, getTestName, getUniqueName, getVMCount, incBBFlag, invokeInEveryVM, invokeInEveryVM, invokeInEveryVM, invokeInEveryVM, invokeInEveryVMRepeatingIfNecessary, invokeInLocator, invokeRepeatingIfNecessary, isConnectedToDS, join, noteTiming, pause, pause, perVMSetUp, realTearDown, setDiskStoreForGateway, setSystem, setTestName, staticPause, tearDown, unregisterAllDataSerializersFromAllVms, unregisterDataSerializerInThisVM, unregisterInstantiatorsInThisVM, waitForBBFlag, waitForCriterion, waitMutexassertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, toStringpublic void setUp()
throws Exception
DistributedTestCasesetUp in class ManagementTestBaseExceptionpublic void tearDown2()
throws Exception
DistributedTestCaseDistributedTestCase.tearDown() method, and should be over ridden in its place.tearDown2 in class ManagementTestBaseExceptionpublic void testDiskCompact()
throws Throwable
public void testDiskCompactRemote()
throws Throwable
public void testDiskOps()
throws Throwable
public void testMissingMembers()
throws Throwable
Throwableprotected void checkNavigation(VM vm, com.gemstone.gemfire.distributed.DistributedMember diskMember, String diskStoreName)
protected static com.gemstone.gemfire.distributed.DistributedMember getMember()
throws Exception
vm - reference to VMExceptionpublic void invokeFlush(VM vm)
vm - reference to VMpublic void invokeForceRoll(VM vm)
vm - reference to VMpublic void invokeForceCompaction(VM vm)
vm - reference to VMpublic void makeDiskCompactable(VM vm1) throws Exception
Exceptionpublic void compactAllDiskStores(VM vm1) throws Exception
vm1 - reference to VMExceptionpublic void backupAllMembers(VM managingVM) throws Exception
vm1 - reference to VMExceptionpublic void compactDiskStoresRemote(VM managingVM) throws Exception
vm1 - reference to VMExceptionprotected void checkIfContainsFileWithExt(String fileExtension) throws Exception
fileExtension - file extensionExceptionprotected void updateTheEntry(VM vm1)
vm1 - reference to VMprotected void updateTheEntry(VM vm1, String value)
vm1 - reference to VMvalue - Value which is updatedprotected void putAnEntry(VM vm0)
vm0 - reference to VMprotected void closeRegion(VM vm)
vm - reference to VMprotected void createPersistentRegion(VM vm) throws Throwable
vm - reference to VMThrowableprotected AsyncInvocation createPersistentRegionAsync(VM vm)
vm - reference to VMprotected void validatePersistentRegion(VM vm)
vm - reference to VMprotected File getDiskDirForVM(VM vm)
vm - reference to VMCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.