public final class WorkerSpecification extends AbstractProgramSpecification implements PropertyProvider
Worker
s.Constructor and Description |
---|
WorkerSpecification(String className,
String name,
String description,
Map<String,String> properties,
Set<String> datasets,
Resources resources,
int instances,
Map<String,Plugin> plugins) |
Modifier and Type | Method and Description |
---|---|
Set<String> |
getDatasets() |
int |
getInstances() |
Map<String,String> |
getProperties()
Returns an immutable Map of all properties.
|
String |
getProperty(String key)
Return the property value of a given key.
|
Resources |
getResources() |
getClassName, getDescription, getName, getPlugins
public Map<String,String> getProperties()
PropertyProvider
getProperties
in interface PropertyProvider
public String getProperty(String key)
PropertyProvider
getProperty
in interface PropertyProvider
key
- for getting specific property value.null
if not such key exists.public Resources getResources()
Worker
public int getInstances()
Copyright © 2024 Cask Data, Inc. Licensed under the Apache License, Version 2.0.