Class LocalityGroup


  • public class LocalityGroup
    extends java.lang.Object
    A representation of an individual Locality Group. A Locality Group resides within a Locality Domain.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Set contains​(java.util.List cpus)  
      int countForeignGroups​(java.util.List cpus)
      Return the number of Latency Groups to which these cpus belong which are not part of this group.
      java.util.Set getChildren()
      Return the set of child locality groups for this instance.
      int[] getCPUIDs()
      Return the array of CPU IDs which belong to this locality group.
      int getLatency​(LocalityGroup other)
      Return the latency of the supplied group with respect to this group.
      java.lang.String toString()
      Return a string representation of this instance.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • LocalityGroup

        public LocalityGroup​(LocalityDomain domain,
                             long id,
                             LocalityGroup parent)
        Constructor.
        Parameters:
        domain - is the domain to which this instance belongs.
        id - is the id of this instance.
        parent - is the parent of this instance.
    • Method Detail

      • toString

        public java.lang.String toString()
        Return a string representation of this instance.
        Overrides:
        toString in class java.lang.Object
      • getChildren

        public java.util.Set getChildren()
        Return the set of child locality groups for this instance.
      • getCPUIDs

        public int[] getCPUIDs()
        Return the array of CPU IDs which belong to this locality group.
      • getLatency

        public int getLatency​(LocalityGroup other)
        Return the latency of the supplied group with respect to this group.
        Parameters:
        other - is another locality group belonging to the same LocalityDomain.
      • countForeignGroups

        public int countForeignGroups​(java.util.List cpus)
                               throws PoolsException
        Return the number of Latency Groups to which these cpus belong which are not part of this group.
        Parameters:
        cpus - List of cpus to be examined.
        Throws:
        PoolsException - if there is an error accessing the cpu details.