Package com.microej.kf.util.module
Interface SandboxedModule
-
- All Known Implementing Classes:
ApplicationModule,KernelModule
public interface SandboxedModuleA 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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description FileSystemResourcesControllergetFileSystemResourceController()Returns the file system resource controller of this module.java.lang.StringgetIdentifier()Returns the module identifier.ej.kf.ModulegetModule()Returns the associated KF module (aFeaturefor an application module orKernelfor the kernel module.NetResourcesControllergetNetworkResourceController()Returns the network resource controller of this module.ej.kf.Feature.StategetState()Returns the state of the module.
-
-
-
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 (aFeaturefor an application module orKernelfor 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.
-
-