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(java.lang.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(java.lang.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 testNullRemoteCommand()
throws java.lang.Exception
java.lang.Exceptionpublic void testEmptyRemoteCommand()
throws java.lang.Exception
java.lang.Exceptionpublic void testValidRemoteCommands()
throws java.lang.Exception
java.lang.Exceptionpublic void testInvalidRemoteCommands()
throws java.lang.Exception
java.lang.Exceptionprotected int getSystemMemberApplicationCount()
public void testGetSystemMemberApplications()
throws java.lang.Throwable
java.lang.Throwableprotected void subTestGetSystemMemberApplications()
throws java.lang.Exception
java.lang.Exceptionpublic void testLookupSystemMember()
throws java.lang.Throwable
java.lang.Throwablepublic void checkSystemMember(com.gemstone.gemfire.admin.SystemMember mbr)
throws java.lang.Exception
java.lang.Exceptionpublic void testAlerts()
throws java.lang.Exception
java.lang.Exceptionpublic void testMembershipEvents()
throws java.lang.Exception
SystemMembershipEvents occur properly. We
connect and disconnect from distributed system. We can't really
test crashing.java.lang.Exceptionpublic void testReadOnlyDistributedSystemConfig()
DistributedSystemConfig after an
AdminDistributedSystem has been created throws an
exception.public void testCloneDistributedSystemConfig()
throws java.lang.Exception
DistributedSystemConfig returns
an equivalent object.java.lang.Exceptionpublic void testManageDistributionLocators()
throws java.lang.Exception
java.lang.Exceptionpublic void testXmlConfig()
throws java.lang.Exception
AdminDistributedSystem configured
using an XML file has the correct configuration.java.lang.Exceptionpublic void testExistingLocator()
throws java.lang.Exception
java.lang.Exceptionpublic void xxtestManyNewMcastMembers()
throws java.lang.Exception
java.lang.Exceptionpublic void xxxtestManyNewLocatorMembers()
throws java.lang.Exception
java.lang.Exceptionprotected void waitForStartTime(long startTime)
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.