createContext(String, ResourceContext) method.
| Modifier and Type | Field and Description |
|---|---|
| public static final String | FRAMEWORK_CONTEXT_NAME
The name of the special, optional resource context, representing the whole OSGi framework. |
| public static final String | RES_TYPE_CPU
The name of the CPU resource type, used to monitor and control the CPU time used by a resource context. |
| public static final String | RES_TYPE_DISK_STORAGE
The name of the disk storage resource type, used to monitor and control the size of the persistent storage used by a resource context. |
| public static final String | RES_TYPE_MEMORY
The name of the memory resource type, used to monitor and control the size of the java heap used by a resource context. |
| public static final String | RES_TYPE_SOCKET
The name of the socket resource type, used to monitor and control the number of existing sockets used by a resource context. |
| public static final String | RES_TYPE_THREADS
The name of the threads resource type, used to monitor and control the number of threads created by a resource context. |
| public static final String | SYSTEM_CONTEXT_NAME
The name of the Resource Context associated with System bundle (bundle 0). |
| Modifier and Type | Method and Description |
|---|---|
| public ResourceContext | Returns: A newResourceContext instance.The name identifying the context. Names must be unique within
the framework instance. name, ResourceContext If a template is provided, the new resource context will
inherit all resource monitoring settings (enabled monitors,
thresholds) from the template. template)Creates a new |
| public ResourceContext | Returns: An existingResourceContext with the specified name, or
null if such a context doesn't existThe resource context name name)Returns the context with the specified resource context name. |
| public ResourceContext | Returns: theResourceContext associated to bundle b or null if the
bundle b does not belong to a Resource Context.bundle identifier bundleId)Returns the |
| public String[] | Returns: An array containing the names of all resource types that thisResourceMonitoringService implementation supports.Returns a list with the supported resource type names. |
| public ResourceContext[] | Returns: An array ofResourceContext objects, or an empty array,
if no contexts have been created.Lists all available |
| FRAMEWORK_CONTEXT_NAME | back to summary |
|---|---|
| public static final String FRAMEWORK_CONTEXT_NAME The name of the special, optional resource context, representing the whole OSGi framework. | |
| RES_TYPE_CPU | back to summary |
|---|---|
| public static final String RES_TYPE_CPU The name of the CPU resource type, used to monitor and control the CPU
time used by a resource context. | |
| RES_TYPE_DISK_STORAGE | back to summary |
|---|---|
| public static final String RES_TYPE_DISK_STORAGE The name of the disk storage resource type, used to monitor and control
the size of the persistent storage used by a resource context.
| |
| RES_TYPE_MEMORY | back to summary |
|---|---|
| public static final String RES_TYPE_MEMORY The name of the memory resource type, used to monitor and control the
size of the java heap used by a resource context.
| |
| RES_TYPE_SOCKET | back to summary |
|---|---|
| public static final String RES_TYPE_SOCKET The name of the socket resource type, used to monitor and control the
number of existing sockets used by a resource context.
| |
| RES_TYPE_THREADS | back to summary |
|---|---|
| public static final String RES_TYPE_THREADS The name of the threads resource type, used to monitor and control the
number of threads created by a resource context.
| |
| SYSTEM_CONTEXT_NAME | back to summary |
|---|---|
| public static final String SYSTEM_CONTEXT_NAME The name of the Resource Context associated with System bundle (bundle 0). | |
| createContext | back to summary |
|---|---|
| public ResourceContext createContext(String name, ResourceContext template) Creates a new
A
| |
| getContext | back to summary |
|---|---|
| public ResourceContext getContext(String name) Returns the context with the specified resource context name.
| |
| getContext | back to summary |
|---|---|
| public ResourceContext getContext(long bundleId) Returns the
| |
| getSupportedTypes | back to summary |
|---|---|
| public String[] getSupportedTypes() Returns a list with the supported resource type names.
| |
| listContext | back to summary |
|---|---|
| public ResourceContext[] listContext() Lists all available
| |