public class DistributedSystemDUnitTest extends AdminDUnitTestCase
AdminDistributedSystem
administration API.| Modifier and Type | Class and Description |
|---|---|
static class |
DistributedSystemDUnitTest.TestAlertListener
An
AlertListener used for testing. |
static class |
DistributedSystemDUnitTest.TestSystemMembershipListener
An
SystemMembershipListener used for testing. |
DistributedTestCase.ExpectedException, DistributedTestCase.WaitCriterion, DistributedTestCase.WaitCriterion2agent, AGENT_VM, debug, NUM_RETRY, RETRY_INTERVAL, shutdownThread, tcSystem, urlStringcachelogPerTest, reconnect, system, testName| Constructor and Description |
|---|
DistributedSystemDUnitTest(String name)
Creates a new
DistributedSystemDUnitTest |
| Modifier and Type | Method and Description |
|---|---|
static void |
assertEquals(com.gemstone.gemfire.admin.DistributedSystemConfig config1,
com.gemstone.gemfire.admin.DistributedSystemConfig config2)
Asserts that two
DistributedSystemConfigs have
exactly the same configuration. |
static void |
assertEquals(com.gemstone.gemfire.admin.DistributionLocatorConfig[] array1,
com.gemstone.gemfire.admin.DistributionLocatorConfig[] array2)
Asserts that two arrays of
DistributionLocators have
exactly the same configuration. |
static void |
assertEquals(com.gemstone.gemfire.admin.DistributionLocatorConfig l1,
com.gemstone.gemfire.admin.DistributionLocatorConfig l2)
Asserts that two
DistributionLocators have exactly
the same configuration. |
void |
checkSystemMember(com.gemstone.gemfire.admin.SystemMember mbr) |
protected int |
getSystemMemberApplicationCount() |
protected void |
subTestGetSystemMemberApplications() |
void |
testAlerts()
Tests that alerts are delivered correctly.
|
void |
testCloneDistributedSystemConfig()
Tests that cloning a
DistributedSystemConfig returns
an equivalent object. |
void |
testDefaultRemoteCommand() |
void |
testEmptyRemoteCommand() |
void |
testExistingLocator()
Tests that a distribution locator that was not created by the
admin API is visible using the admin API.
|
void |
testGetSystemMemberApplications() |
void |
testInvalidRemoteCommands() |
void |
testLookupSystemMember()
Tests the lookupSystemMember operation.
|
void |
testManageDistributionLocators()
Tests starting locators with the admin API and connecting to the
distributed system they form.
|
void |
testMembershipEvents()
Tests that
SystemMembershipEvents occur properly. |
void |
testNullRemoteCommand() |
void |
testReadOnlyDistributedSystemConfig()
Tests that attempting to modify a
DistributedSystemConfig after an
AdminDistributedSystem has been created throws an
exception. |
void |
testValidRemoteCommands()
A simple methods that tests that we can set the remote command
|
void |
testXmlConfig()
Tests that an
AdminDistributedSystem configured
using an XML file has the correct configuration. |
protected void |
waitForStartTime(long startTime) |
void |
xxtestManyNewMcastMembers()
test whether several VMs starting distributed systems concurrently find each
other during startup.
|
void |
xxxtestManyNewLocatorMembers()
test whether several VMs starting distributed systems concurrently find each
other during startup
|
assertAgent, assertLog, createDistributedSystem, disconnect, getAdminDistributedSystem, getDistributedMember, getDistributionConfig, getLocators, isJMX, isRMI, isSSL, reconnectToSystem, setUp, startAgent, stopAgent, tearDown2addExceptionTag1, basicGetCache, beginCacheXml, cleanDiskDirs, closeAllCache, closeCache, createLonerCache, createMcastCache, createMcastCache, createRegion, createRegion, createRootRegion, createRootRegion, disconnectFromDS, finishCacheXml, finishCacheXml, getCache, getCache, getCache, getCache, getClientCache, getDiskDirs, getGemfireCache, getInternalRegionArguments, getRootRegion, getRootRegion, hasCache, remoteTearDown, removeExceptionTag1, sendSerialMessageToAll, sendUnorderedMessageToAlladdExpectedException, addExpectedException, addHydraProperties, attachDebugger, checkBBFlag, cleanupAllVms, clearBBFlag, crashDistributedSystem, crashDistributedSystem, createLogWriter, disconnectAllFromDS, 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 DistributedSystemDUnitTest(String name)
DistributedSystemDUnitTestpublic static void assertEquals(com.gemstone.gemfire.admin.DistributedSystemConfig config1,
com.gemstone.gemfire.admin.DistributedSystemConfig config2)
DistributedSystemConfigs have
exactly the same configuration.public static void assertEquals(com.gemstone.gemfire.admin.DistributionLocatorConfig[] array1,
com.gemstone.gemfire.admin.DistributionLocatorConfig[] array2)
DistributionLocators have
exactly the same configuration.public static void assertEquals(com.gemstone.gemfire.admin.DistributionLocatorConfig l1,
com.gemstone.gemfire.admin.DistributionLocatorConfig l2)
DistributionLocators have exactly
the same configuration.public void testDefaultRemoteCommand()
public void testValidRemoteCommands()
throws Exception
Exceptionpublic void testInvalidRemoteCommands()
throws Exception
Exceptionprotected int getSystemMemberApplicationCount()
public void testGetSystemMemberApplications()
throws Throwable
Throwableprotected void subTestGetSystemMemberApplications()
throws Exception
Exceptionpublic void testLookupSystemMember()
throws Throwable
Throwablepublic void checkSystemMember(com.gemstone.gemfire.admin.SystemMember mbr)
throws Exception
Exceptionpublic void testAlerts()
throws Exception
Exceptionpublic void testMembershipEvents()
throws Exception
SystemMembershipEvents occur properly. We
connect and disconnect from distributed system. We can't really
test crashing.Exceptionpublic void testReadOnlyDistributedSystemConfig()
DistributedSystemConfig after an
AdminDistributedSystem has been created throws an
exception.public void testCloneDistributedSystemConfig()
throws Exception
DistributedSystemConfig returns
an equivalent object.Exceptionpublic void testManageDistributionLocators()
throws Exception
Exceptionpublic void testXmlConfig()
throws Exception
AdminDistributedSystem configured
using an XML file has the correct configuration.Exceptionpublic void testExistingLocator()
throws Exception
Exceptionpublic void xxtestManyNewMcastMembers()
throws Exception
Exceptionpublic void xxxtestManyNewLocatorMembers()
throws Exception
Exceptionprotected void waitForStartTime(long startTime)
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.