|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
weka.gui.experiment.HadoopGuiRunPanel
public class HadoopGuiRunPanel
This panel controls the running of an experiment using Hadoop.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
JPanel.AccessibleJPanel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
protected String |
filename
|
protected String |
jarname
|
protected Experiment |
m_Exp
The experiment to run |
protected String |
m_hadoopconf
|
protected HadoopGuiSetupPanel |
m_hadoopGuiSetupPanel
|
protected String |
m_hadoopJar
|
protected String |
m_hadoopLibjars
|
protected String |
m_jarfile
|
protected HadoopRunLogPanel |
m_Log
|
protected Thread |
m_RunThread
The thread running the experiment |
protected JButton |
m_StartBut
Click to start running the experiment |
protected JButton |
m_StopBut
Click to signal the running experiment to halt |
protected static String |
NOT_RUNNING
The message displayed when no experiment is running |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
HadoopGuiRunPanel()
Creates the run panel with no initial experiment. |
|
HadoopGuiRunPanel(Experiment exp)
Creates the panel with the supplied initial experiment. |
|
| Method Summary | |
|---|---|
void |
actionPerformed(ActionEvent e)
Controls starting and stopping the experiment. |
void |
createJar(String path,
String jarName)
Create jar file on the fly for current Hadoop experiment |
void |
determineHadoopJar()
|
void |
determineHadoopLibJars()
|
HadoopGuiSetupPanel |
getHadoopGuiSetupPanel()
|
protected void |
logMessage(String message)
Sends the supplied message to the log panel log area. |
protected void |
logMsgWithNoTime(String message)
Send the supplied message to log pannel log area |
static void |
main(String[] args)
Tests out the run panel from the command line. |
void |
setExperiment(Experiment exp)
Sets the experiment the panel operates on. |
void |
setHadoop(String hadoopconf)
Creates the run panel with input setting of hadoop and jar file. |
void |
setHadoopGuiSetupPanel(HadoopGuiSetupPanel value)
|
void |
setJar(String jarFile)
|
protected void |
statusMessage(String message)
Sends the supplied message to the log panel status line. |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static final String NOT_RUNNING
protected JButton m_StartBut
protected JButton m_StopBut
protected HadoopRunLogPanel m_Log
protected Experiment m_Exp
protected Thread m_RunThread
protected String m_hadoopconf
protected String m_jarfile
protected String m_hadoopJar
protected String m_hadoopLibjars
protected HadoopGuiSetupPanel m_hadoopGuiSetupPanel
protected String filename
protected String jarname
| Constructor Detail |
|---|
public HadoopGuiRunPanel()
public HadoopGuiRunPanel(Experiment exp)
exp - a value of type 'Experiment'| Method Detail |
|---|
public HadoopGuiSetupPanel getHadoopGuiSetupPanel()
public void setHadoopGuiSetupPanel(HadoopGuiSetupPanel value)
public void setHadoop(String hadoopconf)
public void setJar(String jarFile)
public void setExperiment(Experiment exp)
exp - a value of type 'Experiment'public void determineHadoopJar()
public void determineHadoopLibJars()
public void createJar(String path,
String jarName)
public void actionPerformed(ActionEvent e)
actionPerformed in interface ActionListenere - a value of type 'ActionEvent'protected void logMessage(String message)
message - the message to logprotected void logMsgWithNoTime(String message)
protected void statusMessage(String message)
message - the status messagepublic static void main(String[] args)
args - may contain options specifying an experiment to run.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||