source: DCWoRMS/trunk/src/schedframe/scheduling/policy/local/LocalManagementSystem.java @ 654

Revision 654, 19.8 KB checked in by wojtekp, 12 years ago (diff)
  • Property svn:mime-type set to text/plain
Line 
1package schedframe.scheduling.policy.local;
2
3import dcworms.schedframe.scheduling.ExecTask;
4import dcworms.schedframe.scheduling.Executable;
5import eduni.simjava.Sim_event;
6import eduni.simjava.Sim_system;
7import gridsim.Accumulator;
8import gridsim.ResourceCalendar;
9import gridsim.dcworms.DCWormsTags;
10import gridsim.dcworms.filter.ExecTaskFilter;
11
12import java.util.ArrayList;
13import java.util.HashMap;
14import java.util.Iterator;
15import java.util.List;
16import java.util.Map;
17
18import org.apache.commons.lang.ArrayUtils;
19import org.apache.commons.logging.Log;
20import org.apache.commons.logging.LogFactory;
21import org.joda.time.DateTime;
22import org.joda.time.DateTimeUtilsExt;
23import org.qcg.broker.schemas.schedulingplan.types.AllocationStatus;
24
25import qcg.shared.constants.BrokerConstants;
26import schedframe.ResourceController;
27import schedframe.events.scheduling.SchedulingEvent;
28import schedframe.events.scheduling.SchedulingEventType;
29import schedframe.events.scheduling.StartTaskExecutionEvent;
30import schedframe.events.scheduling.TaskFinishedEvent;
31import schedframe.events.scheduling.TaskRequestedTimeExpiredEvent;
32import schedframe.exceptions.ResourceException;
33import schedframe.resources.computing.ComputingResource;
34import schedframe.resources.computing.profiles.energy.EnergyEvent;
35import schedframe.resources.computing.profiles.energy.EnergyEventType;
36import schedframe.resources.units.PEUnit;
37import schedframe.resources.units.ProcessingElements;
38import schedframe.resources.units.ResourceUnit;
39import schedframe.resources.units.ResourceUnitName;
40import schedframe.resources.units.StandardResourceUnitName;
41import schedframe.scheduling.ResourceHistoryItem;
42import schedframe.scheduling.Scheduler;
43import schedframe.scheduling.TaskList;
44import schedframe.scheduling.TaskListImpl;
45import schedframe.scheduling.UsedResourcesList;
46import schedframe.scheduling.WorkloadUnitHandler;
47import schedframe.scheduling.manager.resources.LocalResourceManager;
48import schedframe.scheduling.manager.resources.ManagedResources;
49import schedframe.scheduling.manager.resources.ResourceManager;
50import schedframe.scheduling.plan.AllocationInterface;
51import schedframe.scheduling.plan.ScheduledTaskInterface;
52import schedframe.scheduling.plan.SchedulingPlanInterface;
53import schedframe.scheduling.plugin.SchedulingPlugin;
54import schedframe.scheduling.plugin.estimation.ExecutionTimeEstimationPlugin;
55import schedframe.scheduling.plugin.grid.ModuleListImpl;
56import schedframe.scheduling.plugin.grid.ModuleType;
57import schedframe.scheduling.policy.AbstractManagementSystem;
58import schedframe.scheduling.queue.TaskQueueList;
59import schedframe.scheduling.tasks.AbstractProcesses;
60import schedframe.scheduling.tasks.Job;
61import schedframe.scheduling.tasks.JobInterface;
62import schedframe.scheduling.tasks.Task;
63import schedframe.scheduling.tasks.TaskInterface;
64import schedframe.scheduling.tasks.WorkloadUnit;
65import simulator.DCWormsConstants;
66import simulator.utils.DoubleMath;
67
68public class LocalManagementSystem extends AbstractManagementSystem {
69
70        private Log log = LogFactory.getLog(LocalManagementSystem.class);
71
72        protected double lastUpdateTime;
73
74        protected Accumulator accTotalLoad;
75
76        public LocalManagementSystem(String providerId, String entityName, SchedulingPlugin schedPlugin,
77                        ExecutionTimeEstimationPlugin execTimeEstimationPlugin, TaskQueueList queues)
78                        throws Exception {
79
80                super(providerId, entityName, execTimeEstimationPlugin, queues);
81               
82                if (schedPlugin == null) {
83                        throw new Exception("Can not create local scheduling plugin instance.");
84                }
85                this.schedulingPlugin =  schedPlugin;
86                this.moduleList = new ModuleListImpl(1);
87               
88                this.accTotalLoad = new Accumulator();
89        }
90
91        public void init(Scheduler sched, ManagedResources managedResources) {
92                super.init(sched, managedResources);
93                double load = 0;
94                accTotalLoad.add(load);
95        }
96
97        public void processEvent(Sim_event ev) {
98
99                updateProcessingProgress();
100
101                int tag = ev.get_tag();
102                Object obj;
103
104                switch (tag) {
105
106                case DCWormsTags.TIMER:
107                        if (pluginSupportsEvent(tag)) {
108                                SchedulingEvent event = new SchedulingEvent(SchedulingEventType.TIMER);
109                                SchedulingPlanInterface<?> decision =  schedulingPlugin.schedule(event,
110                                                queues,  getJobRegistry(), getResourceManager(), moduleList);
111                                executeSchedulingPlan(decision);
112                        }
113                        sendTimerEvent();
114                        break;
115
116                case DCWormsTags.TASK_READY_FOR_EXECUTION:
117                        ExecTask execTask = (ExecTask) ev.get_data();
118                        try {
119                                execTask.setStatus(DCWormsTags.READY);
120                                if (pluginSupportsEvent(tag)) {
121                                        SchedulingEvent event = new StartTaskExecutionEvent(execTask.getJobId(), execTask.getId());
122                                        SchedulingPlanInterface<?> decision =  schedulingPlugin.schedule(event,
123                                                        queues,  getJobRegistry(), getResourceManager(), moduleList);
124                                        executeSchedulingPlan(decision);
125                                }
126                        } catch (Exception e) {
127                                e.printStackTrace();
128                        }
129                        break;
130
131                case DCWormsTags.TASK_EXECUTION_FINISHED:
132                        obj = ev.get_data();
133                        execTask = (ExecTask) obj;
134                        if (execTask.getStatus() == DCWormsTags.INEXEC) {
135                               
136                                finalizeExecutable(execTask);
137                                sendFinishedWorkloadUnit(execTask);
138                                log.debug(execTask.getJobId() + "_" + execTask.getId() + " finished execution on " + new DateTime());
139                                log.info(DCWormsConstants.USAGE_MEASURE_NAME + ": " + calculateTotalLoad(jobRegistry.getRunningTasks().size()));
140                                if (pluginSupportsEvent(tag)) {
141                                        SchedulingEvent event = new TaskFinishedEvent(execTask.getJobId(), execTask.getId());
142                                        SchedulingPlanInterface<?> decision = schedulingPlugin.schedule(event,
143                                                        queues, getJobRegistry(), getResourceManager(), moduleList);
144                                        executeSchedulingPlan(decision);
145                                }
146                        }
147
148                        Job job = jobRegistry.getJob(execTask.getJobId());
149                        if(!job.isFinished()){
150                                getWorkloadUnitHandler().handleJob(job);
151                        }
152                        break;
153                       
154                case DCWormsTags.TASK_REQUESTED_TIME_EXPIRED:
155                        obj = ev.get_data();
156                        execTask = (Executable) obj;
157                        if (pluginSupportsEvent(tag)) {
158                                SchedulingEvent event = new TaskRequestedTimeExpiredEvent(execTask.getJobId(), execTask.getId());
159                                SchedulingPlanInterface<?> decision = schedulingPlugin.schedule(event,
160                                                queues, getJobRegistry(), getResourceManager(), moduleList);
161                                executeSchedulingPlan(decision);
162                        }
163                        break;
164                       
165                case DCWormsTags.UPDATE:
166                        updateProcessingTimes(ev);
167                        break;
168                }
169        }
170
171        public void notifyReturnedWorkloadUnit(WorkloadUnit wu) {
172                if (pluginSupportsEvent(DCWormsTags.TASK_EXECUTION_FINISHED)) {
173                        SchedulingEvent event = new SchedulingEvent(SchedulingEventType.TASK_FINISHED);
174                        SchedulingPlanInterface<?> decision =  schedulingPlugin.schedule(event,
175                                        queues, getJobRegistry(), getResourceManager(), moduleList);
176                        executeSchedulingPlan(decision);
177                }
178                //if(scheduler.getParent() != null){
179                        sendFinishedWorkloadUnit(wu);
180                //}
181        }
182       
183        protected void executeSchedulingPlan(SchedulingPlanInterface<?> decision) {
184
185                ArrayList<ScheduledTaskInterface<?>> taskSchedulingDecisions = decision.getTasks();
186                for (int i = 0; i < taskSchedulingDecisions.size(); i++) {
187                        ScheduledTaskInterface<?> taskDecision = taskSchedulingDecisions.get(i);
188
189                        if (taskDecision.getStatus() == AllocationStatus.REJECTED) {
190                                continue;
191                        }
192
193                        ArrayList<AllocationInterface<?>> allocations = taskDecision.getAllocations();
194
195                        TaskInterface<?> task = taskDecision.getTask();
196                        for (int j = 0; j < allocations.size(); j++) {
197
198                                AllocationInterface<?> allocation = allocations.get(j);
199                                if (allocation.getRequestedResources() == null || allocation.getRequestedResources().size() > 0) {
200                                        ExecTask exec = (ExecTask) task;                                       
201                                        executeTask(exec, allocation.getRequestedResources());
202                                } else if(resourceManager.getSchedulerName(allocation.getProviderName()) != null){
203                                        allocation.setProviderName(resourceManager.getSchedulerName(allocation.getProviderName()));
204                                        submitTask(task, allocation);
205                                } else {
206                                        ExecTask exec = (ExecTask) task;
207                                        executeTask(exec, chooseResourcesForExecution(allocation.getProviderName(), exec));
208                                }
209                        }
210
211                }
212        }
213
214        protected void executeTask(ExecTask task, Map<ResourceUnitName, ResourceUnit> choosenResources) {
215
216                Executable exec = (Executable)task;
217                boolean allocationStatus = getAllocationManager().allocateResources(choosenResources);
218                if(allocationStatus == false){
219                        log.info("Task requires more resources than is availiable at this moment.");
220                        return;
221                }
222
223                removeFromQueue(task);
224
225                SchedulingEvent event = new SchedulingEvent(SchedulingEventType.START_TASK_EXECUTION);
226                int time = Double.valueOf(
227                                execTimeEstimationPlugin.execTimeEstimation(event, task, choosenResources, exec.getCompletionPercentage())).intValue();
228                log.debug(task.getJobId() + "_" + task.getId() + " starts executing on " + new DateTime()
229                                + " will finish after " + time);
230
231                if (time < 0.0)
232                        return;
233
234                exec.setEstimatedDuration(time);
235                DateTime currentTime = new DateTime();
236                ResourceHistoryItem resHistItem = new ResourceHistoryItem(choosenResources, currentTime);
237                exec.addUsedResources(resHistItem);
238                try {
239                        exec.setStatus(DCWormsTags.INEXEC);
240                } catch (Exception e) {
241                        // TODO Auto-generated catch block
242                        e.printStackTrace();
243                }
244                scheduler.sendInternal(time, DCWormsTags.TASK_EXECUTION_FINISHED, exec);
245
246                try {
247                        long expectedDuration = exec.getExpectedDuration().getMillis() / 1000;
248                        scheduler.sendInternal(expectedDuration, DCWormsTags.TASK_REQUESTED_TIME_EXPIRED, exec);
249                } catch (NoSuchFieldException e) {
250                        double t = exec.getEstimatedDuration();
251                        scheduler.sendInternal(t, DCWormsTags.TASK_REQUESTED_TIME_EXPIRED, exec);
252                }
253
254                log.info(DCWormsConstants.USAGE_MEASURE_NAME + ": " + calculateTotalLoad(jobRegistry.getRunningTasks().size()));
255               
256                PEUnit peUnit = (PEUnit)choosenResources.get(StandardResourceUnitName.PE);
257               
258                notifyComputingResources(peUnit, EnergyEventType.TASK_STARTED, exec);
259               
260                /*if(peUnit instanceof ProcessingElements){
261                        ProcessingElements pes = (ProcessingElements) peUnit;
262                        for (ComputingResource resource : pes) {
263                                resource.handleEvent(new EnergyEvent(EnergyEventType.TASK_STARTED, exec));
264                        }
265                } else {
266                        ComputingResource resource = null;
267                        try {
268                                resource = ResourceController.getComputingResourceByName(peUnit.getResourceId());
269                        } catch (ResourceException e) {
270                                return;
271                        }
272                        resource.handleEvent(new EnergyEvent(EnergyEventType.TASK_STARTED, exec));
273                }
274*/
275
276                /*for(ExecTaskInterface etask : jobRegistry.getRunningTasks()){
277                        System.out.println(etask.getJobId());
278                        for(String taskId: etask.getVisitedResources())
279                                System.out.println("====="+taskId);
280                }*/
281        }
282       
283        public void finalizeExecutable(ExecTask execTask){
284               
285                Executable exec = (Executable)execTask;
286                exec.finalizeExecutable();
287               
288                ExecTaskFilter filter = new ExecTaskFilter(exec.getUniqueId(), DCWormsTags.TASK_REQUESTED_TIME_EXPIRED);
289                scheduler.sim_cancel(filter, null);
290               
291                Task task;
292                Job job = jobRegistry.getJob(exec.getJobId());
293                try {
294                        task = job.getTask(exec.getTaskId());
295                } catch (NoSuchFieldException e) {
296                        return;
297                }
298                if(exec.getProcessesId() == null){
299                        try {
300                                task.setStatus(exec.getStatus());
301                        } catch (Exception e) {
302                                e.printStackTrace();
303                        }
304                } else {
305                        List<AbstractProcesses> processesList = task.getProcesses();
306                        for(int i = 0; i < processesList.size(); i++){
307                                AbstractProcesses processes = processesList.get(i);
308                                if(processes.getId().equals(exec.getProcessesId())){
309                                        processes.setStatus(exec.getStatus());
310                                        break;
311                                }
312                        }
313                }
314               
315                UsedResourcesList lastUsedList = exec.getUsedResources();
316                Map<ResourceUnitName, ResourceUnit> lastUsed = lastUsedList.getLast()
317                                .getResourceUnits();
318                getAllocationManager().freeResources(lastUsed);
319               
320                PEUnit peUnit = (PEUnit)lastUsed.get(StandardResourceUnitName.PE);
321                notifyComputingResources(peUnit, EnergyEventType.TASK_FINISHED, exec);
322                /*if(peUnit instanceof ProcessingElements){
323                        ProcessingElements pes = (ProcessingElements) peUnit;
324                        for (ComputingResource resource : pes) {
325                                resource.handleEvent(new EnergyEvent(EnergyEventType.TASK_FINISHED, exec));
326                        }
327                } else {
328                        ComputingResource resource = null;
329                        try {
330                                resource = ResourceController.getComputingResourceByName(peUnit.getResourceId());
331                        } catch (ResourceException e) {
332                                return;
333                        }
334                        resource.handleEvent(new EnergyEvent(EnergyEventType.TASK_FINISHED, exec));
335                }*/
336
337                //sendFinishedWorkloadUnit(executable);
338        }
339       
340        protected void updateProcessingProgress() {
341                double timeSpan = DoubleMath.subtract(Sim_system.clock(), lastUpdateTime);
342                if (timeSpan <= 0.0) {
343                        // don't update when nothing changed
344                        return;
345                }
346                lastUpdateTime = Sim_system.clock();
347                Iterator<ExecTask> iter = jobRegistry.getRunningTasks().iterator();
348                while (iter.hasNext()) {
349                        ExecTask task = iter.next();
350                        Executable exec = (Executable)task;
351                        exec.setCompletionPercentage(exec.getCompletionPercentage() + 100 * timeSpan/exec.getEstimatedDuration());
352                       
353                        UsedResourcesList usedResourcesList = exec.getUsedResources();
354                        PEUnit peUnit = (PEUnit)usedResourcesList.getLast().getResourceUnits()
355                                        .get(StandardResourceUnitName.PE);
356                        double load = getMIShare(timeSpan, peUnit);
357                        addTotalLoad(load);
358                }
359        }
360        private void notifyComputingResources(PEUnit peUnit, EnergyEventType eventType, Object obj){
361
362                if(peUnit instanceof ProcessingElements){
363                        ProcessingElements pes = (ProcessingElements) peUnit;
364                        for (ComputingResource resource : pes) {
365                                resource.handleEvent(new EnergyEvent(eventType, obj));
366                        }
367                } else {
368                        ComputingResource resource = null;
369                        try {
370                                resource = ResourceController.getComputingResourceByName(peUnit.getResourceId());
371                        } catch (ResourceException e) {
372                                return;
373                        }
374                        resource.handleEvent(new EnergyEvent(eventType, obj));
375                }
376        }
377       
378        private double getMIShare(double timeSpan, PEUnit pes) {
379                double localLoad;
380                ResourceCalendar resCalendar = (ResourceCalendar) moduleList.getModule(ModuleType.RESOURCE_CALENDAR);
381                if (resCalendar == null)
382                        localLoad = 0;
383                else
384                        // 1 - localLoad_ = available MI share percentage
385                        localLoad = resCalendar.getCurrentLoad();
386
387                int speed = pes.getSpeed();
388                int cnt = pes.getAmount();
389
390                double totalMI = speed * cnt * timeSpan * (1 - localLoad);
391                return totalMI;
392        }
393
394        protected void updateProcessingTimes(Sim_event ev) {
395                updateProcessingProgress();
396                for (ExecTask execTask : jobRegistry.getRunningTasks()) {
397                        Executable exec = (Executable)execTask;
398                        List<String> visitedResource = exec.getVisitedResources();
399                        String originResource = ev.get_data().toString();
400                        if(!ArrayUtils.contains(visitedResource.toArray(new String[visitedResource.size()]), originResource)){
401                                continue;
402                        }
403                       
404                        Map<ResourceUnitName, ResourceUnit> choosenResources = exec.getUsedResources().getLast().getResourceUnits();
405                        int time =  Double.valueOf(execTimeEstimationPlugin.execTimeEstimation(new SchedulingEvent(SchedulingEventType.RESOURCE_STATE_CHANGED),
406                                        execTask, choosenResources, exec.getCompletionPercentage())).intValue();
407
408                        //check if the new estimated end time is equal to the previous one; if yes the continue without update
409                        if( DoubleMath.subtract((exec.getExecStartTime() + exec.getEstimatedDuration()), (new DateTime().getMillis()/1000 + time)) == 0.0){
410                                continue;
411                        }
412                        exec.setEstimatedDuration(time);
413                        ExecTaskFilter filter = new ExecTaskFilter(exec.getUniqueId(), DCWormsTags.TASK_EXECUTION_FINISHED);
414                        scheduler.sim_cancel(filter, null);
415                        scheduler.sendInternal(time, DCWormsTags.TASK_EXECUTION_FINISHED, execTask);
416                }
417        }       
418
419        public double calculateTotalLoad(int size) {
420                // background load, defined during initialization
421                double load;
422                ResourceCalendar resCalendar = (ResourceCalendar) moduleList.getModule(ModuleType.RESOURCE_CALENDAR);
423                if (resCalendar == null)
424                        load = 0;
425                else
426                        load = resCalendar.getCurrentLoad();
427
428                int numberOfPE = 0;
429                try {
430                        for(ResourceUnit resUnit : getResourceManager().getPE()){
431                                numberOfPE = numberOfPE + resUnit.getAmount();
432                        }
433                } catch (Exception e) {
434                        numberOfPE = 1;
435                }
436                double tasksPerPE = (double) size / numberOfPE;
437                load += Math.min(1.0 - load, tasksPerPE);
438
439                return load;
440        }
441
442        public Accumulator getTotalLoad() {
443                return accTotalLoad;
444        }
445
446        protected void addTotalLoad(double load) {
447                accTotalLoad.add(load);
448        }
449       
450        private Map<ResourceUnitName, ResourceUnit> chooseResourcesForExecution(String resourceName,
451                        ExecTask task) {
452
453                Map<ResourceUnitName, ResourceUnit> map = new HashMap<ResourceUnitName, ResourceUnit>();
454                LocalResourceManager resourceManager = getResourceManager();
455                if(resourceName != null){
456                        ComputingResource resource = null;
457                        try {
458                                resource = resourceManager.getResourceByName(resourceName);
459                        } catch (ResourceException e) {
460                                return null;
461                        }
462                        resourceManager = new LocalResourceManager(resource);
463                }
464
465                int cpuRequest;
466                try {
467                        cpuRequest = Double.valueOf(task.getCpuCntRequest()).intValue();
468                } catch (NoSuchFieldException e) {
469                        cpuRequest = 1;
470                }
471
472                if (cpuRequest != 0) {
473                       
474                        List<ResourceUnit> availableUnits = null;
475                        try {
476                                availableUnits = resourceManager.getPE();
477                        } catch (ResourceException e) {
478                                return null;
479                        }
480                       
481                        List<ResourceUnit> choosenPEUnits = new ArrayList<ResourceUnit>();
482                        for (int i = 0; i < availableUnits.size() && cpuRequest > 0; i++) {
483                                PEUnit peUnit = (PEUnit) availableUnits .get(i);
484                                if(peUnit.getFreeAmount() > 0){
485                                        int  allocPE = Math.min(peUnit.getFreeAmount(), cpuRequest);
486                                        cpuRequest = cpuRequest - allocPE;
487                                        choosenPEUnits.add(peUnit.replicate(allocPE)); 
488                                }       
489                        }
490                       
491                        if(cpuRequest > 0){
492                                return null;
493                        }
494                        map.put(StandardResourceUnitName.PE, choosenPEUnits.get(0));
495                }
496
497                return  map;
498        }
499       
500        public void notifySubmittedWorkloadUnit(WorkloadUnit wu, boolean ack) {
501                updateProcessingProgress();
502                registerWorkloadUnit(wu);
503        }
504
505        private void registerWorkloadUnit(WorkloadUnit wu){
506                if(!wu.isRegistered()){
507                        wu.register(jobRegistry);
508                }
509                wu.accept(getWorkloadUnitHandler());
510        }
511       
512        class LocalWorkloadUnitHandler implements WorkloadUnitHandler{
513               
514                public void handleJob(JobInterface<?> job){
515
516                        if (log.isInfoEnabled())
517                                log.info("Received job " + job.getId() + " at " + new DateTime(DateTimeUtilsExt.currentTimeMillis()));
518
519                        List<JobInterface<?>> jobsList = new ArrayList<JobInterface<?>>();
520                        jobsList.add(job);
521                        TaskListImpl availableTasks = new TaskListImpl();
522                        for(Task task: jobRegistry.getAvailableTasks(jobsList)){
523                                task.setStatus((int)BrokerConstants.TASK_STATUS_QUEUED);
524                                availableTasks.add(task);
525                        }
526
527                        for(TaskInterface<?> task: availableTasks){     
528                                registerWorkloadUnit(task);
529                        }
530                }
531               
532                public void handleTask(TaskInterface<?> t){
533                        Task task = (Task)t;
534                        List<AbstractProcesses> processes = task.getProcesses();
535
536                        if(processes == null || processes.size() == 0){
537                                Executable exec = new Executable(task);
538                                registerWorkloadUnit(exec);
539                        } else {
540                                for(int j = 0; j < processes.size(); j++){
541                                        AbstractProcesses procesesSet = processes.get(j);
542                                        Executable exec = new Executable(task, procesesSet);
543                                        registerWorkloadUnit(exec);
544                                }
545                        }
546                }
547               
548                public void handleExecutable(ExecTask task){
549                       
550                        Executable exec = (Executable) task;
551                        jobRegistry.addExecTask(exec);
552                       
553                        exec.trackResource(scheduler.get_name());
554                        Scheduler parentScheduler = scheduler.getParent();
555                        List<String> visitedResource = exec.getVisitedResources();
556                        String [] visitedResourcesArray = visitedResource.toArray(new String[visitedResource.size()]);
557                        while (parentScheduler != null && !ArrayUtils.contains(visitedResourcesArray, parentScheduler.get_name())) {
558                                exec.trackResource(parentScheduler.get_name());
559                                parentScheduler = parentScheduler.getParent();
560                        }
561                        exec.setSchedulerName(scheduler.get_id());
562                       
563                        TaskList newTasks = new TaskListImpl();
564                        newTasks.add(exec);
565               
566                        schedulingPlugin.placeTasksInQueues(newTasks, queues, getResourceManager(), moduleList);
567
568                        if (exec.getStatus() == DCWormsTags.QUEUED) {
569                                sendExecutableReadyEvent(exec);
570                        }
571                }
572        }
573
574        public WorkloadUnitHandler getWorkloadUnitHandler() {
575                return new LocalWorkloadUnitHandler();
576        }
577       
578       
579        public LocalResourceManager getResourceManager() {
580                if (resourceManager instanceof ResourceManager)
581                        return (LocalResourceManager) resourceManager;
582                else
583                        return null;
584        }
585       
586}
Note: See TracBrowser for help on using the repository browser.