com.faunos.skwish.sys.mgr
Class Environment
java.lang.Object
   com.faunos.util.cc.SchedulingService
com.faunos.util.cc.SchedulingService
       com.faunos.skwish.sys.mgr.Environment
com.faunos.skwish.sys.mgr.Environment
- public class Environment 
- extends SchedulingService
A SchedulingService shared across all loaded
 SegmentStores.
- Author:
- Babak Farhang
 
| 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 java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
logger
protected static final Logger logger
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:
- getThreadPoolSizein class- SchedulingService
 
- 
- Returns:
- schedulerCount == 0 ? 0 : schedulerCount + 2
 
shutdown
public void shutdown()
- 
- Overrides:
- shutdownin class- SchedulingService
 
- 
 
