Package com.microej.kf.util.policy
Class FeaturePolicyEnforcer
- java.lang.Object
-
- com.microej.kf.util.policy.FeaturePolicyEnforcer
-
public class FeaturePolicyEnforcer extends java.lang.ObjectThis class enforces a policy on a feature that defines resource limitations (CPU, RAM, flash, network bandwidth), priority and criticality.
-
-
Constructor Summary
Constructors Constructor Description FeaturePolicyEnforcer()Initializes a policy enforcer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapplyPolicy(ej.kf.Feature app)Applies a policy to the given feature.voidapplyThreadPriority(ej.kf.Feature app)Sets priority to the threads owned by the given feature.
-
-
-
Method Detail
-
applyPolicy
public void applyPolicy(ej.kf.Feature app) throws org.json.me.JSONException, java.io.IOExceptionApplies a policy to the given feature.- Parameters:
app- the feature to which the policy will be applied.- Throws:
org.json.me.JSONException- if file parsing fails.java.io.IOException- if I/O errors occur.
-
applyThreadPriority
public void applyThreadPriority(ej.kf.Feature app)
Sets priority to the threads owned by the given feature.- Parameters:
app- the feature to which the priority will be applied.
-
-