public class DefaultGridProjection extends AbstractGridProjection
GridProjection
.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
REGISTERED_NAME |
PRIORITY_COMPARATOR
Constructor and Description |
---|
DefaultGridProjection()
Instantiates a new default grid projection.
|
DefaultGridProjection(org.apache.hadoop.conf.Configuration configuration)
Instantiates a new default grid projection.
|
Modifier and Type | Method and Description |
---|---|
boolean |
acceptMember(GridMember member)
Asks a projection if it accepted a member.
|
SatisfyStateData |
getSatisfyState()
Gets the satisfy state.
|
void |
setLocality(boolean locality) |
addAnyMember, addHostCountMember, addHostMember, addRackCountMember, addRackMember, canFit, getAnyCount, getAnyCountMembers, getConfiguration, getHostCount, getHostCountHosts, getHostCountMembers, getMembers, getMemory, getPriority, getProjectionData, getRackCount, getRackCountHosts, getRackCountMembers, getVirtualCores, removeMember, setConfiguration, setMemory, setPriority, setProjectionData, setVirtualCores
public static final java.lang.String REGISTERED_NAME
public DefaultGridProjection()
public DefaultGridProjection(org.apache.hadoop.conf.Configuration configuration)
configuration
- the configurationpublic SatisfyStateData getSatisfyState()
GridProjection
getSatisfyState
in interface GridProjection
getSatisfyState
in class AbstractGridProjection
public boolean acceptMember(GridMember member)
GridProjection
acceptMember
in interface GridProjection
acceptMember
in class AbstractGridProjection
member
- the grid memberpublic void setLocality(boolean locality)