public class BackingStoreConstraint extends ResourceConstraint<BackingStoreConstraint>
| Constructor and Description |
|---|
BackingStoreConstraint(RealtimeThreadGroup group,
long limit)
Create a new contraint for the given RealtimeThreadGroup.
|
| Modifier and Type | Method and Description |
|---|---|
long |
available()
Determine how much of the resource are available for use, i.e., the
amount of the limit minus amount lent.
|
static BackingStoreConstraint |
currentConstraint()
Determine the processing constraint for the current execution context.
|
static BackingStoreConstraint |
currentConstraint(java.lang.Thread thread)
Determine the processing constraint for the give execution context.
|
static BackingStoreConstraint |
currentConstraint(java.lang.ThreadGroup group)
Determine the processing constraint for the give execution context.
|
long |
getBudget()
Determine the total amount of a backing store under the control of this
resource constraint instance.
|
static BackingStoreConstraint |
getRootConstraint()
Get the root instance for this constraint type.
|
boolean |
isEnforcing()
Determine whether or not enforcing is in effect.
|
void |
start()
Start applying this constraint to is tasks.
|
void |
stop()
Stop applying this constraint to is tasks.
|
long |
used()
Determine how much of the resource have been used of the amount available.
|
finalize, getNotificationHandler, getParent, getRealtimeThreadGroup, governs, governs, governs, setNotificationHandler, visitBorrowers, visitGovernedpublic BackingStoreConstraint(RealtimeThreadGroup group, long limit)
group - The RealtimeThreadGroup to govern.limit - the amount of memory to take from its parent to manage.public static BackingStoreConstraint getRootConstraint()
public static BackingStoreConstraint currentConstraint()
public static BackingStoreConstraint currentConstraint(java.lang.Thread thread)
thread - The given execution context.public static BackingStoreConstraint currentConstraint(java.lang.ThreadGroup group)
group - The given execution context.public boolean isEnforcing()
isEnforcing in class ResourceConstraint<BackingStoreConstraint>true when yes and false when not.public void start()
start in class ResourceConstraint<BackingStoreConstraint>public void stop()
stop in class ResourceConstraint<BackingStoreConstraint>public long getBudget()
public long used()
public long available()
aicas GmbH, Karlsruhe, Germany —www.aicas.com
Copyright © 2001-2024 aicas GmbH. All Rights Reserved.