Class ShardHandlerFactory
- java.lang.Object
-
- org.apache.solr.handler.component.ShardHandlerFactory
-
- Direct Known Subclasses:
HttpShardHandlerFactory
public abstract class ShardHandlerFactory extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static PluginInfo
DEFAULT_SHARDHANDLER_INFO
-
Constructor Summary
Constructors Constructor Description ShardHandlerFactory()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract void
close()
abstract ShardHandler
getShardHandler()
static ShardHandlerFactory
newInstance(PluginInfo info, SolrResourceLoader loader)
Create a new ShardHandlerFactory instancevoid
setSecurityBuilder(HttpClientBuilderPlugin clientBuilderPlugin)
-
-
-
Field Detail
-
DEFAULT_SHARDHANDLER_INFO
public static final PluginInfo DEFAULT_SHARDHANDLER_INFO
-
-
Method Detail
-
getShardHandler
public abstract ShardHandler getShardHandler()
-
close
public abstract void close()
-
setSecurityBuilder
public void setSecurityBuilder(HttpClientBuilderPlugin clientBuilderPlugin)
-
newInstance
public static ShardHandlerFactory newInstance(PluginInfo info, SolrResourceLoader loader)
Create a new ShardHandlerFactory instance- Parameters:
info
- a PluginInfo object defining which type to create. If null, the defaultHttpShardHandlerFactory
will be usedloader
- a SolrResourceLoader used to find the ShardHandlerFactory classes- Returns:
- a new, initialized ShardHandlerFactory instance
-
-