Package org.apache.hadoop.hbase.http
Class TestProfileServlet
java.lang.Object
org.apache.hadoop.hbase.http.TestProfileServlet
@Tag("org.apache.hadoop.hbase.testclassification.MiscTests") @Tag("org.apache.hadoop.hbase.testclassification.SmallTests")
public class TestProfileServlet
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static voidvoidprivate static Fieldprivate javax.servlet.http.HttpServletRequestmockRequest(Map<String, String[]> paramMap, String... kvPairs) private javax.servlet.ServletConfigprivate static voidvoidprivate static voidsetLastResult(org.apache.hadoop.hbase.http.ProfileServlet.ProfileResult result) voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoid
-
Constructor Details
-
TestProfileServlet
public TestProfileServlet()
-
-
Method Details
-
resetStaticStateBeforeEach
- Throws:
Exception
-
joinStopperThreadAfterEach
- Throws:
Exception
-
testParseProfileRequestDefaults
-
testParseProfileRequestAllOptions
-
testDoGetSetsRefreshHeaderAndCallsBackend
- Throws:
Exception
-
testDoGetBackendThrowsRuntimeException
- Throws:
Exception
-
testDoGetBackendThrowsError
- Throws:
Exception
-
testDoGetRejectsNonPositivePidWith400
- Throws:
Exception
-
testDoGetSecondRequestRejectedWithConflictWhenProfilingActive
- Throws:
Exception
-
testDoGetDeletesOrphanFileWhenExecuteStartThrows
- Throws:
Exception
-
testStopperThreadWritesPaddedErrorOnExecuteStopFailure
- Throws:
Exception
-
testStopperThreadWritesPaddedErrorOnInterrupt
- Throws:
Exception
-
testLastReturns404WhenNoResultCached
- Throws:
Exception
-
testLastRedirectsToMostRecentResult
- Throws:
Exception
-
testLastResultOverwrittenByNewSession
- Throws:
Exception
-
testGetOutputFallsBackToHtmlOnUnknownValue
-
testGetEventFallsBackToCpuOnUnknownValue
-
testDurationClampedToMinOne
-
testDurationCappedAtMax
-
testIsAvailableDetectReturnsBackendWhenLibraryPresent
-
testGetAsyncProfilerHomeSystemProperty
-
testDisabledServletReturns500WithDefaultReason
- Throws:
Exception
-
testDisabledServletReturns500WithCustomReason
- Throws:
Exception
-
mockRequest
private javax.servlet.http.HttpServletRequest mockRequest(Map<String, String[]> paramMap, String... kvPairs) -
mockServletConfig
- Throws:
Exception
-
lastResultField
- Throws:
Exception
-
setLastResult
private static void setLastResult(org.apache.hadoop.hbase.http.ProfileServlet.ProfileResult result) throws Exception - Throws:
Exception
-
clearLastResult
- Throws:
Exception
-
resetProfiling
- Throws:
Exception
-