javapool
Class ObjectPoolManager

java.lang.Object
  |
  +--javapool.ObjectPoolManager

public class ObjectPoolManager
extends java.lang.Object

Static class used to maintain a collection of object pools


Constructor Summary
ObjectPoolManager()
           
 
Method Summary
static void changeObjectPoolStatus()
          Changes the ObjectPool status (changes to reverse of current status)
static logcontrol.LogControl getLogControl()
          Returns the LogControl object
static java.lang.Object getObject(java.lang.String name)
          Returns an object of the type specified by the String objectName
static java.lang.String[] getObjectPoolNames()
          Returns array of Strings corresponding to the name of each ObjectPool currently loaded
static int getPort()
          Returns the server port being used
static boolean isObjectPoolActive()
          Returns the ObjectPool status (Active or Innactive)
static int objectPoolCount()
          Returns # of ObjectPools being managed through system
static void printObjectPoolStats(java.io.BufferedWriter bw, int index)
          Calls the printStats method for the ObjectPool object within the objectPool array specified by the index supplied
static void printSystemStats(java.io.BufferedWriter bw)
          Writes system stats to the BufferedWriter supplied
static void restartObjectPool()
          Restarts ObjectPool
static void returnObject(java.lang.String name, java.lang.Object obj)
          Returns an object of the type specified by the String objectName to the corresponding object pool
static void shutdown()
          Innactivates the system
static void systemActivate()
          System Initializer; This method instantiates all of the object pools into the objectPool array and opens a server socket used for management of pooling system; The system uses port 5432.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectPoolManager

public ObjectPoolManager()
Method Detail

systemActivate

public static void systemActivate()
System Initializer; This method instantiates all of the object pools into the objectPool array and opens a server socket used for management of pooling system; The system uses port 5432.

shutdown

public static void shutdown()
Innactivates the system

getPort

public static int getPort()
Returns the server port being used

getObject

public static java.lang.Object getObject(java.lang.String name)
                                  throws java.lang.Exception
Returns an object of the type specified by the String objectName

returnObject

public static void returnObject(java.lang.String name,
                                java.lang.Object obj)
                         throws java.lang.Exception
Returns an object of the type specified by the String objectName to the corresponding object pool

getLogControl

public static logcontrol.LogControl getLogControl()
Returns the LogControl object

printSystemStats

public static void printSystemStats(java.io.BufferedWriter bw)
Writes system stats to the BufferedWriter supplied

isObjectPoolActive

public static boolean isObjectPoolActive()
Returns the ObjectPool status (Active or Innactive)

changeObjectPoolStatus

public static void changeObjectPoolStatus()
Changes the ObjectPool status (changes to reverse of current status)

restartObjectPool

public static void restartObjectPool()
Restarts ObjectPool

getObjectPoolNames

public static java.lang.String[] getObjectPoolNames()
Returns array of Strings corresponding to the name of each ObjectPool currently loaded

printObjectPoolStats

public static void printObjectPoolStats(java.io.BufferedWriter bw,
                                        int index)
Calls the printStats method for the ObjectPool object within the objectPool array specified by the index supplied

objectPoolCount

public static int objectPoolCount()
Returns # of ObjectPools being managed through system