All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.ocap.dvr.SharedResourceUsage Maven / Gradle / Ivy

package org.ocap.dvr;

import org.ocap.resource.ResourceUsage;
import org.davic.resources.ResourceProxy;

/**
 * This interface represents a group of resources where one or more
 * resources are shared between multiple resource usages. For example,
 * when a tuner is used for an ongoing recording and also for presenting 
 * a broadcast service in a service context, and if the tuner is in a 
 * resource contention, the tuner is considered shared between a
 * RecordingResourceUsage and a ServiceContextResourceUsage.
 * If there is a resource contention for a tuner, the shared usage of tuner is
 * represented by a SharedResourceUsage where the getResourceUsages()
 * method would return both ResourceUsage instances that share the tuner.
 * 

* Because a SharedResourceUsage can contain multiple * ResourceUsage instances where different applications reserved * the resources, the value returned by the SharedResourceUsage.getAppID * method is meaningless and SHALL be null. To determine AppID instances an * application can peruse the ResourceUsage instances returned by the * getResourceUsages method. * */ public interface SharedResourceUsage extends org.ocap.resource.SharedResourceUsage { /** * Gets the list of ResourceUsage instances that share the resources * represented by this resource usage. * * @return An array of ResourceUsage instances that share one * or more resources. */ public ResourceUsage[] getResourceUsages(); /** * Gets the list of ResourceUsage instances that share a particular resource. * * @param resource The shared resource for which ResourceUsage * instances should be returned. * @return An array of ResourceUsage instances that share the * specified resource. */ public ResourceUsage[] getResourceUsages(ResourceProxy resource); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy