public class ArbitraryWorkerResourceSpecFactory extends WorkerResourceSpecFactory
WorkerResourceSpecFactory
that creates arbitrary WorkerResourceSpec
. Used for scenarios where the values in the default WorkerResourceSpec
does not matter.Modifier and Type | Field and Description |
---|---|
static ArbitraryWorkerResourceSpecFactory |
INSTANCE |
Modifier and Type | Method and Description |
---|---|
WorkerResourceSpec |
createDefaultWorkerResourceSpec(Configuration configuration) |
workerResourceSpecFromConfigAndCpu
public static final ArbitraryWorkerResourceSpecFactory INSTANCE
public WorkerResourceSpec createDefaultWorkerResourceSpec(Configuration configuration)
createDefaultWorkerResourceSpec
in class WorkerResourceSpecFactory
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.