public class HeartbeatIT extends AbstractDriverIT
| Constructor and Description |
|---|
HeartbeatIT() |
| Modifier and Type | Method and Description |
|---|---|
static void |
setUpClass()
set up:
change the master token validity to 10 seconds
change the session token validity to 5 seconds
change the SESSION_RECORD_ACCESS_INTERVAL_SECS to 1 second
|
static void |
tearDownClass()
Reset master_token_validity, session_token_validity,
SESSION_RECORD_ACCESS_INTERVAL_SECS to default.
|
void |
testFailure()
Test no heartbeat by starting 1 thread.
|
void |
testSuccess()
Test heartbeat by starting 10 threads.
|
getConnection, getConnection, setUp, tearDownpublic static void setUpClass()
throws Exception
Exceptionpublic static void tearDownClass()
throws SQLException
SQLExceptionpublic void testSuccess()
throws SQLException
SQLExceptionpublic void testFailure()
throws SQLException
SQLExceptionCopyright © 2017. All rights reserved.