| Modifier and Type | Method and Description |
|---|---|
long |
getExecutionCounter()
Gets the current execution counter, since the last reset.
|
int |
getExecutionQuota()
Gets the execution quota.
|
String |
getName()
Gets the name of this module.
|
Principal |
getProvider()
Gets the identification of this module provider.
|
byte[] |
getUID()
Gets a byte sequence that uniquely identifies the current module.
|
String |
getVersion()
Gets a
String that represents this module version. |
void |
setExecutionQuota(int quota)
Sets the execution quota allocated to the threads owned by this
Module. |
public long getExecutionCounter()
setExecutionQuota(int) is called on a Module.Module, or 0 if execution counting is disabled.public int getExecutionQuota()
Module in execution units.public String getName()
public Principal getProvider()
public byte[] getUID()
public String getVersion()
String that represents this module version.public void setExecutionQuota(int quota)
Module. This quota is expressed in execution units.
A Thread owned by a Module which execution quota set to 0 will never be scheduled.
A Thread owned by a Module which execution quota set to -1 is always eligible to scheduling.
Calling this method induces a global reset of the quantum of all the Modules.
A Module is created with an execution quota set to -1.
When the quota of all Module is set to -1, the execution counting is disabled.
When the quota of a Module is set to a value other than -1, the execution counting is enabled.
quota - the execution quota to set to this Module in execution unitsIllegalArgumentException - if the given quota is lower than -1.