@InterfaceAudience.Public @InterfaceStability.Evolving public abstract class ResourceOption extends Object
| Modifier and Type | Field and Description | 
|---|---|
| static int | OVER_COMMIT_TIMEOUT_MILLIS_DEFAULTNegative value means no timeout. | 
| Constructor and Description | 
|---|
| ResourceOption() | 
| Modifier and Type | Method and Description | 
|---|---|
| protected abstract void | build() | 
| abstract int | getOverCommitTimeout()Get timeout for tolerant of resource over-commitment
 Note: negative value means no timeout so that allocated containers will
 keep running until the end even under resource over-commitment cases. | 
| abstract Resource | getResource()Get the resource of the ResourceOption. | 
| static ResourceOption | newInstance(Resource resource,
           int overCommitTimeout) | 
| protected abstract void | setOverCommitTimeout(int overCommitTimeout)Set the overcommit timeout. | 
| protected abstract void | setResource(Resource resource) | 
| String | toString() | 
public static final int OVER_COMMIT_TIMEOUT_MILLIS_DEFAULT
public static ResourceOption newInstance(Resource resource, int overCommitTimeout)
@InterfaceAudience.Private @InterfaceStability.Evolving public abstract Resource getResource()
@InterfaceAudience.Private @InterfaceStability.Evolving protected abstract void setResource(Resource resource)
@InterfaceAudience.Private @InterfaceStability.Evolving public abstract int getOverCommitTimeout()
@InterfaceAudience.Private @InterfaceStability.Evolving protected abstract void setOverCommitTimeout(int overCommitTimeout)
overCommitTimeout - Timeout in ms. Negative means no timeout.@InterfaceAudience.Private @InterfaceStability.Evolving protected abstract void build()
Copyright © 2008–2023 Apache Software Foundation. All rights reserved.