Class CacheInfo

java.lang.Object
org.wildfly.common.cpu.CacheInfo

@Deprecated(forRemoval=true) public final class CacheInfo extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
Use CacheInfo instead.
A class which exposes any available cache line information for the current CPU.
Author:
David M. Lloyd
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    getCacheLevelInfo(int index)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Use CacheInfo.getCacheLevelInfo(int) instead.
    static int
    Deprecated, for removal: This API element is subject to removal in a future version.
    Use CacheInfo.getLevelEntryCount() instead.
    static int
    Deprecated, for removal: This API element is subject to removal in a future version.
    Use CacheInfo.getSmallestDataCacheLineSize() instead.
    static int
    Deprecated, for removal: This API element is subject to removal in a future version.
    Use CacheInfo.getSmallestInstructionCacheLineSize() instead.
    static void
    main(String[] args)
    Deprecated, for removal: This API element is subject to removal in a future version.
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • CacheInfo

      public CacheInfo()
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • getLevelEntryCount

      @Deprecated(forRemoval=true) public static int getLevelEntryCount()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Use CacheInfo.getLevelEntryCount() instead.
      Get the number of CPU cache level entries. If no cache information could be gathered, 0 is returned.
      Returns:
      the number of CPU cache levels, or 0 if unknown
    • getCacheLevelInfo

      @Deprecated(forRemoval=true) public static CacheLevelInfo getCacheLevelInfo(int index)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Use CacheInfo.getCacheLevelInfo(int) instead.
      Get the CPU cache level information for a cache level. The index argument must be greater than zero and less than the number of levels returned by getLevelEntryCount().
      Parameters:
      index - the cache level index
      Returns:
      the CPU cache level information
    • getSmallestDataCacheLineSize

      @Deprecated(forRemoval=true) public static int getSmallestDataCacheLineSize()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Use CacheInfo.getSmallestDataCacheLineSize() instead.
      Get the smallest known data cache line size. If no cache line sizes are known, 0 is returned. Note that smaller cache lines may exist if one or more cache line sizes are unknown.
      Returns:
      the smallest cache line size, or 0 if unknown
    • getSmallestInstructionCacheLineSize

      @Deprecated(forRemoval=true) public static int getSmallestInstructionCacheLineSize()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Use CacheInfo.getSmallestInstructionCacheLineSize() instead.
      Get the smallest known instruction cache line size. If no cache line sizes are known, 0 is returned. Note that smaller cache lines may exist if one or more cache line sizes are unknown.
      Returns:
      the smallest cache line size, or 0 if unknown
    • main

      public static void main(String[] args)
      Deprecated, for removal: This API element is subject to removal in a future version.