|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--javapool.ObjectPoolManager
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 |
public ObjectPoolManager()
| Method Detail |
public static void systemActivate()
public static void shutdown()
public static int getPort()
public static java.lang.Object getObject(java.lang.String name)
throws java.lang.Exception
public static void returnObject(java.lang.String name,
java.lang.Object obj)
throws java.lang.Exception
public static logcontrol.LogControl getLogControl()
public static void printSystemStats(java.io.BufferedWriter bw)
public static boolean isObjectPoolActive()
public static void changeObjectPoolStatus()
public static void restartObjectPool()
public static java.lang.String[] getObjectPoolNames()
public static void printObjectPoolStats(java.io.BufferedWriter bw,
int index)
public static int objectPoolCount()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||