Interface SandboxedModule

  • All Known Implementing Classes:
    ApplicationModule, KernelModule

    public interface SandboxedModule
    A sandboxed module interface.

    It provides APIs to control access to resources used by the module. A module can be an application or the kernel itself.

    It allows to:

    • set the file system and the network resources usage thresholds.
    • retrieve the current resources usage state of the module.

    A module whose resources usage should be controlled must implement this interface. This interface is implemented by ApplicationModule.

    • Method Detail

      • getFileSystemResourceController

        FileSystemResourcesController getFileSystemResourceController()
        Returns the file system resource controller of this module.
        Returns:
        the file system resource controller of this module.
      • getNetworkResourceController

        NetResourcesController getNetworkResourceController()
        Returns the network resource controller of this module.
        Returns:
        the network resource controller of this module.
      • getModule

        ej.kf.Module getModule()
        Returns the associated KF module (a Feature for an application module or Kernel for the kernel module.
        Returns:
        the associated KF module.
      • getIdentifier

        java.lang.String getIdentifier()
        Returns the module identifier.
        Returns:
        the module identifier.
      • getState

        ej.kf.Feature.State getState()
        Returns the state of the module.
        Returns:
        the module state.