Ignore:
Timestamp:
10/16/12 09:38:14 (13 years ago)
Author:
wojtekp
Message:
 
Location:
DCWoRMS/trunk/src/schedframe/scheduling
Files:
3 edited
1 moved

Legend:

Unmodified
Added
Removed
  • DCWoRMS/trunk/src/schedframe/scheduling/manager/resources/LocalResourceManager.java

    r490 r517  
    2929import schedframe.resources.units.StandardResourceUnitName; 
    3030import schedframe.scheduling.Scheduler; 
    31 import schedframe.scheduling.plugin.local.ResourceAllocationInterface; 
    32  
    33  
    34 public class LocalResourceManager implements ResourceAllocationInterface, ResourceManager { 
     31import schedframe.scheduling.plugin.local.ResourceAllocation; 
     32 
     33 
     34public class LocalResourceManager implements ResourceAllocation, ResourceManager { 
    3535 
    3636        //private Log log = LogFactory.getLog(ResourceManager.class); 
     
    3838        protected List<ComputingResource> computingResources; 
    3939        protected List<Scheduler> schedulers; 
    40         //protected ResourceCharacteristics resourceCharacteristic; 
    4140        protected Map<ResourceUnitName, List<ResourceUnit>> resourceUnits; 
    4241 
  • DCWoRMS/trunk/src/schedframe/scheduling/manager/resources/ResourceManager.java

    r477 r517  
    2222 
    2323        public List<? extends ComputingResource> getResourcesByTypeWithStatus(ResourceType type, ResourceStatus status) throws ResourceException; 
    24  
    25         //public ResourceCharacteristics getResourceCharacteristic(); 
    2624         
    2725        public Map<ResourceUnitName, List<ResourceUnit>> getSharedResourceUnits(); 
  • DCWoRMS/trunk/src/schedframe/scheduling/plugin/local/ResourceAllocation.java

    r477 r517  
    66import schedframe.resources.units.ResourceUnitName; 
    77 
    8 public interface ResourceAllocationInterface { 
     8public interface ResourceAllocation { 
    99         
    1010        /** 
     
    2525        public void freeResources(Map<ResourceUnitName, ResourceUnit> lastUsedResources); 
    2626         
    27         //public void allocateProcessors(Map<ResourceParameterName, ResourceUnit> freeRes); 
    28          
    29  
    30         //public void clearPendingProcessors(List<Resource> choosenResources); 
    31          
    32  
    3327} 
  • DCWoRMS/trunk/src/schedframe/scheduling/policy/AbstractManagementSystem.java

    r493 r517  
    2626import schedframe.scheduling.plugin.estimation.ExecutionTimeEstimationPlugin; 
    2727import schedframe.scheduling.plugin.grid.ModuleList; 
    28 import schedframe.scheduling.plugin.local.ResourceAllocationInterface; 
     28import schedframe.scheduling.plugin.local.ResourceAllocation; 
    2929import schedframe.scheduling.queue.TaskQueue; 
    3030import schedframe.scheduling.queue.TaskQueueList; 
     
    104104        } 
    105105 
    106         public ResourceAllocationInterface getAllocationManager() { 
    107                 if (resourceManager instanceof ResourceAllocationInterface) 
    108                         return (ResourceAllocationInterface) resourceManager; 
     106        public ResourceAllocation getAllocationManager() { 
     107                if (resourceManager instanceof ResourceAllocation) 
     108                        return (ResourceAllocation) resourceManager; 
    109109                else 
    110110                        return null; 
Note: See TracChangeset for help on using the changeset viewer.