public interface ServiceConfigurer extends PluginConfigurer, DatasetConfigurer
| Modifier and Type | Method and Description |
|---|---|
void |
addHandlers(Iterable<? extends HttpServiceHandler> handlers)
Add a a list of request handlers to the Service.
|
void |
setDescription(String description)
Set description of the Service.
|
void |
setInstances(int instances)
Sets the number of instances needed for the server that runs all
HttpServiceHandlers of this Service. |
void |
setName(String name)
Set name of the service.
|
default void |
setProperties(Map<String,String> properties)
Sets a set of properties that will be available through the
ServiceSpecification.getProperties()
at runtime. |
void |
setResources(Resources resources)
Sets the resources requirements for the server that runs all
HttpServiceHandlers of this Service. |
evaluateMacros, evaluateMacros, usePlugin, usePlugin, usePluginClass, usePluginClassaddDatasetModule, addDatasetType, createDataset, createDataset, createDataset, createDatasetvoid setName(String name)
name - of the service.void setDescription(String description)
description - to set for the Service.void addHandlers(Iterable<? extends HttpServiceHandler> handlers)
handlers - to serve requests.void setResources(Resources resources)
HttpServiceHandlers of this Service.resources - The requirements.void setInstances(int instances)
HttpServiceHandlers of this Service.instances - Number of instances, must be > 0.default void setProperties(Map<String,String> properties)
ServiceSpecification.getProperties()
at runtime.properties - the properties to setCopyright © 2022 Cask Data, Inc. Licensed under the Apache License, Version 2.0.