Class DocumentTypeManagerConfigurer

  • All Implemented Interfaces:
    com.yahoo.config.subscription.ConfigSubscriber.SingleSubscriber<DocumentmanagerConfig>

    public class DocumentTypeManagerConfigurer
    extends java.lang.Object
    implements com.yahoo.config.subscription.ConfigSubscriber.SingleSubscriber<DocumentmanagerConfig>
    Configures the Vespa document manager from a config id.
    Author:
    Einar M R Rosenvinge
    • Constructor Detail

      • DocumentTypeManagerConfigurer

        public DocumentTypeManagerConfigurer​(DocumentTypeManager manager)
    • Method Detail

      • 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)
      • configure

        public void configure​(DocumentmanagerConfig config)
        Called by the configuration system to register document types based on documentmanager.cfg.
        Specified by:
        configure in interface com.yahoo.config.subscription.ConfigSubscriber.SingleSubscriber<DocumentmanagerConfig>
        Parameters:
        config - the instance representing config in documentmanager.cfg.