public class ServicePlacement extends Object implements Serializable
RemoteApiVersion#VERSION_1_24
Modifier and Type | Field and Description |
---|---|
static long |
serialVersionUID |
Constructor and Description |
---|
ServicePlacement() |
Modifier and Type | Method and Description |
---|---|
List<String> |
getConstraints() |
Integer |
getMaxReplicas()
Getter for maxReplicas
|
List<SwarmNodePlatform> |
getPlatforms() |
void |
setPlatforms(List<SwarmNodePlatform> platforms) |
ServicePlacement |
withConstraints(List<String> constraints) |
ServicePlacement |
withMaxReplicas(int maxReplicas)
Specifies the maximum amount of replicas / tasks that can run on one node.
|
public static final long serialVersionUID
@CheckForNull public List<String> getConstraints()
constraints
public ServicePlacement withConstraints(List<String> constraints)
constraints
public List<SwarmNodePlatform> getPlatforms()
platforms
public void setPlatforms(List<SwarmNodePlatform> platforms)
public ServicePlacement withMaxReplicas(int maxReplicas)
maxReplicas
- Max number of replicasIllegalArgumentException
- if maxReplicas is less than 0public Integer getMaxReplicas()
Copyright © 2020. All rights reserved.