WorkerPool Class
- java.
lang. Object - com.
azure. resourcemanager. appservice. fluent. models. WorkerPool
- com.
Implements
public final class WorkerPool
implements JsonSerializable<WorkerPool>
Worker pool of an App Service Environment.
Constructor Summary
| Constructor | Description |
|---|---|
| WorkerPool() |
Creates an instance of Worker |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Compute |
computeMode()
Get the compute |
|
static
Worker |
fromJson(JsonReader jsonReader)
Reads an instance of Worker |
| List<String> |
instanceNames()
Get the instance |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Worker |
withComputeMode(ComputeModeOptions computeMode)
Set the compute |
|
Worker |
withWorkerCount(Integer workerCount)
Set the worker |
|
Worker |
withWorkerSize(String workerSize)
Set the worker |
|
Worker |
withWorkerSizeId(Integer workerSizeId)
Set the worker |
| Integer |
workerCount()
Get the worker |
| String |
workerSize()
Get the worker |
| Integer |
workerSizeId()
Get the worker |
Methods inherited from java.lang.Object
Constructor Details
WorkerPool
public WorkerPool()
Creates an instance of WorkerPool class.
Method Details
computeMode
public ComputeModeOptions computeMode()
Get the computeMode property: Shared or dedicated app hosting.
Returns:
fromJson
public static WorkerPool fromJson(JsonReader jsonReader)
Reads an instance of WorkerPool from the JsonReader.
Parameters:
Returns:
Throws:
instanceNames
public List<String> instanceNames()
Get the instanceNames property: Names of all instances in the worker pool (read only).
Returns:
toJson
validate
public void validate()
Validates the instance.
withComputeMode
public WorkerPool withComputeMode(ComputeModeOptions computeMode)
Set the computeMode property: Shared or dedicated app hosting.
Parameters:
Returns:
withWorkerCount
public WorkerPool withWorkerCount(Integer workerCount)
Set the workerCount property: Number of instances in the worker pool.
Parameters:
Returns:
withWorkerSize
public WorkerPool withWorkerSize(String workerSize)
Set the workerSize property: VM size of the worker pool instances.
Parameters:
Returns:
withWorkerSizeId
public WorkerPool withWorkerSizeId(Integer workerSizeId)
Set the workerSizeId property: Worker size ID for referencing this worker pool.
Parameters:
Returns:
workerCount
public Integer workerCount()
Get the workerCount property: Number of instances in the worker pool.
Returns:
workerSize
public String workerSize()
Get the workerSize property: VM size of the worker pool instances.
Returns:
workerSizeId
public Integer workerSizeId()
Get the workerSizeId property: Worker size ID for referencing this worker pool.
Returns: