public final class Constraints extends Object
ServiceConstraint
,
and a LayoutConstraint
for the cluster.Modifier and Type | Field and Description |
---|---|
static Constraints |
EMPTY_CONSTRAINTS |
Constructor and Description |
---|
Constraints(Map<String,ServiceConstraint> serviceConstraints,
LayoutConstraint layoutConstraint,
SizeConstraint sizeConstraint) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
LayoutConstraint |
getLayoutConstraint()
Get the
LayoutConstraint for the cluster. |
Map<String,ServiceConstraint> |
getServiceConstraints()
Get the mapping from service name to
ServiceConstraint . |
SizeConstraint |
getSizeConstraint()
Get the
SizeConstraint for the cluster. |
int |
hashCode() |
String |
toString() |
public static final Constraints EMPTY_CONSTRAINTS
public Constraints(Map<String,ServiceConstraint> serviceConstraints, LayoutConstraint layoutConstraint, SizeConstraint sizeConstraint)
public Map<String,ServiceConstraint> getServiceConstraints()
ServiceConstraint
.ServiceConstraint
.public LayoutConstraint getLayoutConstraint()
LayoutConstraint
for the cluster.LayoutConstraint
for the cluster.public SizeConstraint getSizeConstraint()
SizeConstraint
for the cluster.SizeConstraint
for the cluster.Copyright © 2013-2016 Cask Data, Inc. Licensed under the Apache License, Version 2.0.