| Package | Description |
|---|---|
| org.apache.slider.server.appmaster.state |
| Modifier and Type | Field and Description |
|---|---|
NodeInstance |
OutstandingRequest.node
Node the request is for -may be null
|
| Modifier and Type | Field and Description |
|---|---|
List<NodeInstance> |
OutstandingRequest.nodes
A list of all possible nodes to list in an AA request.
|
| Modifier and Type | Method and Description |
|---|---|
NodeInstance |
RoleHistory.findRecentNodeForNewInstance(RoleStatus role)
Find a node for use
|
NodeInstance |
RoleHistory.getExistingNodeInstance(org.apache.hadoop.yarn.api.records.Container container)
Get the node instance of a container if there's an entry in the history
|
NodeInstance |
RoleHistory.getExistingNodeInstance(String hostname)
Get the node instance of a host if defined
|
NodeInstance |
NodeMap.getOrCreate(String hostname)
Get the node instance for the specific node -creating it if needed
|
NodeInstance |
RoleHistory.getOrCreateNodeInstance(org.apache.hadoop.yarn.api.records.Container container)
Get the node instance of a container -always returns something
|
NodeInstance |
RoleHistory.getOrCreateNodeInstance(String hostname)
Get the node instance for the specific node -creating it if needed
|
| Modifier and Type | Method and Description |
|---|---|
List<NodeInstance> |
RoleHistory.cloneRecentNodeList(int role)
Get a clone of the available list
|
List<NodeInstance> |
NodeMap.findAllNodesForRole(int role,
String label)
Scan the current node map for all nodes capable of hosting an instance
|
List<NodeInstance> |
RoleHistory.findNodeForNewAAInstance(RoleStatus role)
Find a node for use
|
List<NodeInstance> |
RoleHistory.getRecentNodesForRoleId(int id)
Get the nodes for an ID -may be null
|
List<NodeInstance> |
RoleHistory.listActiveNodes(int role)
Get the list of active nodes ...
|
List<NodeInstance> |
NodeMap.listActiveNodes(int role)
List the active nodes
|
List<NodeInstance> |
OutstandingRequestTracker.resetOutstandingRequests(int role)
Reset list all outstanding requests for a role: return the hostnames
of any canceled requests
|
| Modifier and Type | Method and Description |
|---|---|
int |
NodeInstance.Preferred.compare(NodeInstance o1,
NodeInstance o2) |
int |
NodeInstance.MoreActiveThan.compare(NodeInstance left,
NodeInstance right) |
int |
NodeInstance.CompareNames.compare(NodeInstance left,
NodeInstance right) |
OutstandingRequest |
OutstandingRequestTracker.newRequest(NodeInstance instance,
int role)
Create a new request for the specific role.
|
OutstandingRequest |
RoleHistory.requestInstanceOnNode(NodeInstance node,
RoleStatus role,
org.apache.hadoop.yarn.api.records.Resource resource)
Request an instance on a given node.
|
| Modifier and Type | Method and Description |
|---|---|
void |
RoleHistory.insert(Collection<NodeInstance> nodes)
Insert a list of nodes into the map; overwrite any with that name.
|
void |
NodeMap.insert(Collection<NodeInstance> nodes)
Insert a list of nodes into the map; overwrite any with that name
This is a bulk operation for testing.
|
OutstandingRequest |
OutstandingRequestTracker.newAARequest(int role,
List<NodeInstance> nodes,
String label)
Create a new Anti-affine request for the specific role
|
| Constructor and Description |
|---|
OutstandingRequest(int roleId,
NodeInstance node)
Create a request
|
| Constructor and Description |
|---|
OutstandingRequest(int roleId,
List<NodeInstance> nodes)
Create an Anti-affine reques, including all listed nodes (there must be one)
as targets.
|
Copyright © 2014–2015 The Apache Software Foundation. All rights reserved.