public class LeadSelectionTest extends SelectionTest
aRegion, changeLimitMS, testInstance, VmIDStr| Constructor and Description |
|---|
LeadSelectionTest() |
| Modifier and Type | Method and Description |
|---|---|
protected com.gemstone.gemfire.distributed.DistributedMember |
getCurrentMember()
Return the current lead member
|
protected int |
getNumClients()
Return the number of client members in this test as we want to stop them all.
|
protected int |
getNumMembersOfInterest()
Return the total number of lead member candidates
|
protected int |
getNumToStop()
Return the number of client members in this test as we want to stop them all.
|
static void |
HydraTask_concLeadSelectionTest()
Hydra task for concurrent lead selection test.
|
static void |
HydraTask_initializeClient()
Creates and initializes the singleton instance of LeadSelectionTest
in this VM and initializes a region.
|
static void |
HydraTask_initializeLocator()
Creates and initializes the singleton instance of LeadSelectionTest
in this VM.
|
static void |
HydraTask_serialLeadSelectionTest()
Hydra task for serial lead selection test.
|
protected void |
serialVerifyAfterStop(com.gemstone.gemfire.distributed.DistributedMember currentLead,
int totalNumStopped)
In a serial test, do verification after stopping a lead member.
|
protected Object[] |
waitForChange(com.gemstone.gemfire.distributed.DistributedMember member,
int msToSleep)
Given a member, wait for the lead member to become different than
the given member.
|
concSelectionTest, HydraTask_logMembers, initializeInstance, initializeRegion, serialSelectionTest, verifyMemberExists, waitForChangeWithTimeoutpublic static void HydraTask_initializeLocator()
public static void HydraTask_initializeClient()
public static void HydraTask_serialLeadSelectionTest()
public static void HydraTask_concLeadSelectionTest()
protected Object[] waitForChange(com.gemstone.gemfire.distributed.DistributedMember member, int msToSleep)
waitForChange in class SelectionTestmember - A distributed member or null. This method waits until
the current lead member is different than this one.msToSleep - The number of millis to sleep between checks for
the lead member.protected int getNumToStop()
getNumToStop in class SelectionTestprotected void serialVerifyAfterStop(com.gemstone.gemfire.distributed.DistributedMember currentLead,
int totalNumStopped)
serialVerifyAfterStop in class SelectionTestcurrentLead - The current lead member.totalNumStopped - The total number of members stopped (and not
yet restarted).protected com.gemstone.gemfire.distributed.DistributedMember getCurrentMember()
getCurrentMember in class SelectionTestprotected int getNumMembersOfInterest()
getNumMembersOfInterest in class SelectionTestprotected int getNumClients()
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.