/[xulu]/branches/1.8-gt2-2.6/src/appl/parallel/plugin/event/SimpleCommEventMonitorPlugin.java
ViewVC logotype

Contents of /branches/1.8-gt2-2.6/src/appl/parallel/plugin/event/SimpleCommEventMonitorPlugin.java

Parent Directory Parent Directory | Revision Log Revision Log


Revision 60 - (show annotations)
Sun Oct 4 16:54:52 2009 UTC (15 years, 3 months ago) by alfonx
File size: 2086 byte(s)
* organized imports
1 package appl.parallel.plugin.event;
2
3 import javax.swing.JMenuItem;
4 import javax.swing.JTable;
5
6 import appl.parallel.client.RemoteExecutionController;
7 import appl.parallel.event.TimeEvent;
8 import appl.parallel.event.TransferEvent;
9 import edu.bonn.xulu.appl.XuluPlugin;
10 import edu.bonn.xulu.gui.XuluInternalFrame;
11 import edu.bonn.xulu.plugin.appl.AbstractMenuPlugin;
12
13 /**
14 * The {@link XuluPlugin} logs {@link TransferEvent}s and {@link TimeEvent}s.
15 * The Events are displayed in a sortable {@link JTable}.
16 *
17 * @author Dominik Appl
18 */
19 public class SimpleCommEventMonitorPlugin extends AbstractMenuPlugin {
20
21 /**
22 * Creates a new plugin
23 */
24 public SimpleCommEventMonitorPlugin() {
25 super(4, "Xulu/V Communication Monitor");
26 // TODO Auto-generated constructor stub
27 }
28
29 /**
30 * Creates a new plugin
31 *
32 * @param xuluMenuNo
33 * the position of the menu in the menubar
34 * @param menuItem
35 * the menu to insert
36 */
37 public SimpleCommEventMonitorPlugin(int xuluMenuNo, JMenuItem menuItem) {
38 super(xuluMenuNo, menuItem);
39 // TODO Auto-generated constructor stub
40 }
41
42 /**
43 * Creates a new plugin
44 *
45 * @param xuluMenuNo
46 * the position of the menu in the menubar
47 * @param menuItemName
48 * the name of the entry to insert
49 */
50 public SimpleCommEventMonitorPlugin(int xuluMenuNo, String menuItemName) {
51 super(xuluMenuNo, menuItemName);
52 // TODO Auto-generated constructor stub
53 }
54
55 /*
56 * (non-Javadoc)
57 *
58 * @see edu.bonn.xulu.plugin.appl.AbstractMenuPlugin#createPluginApplication()
59 */
60 @Override
61 protected XuluInternalFrame createPluginApplication() throws Exception {
62 RemoteExecutionController controller = RemoteExecutionController
63 .getRemoteExecutionController(appl);
64 if (controller == null)
65 throw new UnsupportedOperationException(
66 "Remote Execution Monitor plugin not found!");
67 SimpleCommEventMonitorEngine engine = new SimpleCommEventMonitorEngine(
68 controller.getEventProxy());
69 return engine.getMonitor();
70 }
71
72 }

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26