com.deltaxml.odf
Class OdfLicenseCpuLimitException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.deltaxml.odf.OdfException
              extended by com.deltaxml.odf.OdfLicensingException
                  extended by com.deltaxml.odf.OdfLicenseCpuLimitException
All Implemented Interfaces:
Serializable

public class OdfLicenseCpuLimitException
extends OdfLicensingException

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 number of CPUs on which the software will 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.

See Also:
Serialized Form

Constructor Summary
OdfLicenseCpuLimitException(String product, int currentCpuCount, int cpuLimit)
          Constructs a new OdfLicenseContentException with a default message
OdfLicenseCpuLimitException(String message, String product, int currentCpuCount, int cpuLimit)
          Constructs a new OdfLicenseContentException with a configurable message
 
Method Summary
 int getCpuLimit()
          Reports the number of CPUs the currently activated license allows.
 int getCurrentCpuCount()
          Reports the number of CPUs on the current system
 
Methods inherited from class com.deltaxml.odf.OdfLicensingException
getProduct
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OdfLicenseCpuLimitException

public OdfLicenseCpuLimitException(String product,
                                   int currentCpuCount,
                                   int cpuLimit)
Constructs a new OdfLicenseContentException with a default message

Parameters:
product - the ODF product for which the license CPU count has been exceeded.
currentCpuCount - the number of CPUs available on the system
cpuLimit - the maximum number of CPUs specified in the license

OdfLicenseCpuLimitException

public OdfLicenseCpuLimitException(String message,
                                   String product,
                                   int currentCpuCount,
                                   int cpuLimit)
Constructs a new OdfLicenseContentException with a configurable message

Parameters:
message - the exception message
product - the ODF product for which the license CPU count has been exceeded.
currentCpuCount - the number of CPUs available on the system
cpuLimit - the maximum number of CPUs specified in the license
Method Detail

getCurrentCpuCount

public int getCurrentCpuCount()
Reports the number of CPUs on the current system

Returns:
the number of CPUs on the current system

getCpuLimit

public int getCpuLimit()
Reports the number of CPUs the currently activated license allows.

Returns:
the number of CPUs the currently activated license allows.


© 2001-2009 DeltaXML Ltd. All Rights Reserved.