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(java.lang.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(java.lang.String fileExtension)
Checks if a file with the given extension is present
|
protected void |
checkNavigation(VM vm,
com.gemstone.gemfire.distributed.DistributedMember diskMember,
java.lang.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 java.io.File |
getBackupDir(java.lang.String name) |
protected java.io.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,
java.lang.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 DiskManagementDUnitTest(java.lang.String name)
throws java.lang.Exception
java.lang.Exceptionpublic void setUp()
throws java.lang.Exception
DistributedTestCasesetUp in class ManagementTestBasejava.lang.Exceptionpublic void tearDown2()
throws java.lang.Exception
DistributedTestCaseDistributedTestCase.tearDown() method, and should be over ridden in its place.tearDown2 in class ManagementTestBasejava.lang.Exceptionpublic void testDiskCompact()
throws java.lang.Throwable
java.lang.Exceptionjava.lang.Throwablepublic void testDiskCompactRemote()
throws java.lang.Throwable
java.lang.Exceptionjava.lang.Throwablepublic void testDiskOps()
throws java.lang.Throwable
java.lang.Exceptionjava.lang.Throwablepublic void testDiskBackupAllMembers()
throws java.lang.Throwable
java.lang.Throwablepublic void testMissingMembers()
throws java.lang.Throwable
java.lang.Throwableprotected void checkNavigation(VM vm, com.gemstone.gemfire.distributed.DistributedMember diskMember, java.lang.String diskStoreName)
protected static com.gemstone.gemfire.distributed.DistributedMember getMember()
throws java.lang.Exception
vm - reference to VMjava.lang.Exceptionpublic 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 java.lang.Exception
java.lang.Exceptionpublic void compactAllDiskStores(VM vm1) throws java.lang.Exception
vm1 - reference to VMjava.lang.Exceptionpublic void backupAllMembers(VM managingVM) throws java.lang.Exception
vm1 - reference to VMjava.lang.Exceptionpublic void compactDiskStoresRemote(VM managingVM) throws java.lang.Exception
vm1 - reference to VMjava.lang.Exceptionprotected void checkIfContainsFileWithExt(java.lang.String fileExtension)
throws java.lang.Exception
fileExtension - file extensionjava.lang.Exceptionprotected void updateTheEntry(VM vm1)
vm1 - reference to VMprotected void updateTheEntry(VM vm1, java.lang.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 java.lang.Throwable
vm - reference to VMjava.lang.Throwableprotected AsyncInvocation createPersistentRegionAsync(VM vm)
vm - reference to VMprotected void validatePersistentRegion(VM vm)
vm - reference to VMprotected java.io.File getDiskDirForVM(VM vm)
vm - reference to VMprotected static java.io.File getBackupDir(java.lang.String name)
throws java.lang.Exception
java.lang.ExceptionCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.