cluster5.server.datastorage
Class ConnectionSource

java.lang.Object
  extended by cluster5.server.datastorage.ConnectionSource

public class ConnectionSource
extends java.lang.Object


Method Summary
static void destroy()
           
static java.sql.Connection getConnection()
           
static void main(java.lang.String[] args)
           
static void printDataSourceStats(javax.sql.DataSource ds)
           
static javax.sql.DataSource setupDataSource()
           
static void shutdownDataSource(javax.sql.DataSource ds)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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