Changeset 1415 for DCWoRMS/branches/coolemall/src/example/localplugin/BaseLocalSchedulingPlugin.java
- Timestamp:
- 07/15/14 16:26:31 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
DCWoRMS/branches/coolemall/src/example/localplugin/BaseLocalSchedulingPlugin.java
r1396 r1415 6 6 import schedframe.Parameters; 7 7 import schedframe.PluginConfiguration; 8 import schedframe.events.scheduling.SchedulingEvent;9 8 import schedframe.events.scheduling.SchedulingEventType; 10 import schedframe.events.scheduling.SchedulingResponseType;11 9 import schedframe.resources.units.ResourceUnit; 12 10 import schedframe.resources.units.ResourceUnitName; 13 11 import schedframe.scheduling.TaskList; 14 12 import schedframe.scheduling.manager.resources.ResourceManager; 15 import schedframe.scheduling.manager.tasks.JobRegistry;16 13 import schedframe.scheduling.plan.impl.Allocation; 17 14 import schedframe.scheduling.plan.impl.ScheduledTask; … … 31 28 public PluginConfiguration getConfiguration() { 32 29 return plugConf; 33 }34 35 public SchedulingResponseType handleResourceAllocationViolation(SchedulingEvent event,36 TaskQueueList queues,37 JobRegistry jobRegistry,38 ResourceManager resourceManager, ModuleList modules){39 SchedulingResponseType responeEvent = null;40 switch(event.getType()){41 case TASK_REQUESTED_TIME_EXPIRED:42 responeEvent = SchedulingResponseType.KILL_TASK;43 break;44 }45 return responeEvent;46 30 } 47 31
Note: See TracChangeset
for help on using the changeset viewer.