org.apache.storm.scheduler.resource.strategies.scheduling

## Class BaseResourceAwareStrategy.ObjectResources

- java.lang.Object
- - org.apache.storm.scheduler.resource.strategies.scheduling.BaseResourceAwareStrategy.ObjectResources

- Enclosing class:
    BaseResourceAwareStrategy

      protected static class BaseResourceAwareStrategy.ObjectResources
      extends Object

  class to keep track of resources on a rack or node.

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `NormalizedResourceOffer` | `availableResources`
    `double` | `effectiveResources`
    `String` | `id`
    `NormalizedResourceOffer` | `totalResources`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `ObjectResources(BaseResourceAwareStrategy.ObjectResources other)`
    `ObjectResources(String id)`
    `ObjectResources(String id, NormalizedResourceOffer availableResources, NormalizedResourceOffer totalResources, double effectiveResources)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `String` | `toString()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Field Detail

    - #### id

          public final String id

    - #### availableResources

          public NormalizedResourceOffer availableResources

    - #### totalResources

          public NormalizedResourceOffer totalResources

    - #### effectiveResources

          public double effectiveResources

  - ### Constructor Detail

    - #### ObjectResources

          public ObjectResources(String id)

    - #### ObjectResources

          public ObjectResources(BaseResourceAwareStrategy.ObjectResources other)

    - #### ObjectResources

          public ObjectResources(String id,
                                 NormalizedResourceOffer availableResources,
                                 NormalizedResourceOffer totalResources,
                                 double effectiveResources)

  - ### Method Detail

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

Copyright © 2019 The Apache Software Foundation. All rights reserved.