public final class ServiceSpecification extends AbstractProgramSpecification
Service
.Constructor and Description |
---|
ServiceSpecification(String className,
String name,
String description,
Map<String,HttpServiceHandlerSpecification> handlers,
Resources resources,
int instances,
Map<String,Plugin> plugins) |
ServiceSpecification(String className,
String name,
String description,
Map<String,HttpServiceHandlerSpecification> handlers,
Resources resources,
int instances,
Map<String,Plugin> plugins,
Map<String,String> properties) |
Modifier and Type | Method and Description |
---|---|
Map<String,HttpServiceHandlerSpecification> |
getHandlers()
Returns an immutable map from handler name to handler specification.
|
int |
getInstances()
Returns the number of instances for the service handler.
|
Map<String,String> |
getProperties() |
String |
getProperty(String key) |
Resources |
getResources()
Returns the resources requirements for the service handler.
|
getClassName, getDescription, getName, getPlugins
public ServiceSpecification(String className, String name, String description, Map<String,HttpServiceHandlerSpecification> handlers, Resources resources, int instances, Map<String,Plugin> plugins)
public Map<String,HttpServiceHandlerSpecification> getHandlers()
public int getInstances()
public Resources getResources()
Copyright © 2024 Cask Data, Inc. Licensed under the Apache License, Version 2.0.