|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.experlog.base.ESStore
public class ESStore
Field Summary | |
---|---|
ConnectionPool |
connectionPool_
|
Constructor Summary | |
---|---|
ESStore(javax.servlet.ServletConfig cfg)
|
Method Summary | |
---|---|
void |
endClient(java.lang.String cid)
Drop a specified client: releases all resources allocated for that client (database connection, etc...) |
OpenClient |
findClient(java.lang.String clientId)
get an ESClient object from the clientPool pool |
OpenClient |
getClient(java.lang.String id,
javax.servlet.http.HttpServletRequest req)
get an client id from the servlet request if the client already exists, returns it or creates a new one, creates a new jdbc connection and store it in the clientPool object if the client exists, just set the cookie Called by ESServlet (upon HTTP request) |
int |
getClientPool()
|
java.util.Hashtable |
getClientPoolTable()
|
ConnectionPool |
getConnectionPool()
|
java.lang.String |
getConPool()
|
static ESStore |
getInstance()
|
static ESStore |
getInstance(javax.servlet.ServletConfig cfg)
|
java.lang.String |
getLevel()
|
java.lang.String |
getLogRequest()
|
int |
getMaxClients()
|
java.lang.String |
getOutput()
|
AppConfiguration |
getShopConfig()
|
AppConfiguration |
getShopConfiguration()
returns the shop configuration for the current shop |
java.lang.String |
getShopName()
|
java.util.Properties |
getShopProps()
|
int |
getState()
|
java.util.Enumeration |
listClients()
get all the ESClient objects from the clientPool pool |
static java.lang.String |
makeId(java.lang.String name,
boolean unique)
|
protected static boolean |
onWindows()
|
void |
setClientPoolTable(java.util.Hashtable table)
|
void |
setConnectionPool(ConnectionPool conn)
|
void |
setLevel(java.lang.String newLevel)
|
void |
setShopConfig(AppConfiguration conf)
|
void |
setShopName(java.lang.String shop)
|
void |
setShopProps(java.util.Properties shopProps)
|
void |
setState(int state)
|
void |
tick(java.lang.Object info)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public ConnectionPool connectionPool_
Constructor Detail |
---|
public ESStore(javax.servlet.ServletConfig cfg)
Method Detail |
---|
public static ESStore getInstance()
public static ESStore getInstance(javax.servlet.ServletConfig cfg)
protected static boolean onWindows()
public static java.lang.String makeId(java.lang.String name, boolean unique)
public OpenClient getClient(java.lang.String id, javax.servlet.http.HttpServletRequest req) throws java.lang.Exception
java.lang.Exception
public OpenClient findClient(java.lang.String clientId)
public java.util.Enumeration listClients()
public void endClient(java.lang.String cid)
endClient
in interface Store
cid
- the ID of the client to droppublic AppConfiguration getShopConfiguration()
getShopConfiguration
in interface Store
public int getClientPool()
public java.lang.String getConPool()
public java.lang.String toString()
toString
in class java.lang.Object
public void setShopName(java.lang.String shop)
public void setClientPoolTable(java.util.Hashtable table)
public void setConnectionPool(ConnectionPool conn)
public void setShopConfig(AppConfiguration conf)
public void setShopProps(java.util.Properties shopProps)
public java.lang.String getShopName()
getShopName
in interface Store
public java.util.Hashtable getClientPoolTable()
public ConnectionPool getConnectionPool()
public AppConfiguration getShopConfig()
public java.util.Properties getShopProps()
public int getState()
public void setState(int state)
public int getMaxClients()
public void setLevel(java.lang.String newLevel)
public java.lang.String getLevel()
public java.lang.String getOutput()
public java.lang.String getLogRequest()
getLogRequest
in interface Store
public void tick(java.lang.Object info)
tick
in interface ESTimer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |