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) |
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.
|
Resources |
getResources()
Returns the resources requirements for the service handler.
|
getClassName, getDescription, getName, getPlugins
public Map<String,HttpServiceHandlerSpecification> getHandlers()
public int getInstances()
public Resources getResources()
Copyright © 2021 Cask Data, Inc. Licensed under the Apache License, Version 2.0.