Revision 104,
1.2 KB
checked in by wojtekp, 13 years ago
(diff) |
|
-
Property svn:mime-type set to
text/plain
|
Rev | Line | |
---|
[104] | 1 | package schedframe.scheduling.plugin.configuration; |
---|
| 2 | |
---|
| 3 | import schedframe.scheduling.events.SchedulingEventType; |
---|
| 4 | import schedframe.scheduling.plugin.SchedulingPluginConfiguration; |
---|
| 5 | |
---|
| 6 | /** |
---|
| 7 | * |
---|
| 8 | * @author Marcin Krystek |
---|
| 9 | * |
---|
| 10 | */ |
---|
| 11 | |
---|
| 12 | public class DefaultConfiguration { |
---|
| 13 | |
---|
| 14 | private static SchedulingPluginConfiguration localConfig = new LocalConfig(); |
---|
| 15 | private static SchedulingPluginConfiguration localARConfig = new LocalARConfig(); |
---|
| 16 | private static SchedulingPluginConfiguration gridConfig = new GridConfig(); |
---|
| 17 | static { |
---|
| 18 | ((GridConfig)gridConfig).addServedEvent(SchedulingEventType.TASK_ARRIVED, null); |
---|
| 19 | ((GridConfig)gridConfig).addServedEvent(SchedulingEventType.TASK_CANCELED, null); |
---|
| 20 | //((GridConfig)gridConfig).addServedEvent(SchedulingEventType.TIMER, 14400); |
---|
| 21 | } |
---|
| 22 | |
---|
| 23 | /** |
---|
| 24 | * |
---|
| 25 | * @return default configuration for local plugin |
---|
| 26 | */ |
---|
| 27 | public static SchedulingPluginConfiguration forLocalPlugin(){ |
---|
| 28 | return localConfig; |
---|
| 29 | } |
---|
| 30 | |
---|
| 31 | /** |
---|
| 32 | * |
---|
| 33 | * @return default configuration for local plugin with reservation support |
---|
| 34 | */ |
---|
| 35 | public static SchedulingPluginConfiguration forLocalARPlugin(){ |
---|
| 36 | return localARConfig; |
---|
| 37 | } |
---|
| 38 | |
---|
| 39 | /** |
---|
| 40 | * |
---|
| 41 | * @return default configuration for grid plugin |
---|
| 42 | */ |
---|
| 43 | public static SchedulingPluginConfiguration forGridPlugin(){ |
---|
| 44 | return gridConfig; |
---|
| 45 | } |
---|
| 46 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.