Class 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
    • 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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 interface com.yahoo.config.subscription.ConfigSubscriber.SingleSubscriber<com.yahoo.document.config.DocumentmanagerConfig>
        Parameters:
        config - the instance representing config in documentmanager.cfg.