|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.yarn.server.resourcemanager.scheduler.fifo.FifoScheduler
@InterfaceAudience.LimitedPrivate(value="yarn") @InterfaceStability.Evolving public class FifoScheduler
| Field Summary | |
|---|---|
static String |
MAXIMUM_ALLOCATION
|
static String |
MINIMUM_ALLOCATION
|
| Constructor Summary | |
|---|---|
FifoScheduler()
|
|
| Method Summary | |
|---|---|
Allocation |
allocate(org.apache.hadoop.yarn.api.records.ApplicationAttemptId applicationAttemptId,
List<org.apache.hadoop.yarn.api.records.ResourceRequest> ask,
List<org.apache.hadoop.yarn.api.records.ContainerId> release)
The main api between the ApplicationMaster and the Scheduler. |
org.apache.hadoop.yarn.api.records.Resource |
getMaximumResourceCapability()
Get maximum allocatable Resource. |
org.apache.hadoop.yarn.api.records.Resource |
getMinimumResourceCapability()
Get minimum allocatable Resource. |
SchedulerNodeReport |
getNodeReport(org.apache.hadoop.yarn.api.records.NodeId nodeId)
Get node resource usage report. |
int |
getNumClusterNodes()
Get the number of nodes available in the cluster. |
org.apache.hadoop.yarn.api.records.QueueInfo |
getQueueInfo(String queueName,
boolean includeChildQueues,
boolean recursive)
Get queue information |
List<org.apache.hadoop.yarn.api.records.QueueUserACLInfo> |
getQueueUserAclInfo()
Get acls for queues for current user. |
QueueMetrics |
getRootQueueMetrics()
Get the root queue for the scheduler. |
SchedulerAppReport |
getSchedulerAppInfo(org.apache.hadoop.yarn.api.records.ApplicationAttemptId applicationAttemptId)
Get the Scheduler app for a given app attempt Id. |
void |
handle(SchedulerEvent event)
|
void |
recover(Store.RMState state)
|
void |
reinitialize(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.yarn.server.security.ContainerTokenSecretManager containerTokenSecretManager,
RMContext rmContext)
Re-initialize the ResourceScheduler. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
@InterfaceAudience.Private public static final String MINIMUM_ALLOCATION
@InterfaceAudience.Private public static final String MAXIMUM_ALLOCATION
| Constructor Detail |
|---|
public FifoScheduler()
| Method Detail |
|---|
public org.apache.hadoop.yarn.api.records.Resource getMinimumResourceCapability()
YarnSchedulerResource.
getMinimumResourceCapability in interface YarnSchedulerpublic int getNumClusterNodes()
YarnScheduler
getNumClusterNodes in interface YarnSchedulerpublic org.apache.hadoop.yarn.api.records.Resource getMaximumResourceCapability()
YarnSchedulerResource.
getMaximumResourceCapability in interface YarnScheduler
public void reinitialize(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.yarn.server.security.ContainerTokenSecretManager containerTokenSecretManager,
RMContext rmContext)
throws IOException
ResourceSchedulerResourceScheduler.
reinitialize in interface ResourceSchedulerconf - configurationcontainerTokenSecretManager - token-secret manager
IOException
public Allocation allocate(org.apache.hadoop.yarn.api.records.ApplicationAttemptId applicationAttemptId,
List<org.apache.hadoop.yarn.api.records.ResourceRequest> ask,
List<org.apache.hadoop.yarn.api.records.ContainerId> release)
YarnScheduler
allocate in interface YarnSchedulerAllocation for the applicationpublic SchedulerAppReport getSchedulerAppInfo(org.apache.hadoop.yarn.api.records.ApplicationAttemptId applicationAttemptId)
YarnScheduler
getSchedulerAppInfo in interface YarnSchedulerapplicationAttemptId - the id of the application attempt
public void handle(SchedulerEvent event)
handle in interface org.apache.hadoop.yarn.event.EventHandler<SchedulerEvent>
public org.apache.hadoop.yarn.api.records.QueueInfo getQueueInfo(String queueName,
boolean includeChildQueues,
boolean recursive)
YarnScheduler
getQueueInfo in interface YarnSchedulerqueueName - queue nameincludeChildQueues - include child queues?recursive - get children queues?
public List<org.apache.hadoop.yarn.api.records.QueueUserACLInfo> getQueueUserAclInfo()
YarnScheduler
getQueueUserAclInfo in interface YarnSchedulerpublic void recover(Store.RMState state)
recover in interface Recoverablepublic SchedulerNodeReport getNodeReport(org.apache.hadoop.yarn.api.records.NodeId nodeId)
YarnScheduler
getNodeReport in interface YarnSchedulerSchedulerNodeReport for the node or null
if nodeId does not point to a defined node.public QueueMetrics getRootQueueMetrics()
YarnScheduler
getRootQueueMetrics in interface YarnScheduler
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||