MUM.resourceMngService
Class CPUAndBandwidthResourceBroker

java.lang.Object
  extended byMUM.resourceMngService.CPUAndBandwidthResourceBroker
All Implemented Interfaces:
ICPUStatusNotifier, IResourceBroker

public class CPUAndBandwidthResourceBroker
extends java.lang.Object
implements IResourceBroker, ICPUStatusNotifier

This interface describe the Resource Broker


Constructor Summary
CPUAndBandwidthResourceBroker(Path path, int bandAmount)
          Constructor
 
Method Summary
 void addCPUStatusListener(ICPUStatusListener cpuListener)
          This method let the QoS managers to register themselves as listener for the CPU status events.
 IResourceResponse isResources(IResourceRequest currReq)
          This method verifies if there are enough resource for the request and returns a responce.
protected  void notifyCPUStatus(CPUStatusEvent event)
          This method is called to notify the listeners of the CPU status
 void removeCPUStatusListener(ICPUStatusListener cpuListener)
          This method let the cpu status listeners to de-register themselves as listener for the CPU status events.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CPUAndBandwidthResourceBroker

public CPUAndBandwidthResourceBroker(Path path,
                                     int bandAmount)
Constructor

Method Detail

isResources

public IResourceResponse isResources(IResourceRequest currReq)
This method verifies if there are enough resource for the request and returns a responce.

Specified by:
isResources in interface IResourceBroker

addCPUStatusListener

public void addCPUStatusListener(ICPUStatusListener cpuListener)
This method let the QoS managers to register themselves as listener for the CPU status events.

Specified by:
addCPUStatusListener in interface ICPUStatusNotifier

removeCPUStatusListener

public void removeCPUStatusListener(ICPUStatusListener cpuListener)
This method let the cpu status listeners to de-register themselves as listener for the CPU status events.

Specified by:
removeCPUStatusListener in interface ICPUStatusNotifier

notifyCPUStatus

protected void notifyCPUStatus(CPUStatusEvent event)
This method is called to notify the listeners of the CPU status



Copyright © 2004 Luca Foschini