cluster5.server.datastorage
Class ConnectionSource
java.lang.Object
cluster5.server.datastorage.ConnectionSource
public class ConnectionSource
- extends java.lang.Object
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
setupDataSource
public static javax.sql.DataSource setupDataSource()
printDataSourceStats
public static void printDataSourceStats(javax.sql.DataSource ds)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
shutdownDataSource
public static void shutdownDataSource(javax.sql.DataSource ds)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
getConnection
public static java.sql.Connection getConnection()
throws java.sql.SQLException
- Returns:
- open connection to the database
- Throws:
java.sql.SQLException
destroy
public static void destroy()
main
public static void main(java.lang.String[] args)
throws java.lang.Exception
- Throws:
java.lang.Exception