Package com.yahoo.document
Class DocumentTypeManagerConfigurer
java.lang.Object
com.yahoo.document.DocumentTypeManagerConfigurer
- All Implemented Interfaces:
com.yahoo.config.subscription.ConfigSubscriber.SingleSubscriber<DocumentmanagerConfig>
public class DocumentTypeManagerConfigurer
extends Object
implements com.yahoo.config.subscription.ConfigSubscriber.SingleSubscriber<DocumentmanagerConfig>
Configures the Vespa document manager from a config id.
- Author:
- Einar M R Rosenvinge
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigure(DocumentmanagerConfig config) Called by the configuration system to register document types based on documentmanager.cfg.static com.yahoo.config.subscription.ConfigSubscriberconfigure(DocumentTypeManager manager, String configId) Makes the DocumentTypeManager subscribe on its config.com.yahoo.config.subscription.ConfigSubscriberstatic DocumentTypeManager
-
Constructor Details
-
DocumentTypeManagerConfigurer
-
-
Method Details
-
configure
public static com.yahoo.config.subscription.ConfigSubscriber configure(DocumentTypeManager manager, 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
-
configureNewManager
-
configure
Called by the configuration system to register document types based on documentmanager.cfg.- Specified by:
configurein interfacecom.yahoo.config.subscription.ConfigSubscriber.SingleSubscriber<DocumentmanagerConfig>- Parameters:
config- the instance representing config in documentmanager.cfg.
-