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 Constructor Description DocumentTypeManagerConfigurer(DocumentTypeManager manager)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
configure(DocumentmanagerConfig config)
Called by the configuration system to register document types based on documentmanager.cfg.static com.yahoo.config.subscription.ConfigSubscriber
configure(DocumentTypeManager manager, String configId)
Makes the DocumentTypeManager subscribe on its config.com.yahoo.config.subscription.ConfigSubscriber
configure(String configId)
static DocumentTypeManager
configureNewManager(DocumentmanagerConfig config)
static com.yahoo.compress.CompressionType
toCompressorType(DocumentmanagerConfig.Datatype.Structtype.Compresstype.Enum value)
Deprecated.
-
-
-
Constructor Detail
-
DocumentTypeManagerConfigurer
public DocumentTypeManagerConfigurer(DocumentTypeManager manager)
-
-
Method Detail
-
toCompressorType
@Deprecated public static com.yahoo.compress.CompressionType toCompressorType(DocumentmanagerConfig.Datatype.Structtype.Compresstype.Enum value)
Deprecated.Deprecated and will go away on Vespa 8
-
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
public com.yahoo.config.subscription.ConfigSubscriber configure(String configId)
-
configureNewManager
public static DocumentTypeManager configureNewManager(DocumentmanagerConfig config)
-
configure
public void configure(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<DocumentmanagerConfig>
- Parameters:
config
- the instance representing config in documentmanager.cfg.
-
-