public class OffHeapStressTest extends Object
| Constructor and Description |
|---|
OffHeapStressTest() |
| Modifier and Type | Method and Description |
|---|---|
static void |
checkOperationTimes()
As the test runs, it collects how long operations take.
|
static void |
checkOperationTimes(String opName,
long[] history)
Check if an operation took too long during this run
|
static void |
doDataValidationOnce() |
static void |
handleException(Throwable t)
Given a Throwable, accept it if it involves an out of off-heap memory, otherwise throw it.
|
static void |
HydraTask_createLocator()
Create locator task
|
static void |
HydraTask_initializeRegions()
Creates and initializes a server or peer.
|
static void |
HydraTask_offHeapCeilingTest()
Test task to repeatedly:
- put until other members get OOM for off-heap memory (other members should close their cache)
- do ops for a while longer
- pause and validate
- close all regions
- validate off-heap memory
- reinitialize
|
static void |
HydraTask_offHeapCeilingTestOOM()
Test task for members that are expected to get OOM for off-heap memory and close their cache.
|
static void |
HydraTask_startLocatorAndDS()
Start locator task
|
static void |
logDurationHistory()
log the history of ops in this member
|
public static void HydraTask_createLocator()
public static void HydraTask_startLocatorAndDS()
public static void HydraTask_initializeRegions()
public static void HydraTask_offHeapCeilingTest()
public static void HydraTask_offHeapCeilingTestOOM()
throws Throwable
Throwablepublic static void doDataValidationOnce()
public static void logDurationHistory()
public static void checkOperationTimes()
public static void checkOperationTimes(String opName, long[] history)
opName - The kind of operationhistory - The history of timings for this operation in this member.Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.