public class CPUCountException extends LicenseException
An exception indicating that the license used to activate the software does not support the number of CPUs being used.
An activation key or license contains a 'cpu limit' which specifies the maximum CPUs DeltaXML is allowed to run. The definition
of a CPU is whatever is returned by the Runtime.availableProcessors()
method; which typically counts 'cores'
in multi-core systems. This checking and therefore this exception is typically turned-off in DeltaXML Enterprise licenses.
Please see our licensing Q&A for a discussion of disabling CPUs and virtualization.
Note: the getErrorCode()
method is provided for compatibility with earlier XML Compare releases; when
called with this exception the result will be: 11
Constructor and Description |
---|
CPUCountException(int currentCpuCount,
int cpuLimit)
Constructs a new CPUCountException appropriate for use in the XML Compare code.
|
Modifier and Type | Method and Description |
---|---|
int |
getCpuLimit()
Reports the number of CPUs the currently activated license allows.
|
int |
getCurrentCpuCount()
Reports the number of CPUs on the current system.
|
getErrorCode, getSeverity
getCause, getThrowable
public CPUCountException(int currentCpuCount, int cpuLimit)
currentCpuCount
- The number of CPUs on the current systemcpuLimit
- The cpu limit associated with the activated licensepublic int getCurrentCpuCount()
public int getCpuLimit()