Package com.yahoo.document
Class DocumentTypeManagerConfigurer
- java.lang.Object
-
- com.yahoo.document.DocumentTypeManagerConfigurer
-
- All Implemented Interfaces:
com.yahoo.config.subscription.ConfigSubscriber.SingleSubscriber<com.yahoo.document.config.DocumentmanagerConfig>
public class DocumentTypeManagerConfigurer extends java.lang.Object implements com.yahoo.config.subscription.ConfigSubscriber.SingleSubscriber<com.yahoo.document.config.DocumentmanagerConfig>
Configures the Vespa document manager from a config id.- Author:
- Einar M R Rosenvinge
-
-
Constructor Summary
Constructors Constructor Description DocumentTypeManagerConfigurer(DocumentTypeManager manager)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
configure(com.yahoo.document.config.DocumentmanagerConfig config)
Called by the configuration system to register document types based on documentmanager.cfg.static com.yahoo.config.subscription.ConfigSubscriber
configure(DocumentTypeManager manager, java.lang.String configId)
Makes the DocumentTypeManager subscribe on its config.com.yahoo.config.subscription.ConfigSubscriber
configure(java.lang.String configId)
static DocumentTypeManager
configureNewManager(com.yahoo.document.config.DocumentmanagerConfig config)
static com.yahoo.compress.CompressionType
toCompressorType(com.yahoo.document.config.DocumentmanagerConfig.Datatype.Structtype.Compresstype.Enum value)
-
-
-
Constructor Detail
-
DocumentTypeManagerConfigurer
public DocumentTypeManagerConfigurer(DocumentTypeManager manager)
-
-
Method Detail
-
toCompressorType
public static com.yahoo.compress.CompressionType toCompressorType(com.yahoo.document.config.DocumentmanagerConfig.Datatype.Structtype.Compresstype.Enum value)
-
configure
public static com.yahoo.config.subscription.ConfigSubscriber configure(DocumentTypeManager manager, java.lang.String configId)
Makes the DocumentTypeManager subscribe on its config.
Proper Vespa setups will use a config id which looks up the document manager config at the document server, but it is also possible to read config from a file containing a document manager configuration by using
file:path-to-document-manager.cfg
.- Parameters:
configId
- the config ID to use
-
configure
public com.yahoo.config.subscription.ConfigSubscriber configure(java.lang.String configId)
-
configureNewManager
public static DocumentTypeManager configureNewManager(com.yahoo.document.config.DocumentmanagerConfig config)
-
configure
public void configure(com.yahoo.document.config.DocumentmanagerConfig config)
Called by the configuration system to register document types based on documentmanager.cfg.- Specified by:
configure
in interfacecom.yahoo.config.subscription.ConfigSubscriber.SingleSubscriber<com.yahoo.document.config.DocumentmanagerConfig>
- Parameters:
config
- the instance representing config in documentmanager.cfg.
-
-