public class Connection_Tester
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Connection_Tester.Connection_Exception
An exception for reporting problems with connection testing.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ID
Class identification name with source code version and date.
|
Constructor and Description |
---|
Connection_Tester(PIRL.Database.Database database) |
Modifier and Type | Method and Description |
---|---|
void |
test_connection()
Performs a simple test of the user's database connection.
|
public static final java.lang.String ID
public void test_connection() throws Connection_Tester.Connection_Exception
If there is a problem with the connection, this method throws a Connection_Tester.Connection_Exception
. The exception's message contains an attempt to
diagnose the cause of the connection failure.
Any connection made during this test is closed before the test is ended; this behavior does not apply to an already open connection, however, which will be untouched.
Connection_Tester.Connection_Exception
- if there is a problem connecting to the
database; the original cause of this exception is chained along if
applicable.Copyright \ (C) Arizona Board of Regents on behalf of the \ Planetary Image Research Laboratory, Lunar and \ Planetary Laboratory at the University of Arizona