Top Description Interfaces Classes
module org.osgi.service.resourcemonitoring

Package org.osgi.service.resourcemonitoring

Annotations
@Version:1.0.1
Imports
org.osgi.annotation.versioning.Version

Resource Monitoring Package Version 1.0.

Bundles wishing to use this package must list the package in the Import-Package header of the bundle's manifest. This package has two types of users: the consumers that use the API in this package and the providers that implement the API in this package.

Example import for consumers using the API in this package:

Import-Package: org.osgi.service.resourcemonitoring; version="[1.0,2.0)"

Example import for providers implementing the API in this package:

Import-Package: org.osgi.service.resourcemonitoring; version="[1.0,1.1)"

Author
$Id: c5028cf2e75a194b7398fa066e1fa0a019a2f826 $

Interface Summary

Modifier and TypeInterface and Description
public interface
ResourceContext

Logical entity for resource accounting.

public interface
ResourceContextListener

A ResourceContextListener is notified whenever:

public interface
ResourceListener<
The type for the Resource.
T
>

A ResourceListener is an OSGi service which is notified when a Resource Context violates one of the threshold defined by the listener.

public interface
ResourceMonitor<
The type for the Resource.
T
>

Representation of the state of a resource for a resource context.

public interface
ResourceMonitorFactory<
The type for the Resource.
T
>

A Resource Monitor Factory is a service that provides Resource Monitor instances of a specific resource type (for example, CPUMonitor, MemoryMonitor...) for every Resource Context.

public interface
ResourceMonitoringService

It manages the Resource Context instances.

Class Summary

Modifier and TypeClass and Description
public class
ResourceContextEvent

A Resource Context Event instance is an event sent to Resource Context Listener instances through a call to ResourceContextListener#notify(ResourceContextEvent) method.

public class
ResourceContextException

Resource Context Exception.

public class
ResourceEvent<
The type for the Resource.
T
>

An event is sent to a ResourceListener when resource usage violates one of their thresholds.

public class
ResourceMonitorException

Resource Monitor Exception reports an invalid usage of a monitor.