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
HttpServiceHandler s 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
HttpServiceHandler s of
this Service. |
evaluateMacros, evaluateMacros, usePlugin, usePlugin, usePluginClass, usePluginClass
addDatasetModule, addDatasetType, createDataset, createDataset, createDataset, createDataset
void 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)
HttpServiceHandler
s of
this Service.resources
- The requirements.void setInstances(int instances)
HttpServiceHandler
s 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 © 2024 Cask Data, Inc. Licensed under the Apache License, Version 2.0.