Top Fields Constructors Methods
org.wildfly.common.cpu

public final Class CacheLevelInfo

extends Object
Class Inheritance

Author
David M. Lloyd

Field Summary

Modifier and TypeField and Description
private final int
private final int
private final int
private final CacheType

Constructor Summary

AccessConstructor and Description
pack-priv
CacheLevelInfo(final int cacheLevel, final CacheType cacheType, final int cacheLevelSizeKB, final int cacheLineSize)

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

the level index, or 0 if unknown
getCacheLevel
()

Get the level index.

public int

Returns:

the size of this cache level in kilobytes, or 0 if unknown
getCacheLevelSizeKB
()

Get the size of this cache level in kilobytes.

public int

Returns:

the cache line size in bytes, or 0 if unknown
getCacheLineSize
()

Get the cache line size in bytes.

public CacheType

Returns:

the type of cache (not null)
getCacheType
()

Get the type of cache.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

cacheLevelback to summary
private final int cacheLevel
cacheLevelSizeKBback to summary
private final int cacheLevelSizeKB
cacheLineSizeback to summary
private final int cacheLineSize
cacheTypeback to summary
private final CacheType cacheType

Constructor Detail

CacheLevelInfoback to summary
pack-priv CacheLevelInfo(final int cacheLevel, final CacheType cacheType, final int cacheLevelSizeKB, final int cacheLineSize)

Method Detail

getCacheLevelback to summary
public int getCacheLevel()

Get the level index. For example, the level of L1 cache will be "1", L2 will be "2", etc. If the level is not known, 0 is returned.

Returns:int

the level index, or 0 if unknown

getCacheLevelSizeKBback to summary
public int getCacheLevelSizeKB()

Get the size of this cache level in kilobytes. If the size is unknown, 0 is returned.

Returns:int

the size of this cache level in kilobytes, or 0 if unknown

getCacheLineSizeback to summary
public int getCacheLineSize()

Get the cache line size in bytes. If the size is unknown, 0 is returned.

Returns:int

the cache line size in bytes, or 0 if unknown

getCacheTypeback to summary
public CacheType getCacheType()

Get the type of cache. If the type is unknown, CacheType#UNKNOWN is returned.

Returns:CacheType

the type of cache (not null)