|
Oracle® Fusion Middleware Java API Reference for Oracle Coherence 12c (12.1.3.0.0) E47890-01 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
com.tangosol.net.proxy.DefaultProxyServiceThreadPoolSizing
public class DefaultProxyServiceThreadPoolSizing
Default ThreadPoolSizingStrategy implementation for ProxyService.
This implementation will attempt to ensure that the thread pool will be sized to meet client demand. When the thread pool reaches its size limit, a warning message is logged.
| Nested Class Summary | |
|---|---|
protected class |
DefaultProxyServiceThreadPoolSizing.PoolContextPoolContext holds the working view of the usage of the thread pool throughout the analysis and is used to adjust the pool size during analysis. |
| Field Summary | |
|---|---|
protected DefaultProxyServiceThreadPoolSizing.PoolContext |
m_ctxLastThe last analysis context. |
protected boolean |
m_fPrintWarningA flag to indicate if a warning message should be printed. |
protected long |
m_ltdLastPrintTimeThe last time in milliseconds, that a warning message was printed. |
protected ThreadPoolManager |
m_mgrPoolThe ThreadPoolManager. |
static int |
PRINT_WARNING_INTERVALThe time interval for printing the warning message. |
| Constructor Summary | |
|---|---|
DefaultProxyServiceThreadPoolSizing()Default constructor. |
|
| Method Summary | |
|---|---|
int |
adjustPoolSize()Analyze the thread usage of the thread pool. |
protected int |
adjustPoolSize(DefaultProxyServiceThreadPoolSizing.PoolContext ctx)Analyze the load statistics using the specified analysis context and return the target pool size if adjustment is necessary. |
java.lang.String |
getDescription()Return a human-readable description of the state of the ThreadPoolSizingStrategy. |
DefaultProxyServiceThreadPoolSizing.PoolContext |
getLastPoolContext()Return the last PoolContext. |
ThreadPoolManager |
getManager()Return the ThreadPoolManager this ThreadPoolSizingStrategy is bound to. |
void |
init(ThreadPoolManager mgr)Initialize the ThreadPoolSizingStrategy and bind it to the specified manager. |
DefaultProxyServiceThreadPoolSizing.PoolContext |
instantiatePoolContext()Factory method. |
void |
setLastPoolContext(DefaultProxyServiceThreadPoolSizing.PoolContext ctx)Set the last PoolContext. |
| Field Detail |
|---|
public static final int PRINT_WARNING_INTERVAL
protected ThreadPoolManager m_mgrPool
protected DefaultProxyServiceThreadPoolSizing.PoolContext m_ctxLast
protected boolean m_fPrintWarning
protected long m_ltdLastPrintTime
| Constructor Detail |
|---|
public DefaultProxyServiceThreadPoolSizing()
| Method Detail |
|---|
public ThreadPoolManager getManager()
public DefaultProxyServiceThreadPoolSizing.PoolContext getLastPoolContext()
public void setLastPoolContext(DefaultProxyServiceThreadPoolSizing.PoolContext ctx)
ctx - the PoolContextpublic void init(ThreadPoolManager mgr)
init in interface ThreadPoolSizingStrategymgr - the ThreadPoolManager this strategy will be bound topublic int adjustPoolSize()
The mutation of the statistics information exposed by the Coherence thread pool for the duration of this method call should have minimum impact on the target thread pool size.
adjustPoolSize in interface ThreadPoolSizingStrategypublic java.lang.String getDescription()
getDescription in interface ThreadPoolSizingStrategyprotected int adjustPoolSize(DefaultProxyServiceThreadPoolSizing.PoolContext ctx)
ctx - the analysis contextpublic DefaultProxyServiceThreadPoolSizing.PoolContext instantiatePoolContext()
|
Oracle® Fusion Middleware Java API Reference for Oracle Coherence 12c (12.1.3.0.0) E47890-01 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||