public class HierCache extends Object
| Constructor and Description |
|---|
HierCache() |
| Modifier and Type | Method and Description |
|---|---|
static void |
acquireThreadLocalConnection()
A Hydra INIT task that sets the threadlocal connection of this thread.
|
static void |
clearMembershipCounters()
A Hydra INIT task that zeros out the MembershipListener counters
after the servers & clients come up (the first time).
|
static void |
doGetBatch()
Performs a bunch of gets on the
hierarchical cache.
|
static boolean |
endSnapshot()
End a JProbe snapshot
|
static int |
getNumClients() |
static String |
getStackTrace(Throwable aThrowable) |
static boolean |
initBlackboard()
A STARTTASK that initializes the blackboard to keep track of the
last time something was killed.
|
static void |
initEdgeRegion()
A Hydra INIT task that initialize the test region in an edge
client according to the configurations in
ConfigPrms. |
static void |
initServerRegion()
Initializes the test region in the cache server VM according to
the configurations in
ConfigPrms. |
static void |
killClientVm()
Hydra CLOSETASK to cause client to kill itself immediately with
a mean kill.
|
static void |
killSomething()
A Hydra TASK that chooses a test component (either randomly or
{@linkplain HctPrms#toggleKill alternately) such as a cache
server or the "database" that it accesses and kills it.
|
static void |
recycleClientConnection()
Hydra TASK to cause client to recycle connection to the distributed
system (should appear as memberLeft & memberJoined events to the
BridgeMembershipListener
|
static void |
reportAverages()
A Hydra ENDTASK that prints out mean values for
loadTime/loadsCompleted and getTime/gets on edge and server
|
static void |
restartComponent(String comp,
BridgeHelper.Endpoint endpoint) |
static boolean |
startSnapshot()
Begin a JProbe snapshot
|
static void |
stopServers() |
static void |
validateMembershipEvents()
A Hydra CLOSETASK to validate membershipEvents (expected vs.
|
public static void initServerRegion()
ConfigPrms.public static void initEdgeRegion()
ConfigPrms.public static void acquireThreadLocalConnection()
public static void clearMembershipCounters()
BBoard.expectedServerJoinedEventspublic static int getNumClients()
public static boolean startSnapshot()
public static boolean endSnapshot()
public static void doGetBatch()
public static boolean initBlackboard()
public static void killSomething()
throws ClientVmNotFoundException
ClientVmNotFoundExceptionpublic static void stopServers()
throws ClientVmNotFoundException
ClientVmNotFoundExceptionpublic static void restartComponent(String comp, BridgeHelper.Endpoint endpoint) throws ClientVmNotFoundException
ClientVmNotFoundExceptionpublic static void recycleClientConnection()
BBoard.expectedClientDeparted,
BBoard.expectedClientJoinedpublic static void killClientVm()
throws ClientVmNotFoundException
ClientVmNotFoundExceptionBBoard.expectedClientCrashedEventspublic static void validateMembershipEvents()
BBoard.expectedServerCrashedEvents,
BBoard.actualServerCrashedEvents,
BBoard.expectedServerDepartedEvents,
BBoard.actualServerDepartedEvents,
BBoard.expectedServerJoinedEvents,
BBoard.actualServerJoinedEvents,
BBoard.expectedClientCrashedEvents,
BBoard.actualClientCrashedEvents,
BBoard.expectedClientDepartedEvents,
BBoard.actualClientDepartedEvents,
BBoard.expectedClientJoinedEvents,
BBoard.actualClientJoinedEventspublic static void reportAverages()
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.