Lightweight Bartering Grid

Uses of Interface
lbg.resource.service.ResourceHandle

Packages that use ResourceHandle
lbg.peer.core.rms   
lbg.peer.core.xms   
lbg.peer.service   
lbg.resource.service   
 

Uses of ResourceHandle in lbg.peer.core.rms
 

Fields in lbg.peer.core.rms declared as ResourceHandle
 ResourceHandle ResourceUsageData.rh
           
 

Methods in lbg.peer.core.rms that return ResourceHandle
 ResourceHandle ResourceTracker.getFirstBusyLocalResource()
          Deprecated.  
 ResourceHandle ResourceTracker.getFirstBusySupplyingResource()
          Deprecated.  
 ResourceHandle ResourceTracker.getFirstIdleResource()
          Deprecated.  
 ResourceHandle ResourceTracker.getRandomBusyLocalResource()
          Returns a random busy local Resource.
 ResourceHandle ResourceTracker.getRandomBusySupplyingResource()
          Returns a random busy supplying Resource.
 ResourceHandle ResourceTracker.getRandomIdleResource()
          Returns a random idle Resource.
 ResourceHandle ResourceLocator.locateAndCheckBusyLocalResource(Task t)
          Locates a Busy Local Resource running target Task (guaranteed to be non-null).
 ResourceHandle ResourceLocator.locateAndCheckBusySupplyingResource(Task t)
          Locates a Busy Supplying Resource running target Task (guaranteed to be non-null).
 ResourceHandle ResourceLocator.locateBusyLocalResource(Task t)
          Locates a Busy Local Resource running target Task (may be null).
 ResourceHandle ResourceLocator.locateBusySupplyingResource(Task t)
          Locates a Busy Supplying Resource running target Task (may be null).
 ResourceHandle ResourceDataTracker.locateIdleResourceWithBestStorageAffinity(Task t)
          Locate best (Storage Affinity-wise) Resource which has a mximum of data required by target Task in her WorkingSet.
 ResourceHandle ResourceManager.locateResource(ResourceState state, Task t)
          Locates a Resource currentlty in target state with maximum Storage Affinity with target Task.
 ResourceHandle WorkingSet.managedResource()
          Managed Resource Handle.
 ResourceHandle ResourceDataTracker.TransferCostData.resource()
           
 

Methods in lbg.peer.core.rms that return types with arguments of type ResourceHandle
 java.util.Set<ResourceHandle> ResourceDataTracker.locateResourcesWithReplicatedData(java.lang.String data_id)
          Locate Resources which have target data in their WorkingSet.
 java.util.Set<ResourceHandle> ResourceDataTracker.locateResourcesWithReplicatedData(java.lang.String[] data_ids)
          Locate Resources which have all target datas in their WorkingSet.
 

Methods in lbg.peer.core.rms with parameters of type ResourceHandle
 void ResourceManager.addResource(ResourceHandle rh, int power)
           
 ResourceState ResourceTracker.getResourceState(ResourceHandle rh)
           
 ResourceUsageData ResourceTracker.getResourceUsageData(ResourceHandle rh)
           
 Task ResourceManager.getRunningTask(ResourceHandle rh)
          Returns the Task running on target Busy Resource.
 WorkingSet ResourceTracker.getWorkingSetOfIdleResource(ResourceHandle rh)
          Returns the WorkingSet of the target Resource, if target Resource is idle.
 WorkingSet ResourceManager.getWorkingSetOfIdleResource(ResourceHandle rh)
          Returns the WorkingSet of the target Resource, if target Resource is idle.
 long ResourceManager.preemptBusySupplyingResource(Task t, ResourceHandle rh)
          Clears the state of the target Resource.
 void ResourceManager.removeResource(ResourceHandle rh)
          Removes a Resource from the Peer.
 boolean ResourceManager.runLocalTask(ResourceHandle rh, Task t)
          Runs target Task on target Resource.
 boolean ResourceManager.runSupplyingTask(ResourceHandle rh, Task t)
          Runs target Task on target Resource.
 void ResourceLocator.trackBusyLocalResource(Task t, ResourceHandle rh)
           
 void ResourceLocator.trackBusySupplyingResource(Task t, ResourceHandle rh)
           
 boolean ResourceDataTracker.trackData(java.lang.String data_id, ResourceHandle rh)
           
 void ResourceTracker.trackResource(ResourceHandle rh)
          Starts the tracking of the target Resource.
 void ResourceDataTracker.untrackAllData(java.lang.String[] data_ids, ResourceHandle rh)
          Untrack all data for target Resource.
 void ResourceDataTracker.untrackData(java.lang.String[] data_ids, ResourceHandle rh)
           
 void ResourceDataTracker.untrackData(java.lang.String data_id, ResourceHandle rh)
           
 ResourceUsageData ResourceTracker.untrackResource(ResourceHandle rh)
          Stops the tracking of the target Resource.
 WorkingSet ResourceTracker.updateResourceStatusToBusy(ResourceHandle rh, ResourceState state, Task t)
          Updates target Resource status from idle to busy local or busy supplying, depending on the value of target state.
 WorkingSet ResourceTracker.updateResourceStatusToIdle(ResourceHandle rh, ResourceState state)
          Updates target Resource status from busy local or busy supplying, depending on the value of target state, to idle.
 

