com.faunos.skwish.sys.mgr
Class Environment

java.lang.Object
  extended by com.faunos.util.cc.SchedulingService
      extended by com.faunos.skwish.sys.mgr.Environment

public class Environment
extends SchedulingService

A SchedulingService shared across all loaded SegmentStores.

Author:
Babak Farhang

Field Summary
protected static Logger logger
           
 
Method Summary
static Environment getInstance()
          Returns the singleton instance.
protected  int getThreadPoolSize(int schedulerCount)
          Returns the number of threads the pool will maintain given the specified number of schedulers.
 void shutdown()
           
 
Methods inherited from class com.faunos.util.cc.SchedulingService
addScheduler, getMaxThreadPoolSize, setMaxThreadPoolSize, signalWorkAvailable, waitPeriodMillis
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected static final Logger logger
Method Detail

getInstance

public static Environment getInstance()
Returns the singleton instance.


getThreadPoolSize

protected int getThreadPoolSize(int schedulerCount)
Description copied from class: SchedulingService
Returns the number of threads the pool will maintain given the specified number of schedulers.

(The actual number of threads will be bounded by the max thread pool size property.)

Overrides:
getThreadPoolSize in class SchedulingService
Returns:
schedulerCount == 0 ? 0 : schedulerCount + 2

shutdown

public void shutdown()
Overrides:
shutdown in class SchedulingService


SourceForge.net Logo