Class FeaturePolicyEnforcer


  • public class FeaturePolicyEnforcer
    extends java.lang.Object
    This 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
      void applyPolicy​(ej.kf.Feature app)
      Applies a policy to the given feature.
      void applyThreadPriority​(ej.kf.Feature app)
      Sets priority to the threads owned by the given feature.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FeaturePolicyEnforcer

        public FeaturePolicyEnforcer()
        Initializes a policy enforcer.
    • Method Detail

      • applyPolicy

        public void applyPolicy​(ej.kf.Feature app)
                         throws org.json.me.JSONException,
                                java.io.IOException
        Applies 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.