Constructors in lbg.peer.core.rms with parameters of type ResourceHandle
ResourceDataTracker.TransferCostData(ResourceHandle rh, long distance)
          Constructs a new TransferCostData.
ResourceUsageData(Peer managed_peer, ResourceHandle rh, ResourceDataTracker data_tracker)
           
WorkingSet(Peer managed_peer, ResourceHandle rh, ResourceDataTracker data_tracker)
          Constructs a new WorkingSet.
 

Uses of ResourceHandle in lbg.peer.core.xms
 

Methods in lbg.peer.core.xms with parameters of type ResourceHandle
 boolean ExecutionManager.runLocalTaskOnLocalResource(Task t, ResourceHandle rh)
          Runs target Task on target Resource.
 boolean ExecutionManager.runSupplyingTaskOnLocalResource(Task t, ResourceHandle rh)
          Runs target Task on target Resource.
 

Uses of ResourceHandle in lbg.peer.service
 

Methods in lbg.peer.service with parameters of type ResourceHandle
 void TestPeerHandle.addResource(ResourceHandle rh, int power)
           
 void SimulatedPeerService.addResource(ResourceHandle rh, int power)
           
 void SimulatedPeerHandle.addResource(ResourceHandle rh, int power)
           
 void LivePeerService.addResource(ResourceHandle rh, int power)
           
 void LivePeerHandle.addResource(ResourceHandle rh, int power)
          Register a resource as part of this Peer
 void AbstractInternalPeerHandle.addResource(ResourceHandle rh, int power)
           
 void TestPeerHandle.removeResource(ResourceHandle rh)
           
 void SimulatedPeerService.removeResource(ResourceHandle rh)
           
 void SimulatedPeerHandle.removeResource(ResourceHandle rh)
           
 void LivePeerService.removeResource(ResourceHandle rh)
           
 void LivePeerHandle.removeResource(ResourceHandle rh)
          Remove a resource from this Peer
 void AbstractInternalPeerHandle.removeResource(ResourceHandle rh)
           
 

Uses of ResourceHandle in lbg.resource.service
 

Classes in lbg.resource.service that implement ResourceHandle
 class LiveResourceHandle
          A handle to a resource.
 class SimulatedResourceHandle
           
 

Methods in lbg.resource.service that return ResourceHandle
 ResourceHandle SimulatedResourceService.createHandle()
           
 ResourceHandle ResourceService.createHandle()
           
 ResourceHandle LiveResourceService.createHandle()
          Get a handle to the owner resource
 

Methods in lbg.resource.service with parameters of type ResourceHandle
 int SimulatedResourceHandle.compareTo(ResourceHandle other)
           
 int LiveResourceHandle.compareTo(ResourceHandle other)
           
 


Lightweight Bartering Grid

Copyright (c) 2005-2008, Cyril Briquet, parts Xavier Dalem.