public final class BackendFactory extends Object
Modifier and Type | Method and Description |
---|---|
static ExecutorService |
buildWorkersExecutor(Properties properties,
String indexManagerName)
Builds an ExecutorService to run backend work.
|
static BackendQueueProcessor |
createBackend(DirectoryBasedIndexManager indexManager,
WorkerBuildContext context,
Properties properties) |
static BackendQueueProcessor |
createBackend(String backend,
DirectoryBasedIndexManager indexManager,
WorkerBuildContext context,
Properties properties) |
static int |
getWorkerQueueSize(Properties properties) |
static int |
getWorkerThreadPoolSize(Properties properties) |
static boolean |
isConfiguredAsSync(Properties properties) |
public static BackendQueueProcessor createBackend(DirectoryBasedIndexManager indexManager, WorkerBuildContext context, Properties properties)
public static BackendQueueProcessor createBackend(String backend, DirectoryBasedIndexManager indexManager, WorkerBuildContext context, Properties properties)
public static boolean isConfiguredAsSync(Properties properties)
properties
- the configuration to parsepublic static ExecutorService buildWorkersExecutor(Properties properties, String indexManagerName)
properties
- Might optionally contain configuration options for the ExecutorServiceindexManagerName
- The indexManager going to be linked to this ExecutorServicepublic static int getWorkerThreadPoolSize(Properties properties)
public static int getWorkerQueueSize(Properties properties)
Copyright © 2006-2015 Red Hat, Inc. All Rights Reserved