Méthode | Description | |
---|---|---|
QueryThreadPool ( int connectionPoolSize, int cxnRefreshTime, |
||
queue ( QueryThread qt, string siteId ) : void | ||
reallocateConnection ( gov.va.medora.mdo.dao.AbstractConnection cxn ) : void | ||
shutdown ( ) : void |
Méthode | Description | |
---|---|---|
QueryThreadChanged ( object sender, |
||
QueueChanged ( object sender, |
||
addConnection ( string sitecode, gov.va.medora.mdo.dao.AbstractConnection cxn ) : void | ||
connectSite ( object site ) : void | ||
connectWithReturn ( Site site, bool addToCxnCollection ) : gov.va.medora.mdo.dao.AbstractConnection |
This function is the heart of the connection pool dictionary. It connects to a site and attaches the event handlers by executing a standard gettimestamp request so the connection can immediately begin processing queued query threads
|
|
getAvailableConnection ( string siteId ) : gov.va.medora.mdo.dao.AbstractConnection |
This function should locate a connection marked as available, verify the connection is still active (using a simple getTimestamp query), re-allocate any encountered failed connections out of process, and return the first connection that is available and connected
|
|
heartbeat ( ) : void | ||
peekAvailableConnection ( string siteId ) : bool |
This function shouldn't be utilized in production as thread safety isn't guaranteed between peek and getAvailableConnection. For controlled testing only
|
|
reconnect ( gov.va.medora.mdo.dao.AbstractConnection cxn ) : void |
Disconnect old connection and try reconnecting to same site. Set old connection to new connection if the reconnent is successful
|
|
start ( ) : void | ||
startAsync ( ) : void | ||
startQuick ( ) : void | ||
threadedReallocateConnection ( object cxn ) : void |
public QueryThreadPool ( int connectionPoolSize, int cxnRefreshTime, |
||
connectionPoolSize | int | |
cxnRefreshTime | int | |
account | ||
creds | ||
siteTable | SiteTable | |
cxnSites | IList |
|
Résultat | System |
public queue ( QueryThread qt, string siteId ) : void | ||
qt | QueryThread | |
siteId | string | |
Résultat | void |
public reallocateConnection ( gov.va.medora.mdo.dao.AbstractConnection cxn ) : void | ||
cxn | gov.va.medora.mdo.dao.AbstractConnection | |
Résultat | void |