public class ProjectionData extends Object
| Constructor and Description |
|---|
ProjectionData()
Instantiates a new projection data.
|
ProjectionData(Integer any)
Instantiates a new projection data.
|
ProjectionData(Integer any,
Map<String,Integer> hosts,
Map<String,Integer> racks)
Instantiates a new projection data.
|
ProjectionData(Integer any,
Map<String,Integer> hosts,
Map<String,Integer> racks,
Map<String,Object> properties)
Instantiates a new projection data.
|
ProjectionData(Integer any,
Map<String,Integer> hosts,
Map<String,Integer> racks,
Map<String,Object> properties,
String type,
Integer priority)
Instantiates a new projection data.
|
ProjectionData(Integer any,
Map<String,Integer> hosts,
Map<String,Integer> racks,
String type,
Integer priority)
Instantiates a new projection data.
|
| Modifier and Type | Method and Description |
|---|---|
Integer |
getAny() |
Map<String,Integer> |
getHosts() |
Boolean |
getLocality() |
Integer |
getMemory() |
Integer |
getPriority() |
Map<String,Object> |
getProperties() |
Map<String,Integer> |
getRacks() |
String |
getType() |
Integer |
getVirtualCores() |
ProjectionData |
merge(ProjectionData other)
Merge projection data to this instance by setting fields
from other if set.
|
void |
setAny(int any) |
void |
setHost(String host,
Integer count) |
void |
setHosts(Map<String,Integer> hosts) |
void |
setLocality(Boolean locality) |
void |
setMemory(Integer memory) |
void |
setPriority(Integer priority) |
void |
setProperties(Map<String,Object> properties) |
void |
setRack(String rack,
Integer count) |
void |
setRacks(Map<String,Integer> racks) |
void |
setType(String type) |
void |
setVirtualCores(Integer virtualCores) |
String |
toString() |
public ProjectionData()
public ProjectionData(Integer any)
any - the any countpublic ProjectionData(Integer any, Map<String,Integer> hosts, Map<String,Integer> racks)
any - the any counthosts - the host count mapracks - the rack count mappublic ProjectionData(Integer any, Map<String,Integer> hosts, Map<String,Integer> racks, Map<String,Object> properties)
any - the any counthosts - the host count mapracks - the rack count mapproperties - the extra propertiespublic ProjectionData(Integer any, Map<String,Integer> hosts, Map<String,Integer> racks, String type, Integer priority)
any - the any counthosts - the host count mapracks - the rack count maptype - the typepriority - the prioritypublic ProjectionData(Integer any, Map<String,Integer> hosts, Map<String,Integer> racks, Map<String,Object> properties, String type, Integer priority)
any - the any counthosts - the host count mapracks - the rack count mapproperties - the extra propertiestype - the typepriority - the prioritypublic String getType()
public void setType(String type)
public Integer getPriority()
public void setPriority(Integer priority)
public void setVirtualCores(Integer virtualCores)
public Integer getVirtualCores()
public void setMemory(Integer memory)
public void setLocality(Boolean locality)
public Boolean getLocality()
public Integer getMemory()
public Integer getAny()
public void setAny(int any)
public ProjectionData merge(ProjectionData other)
ProjectionData.other - the projection to merge