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