org.emboss.jemboss.soap
Class PendingResults

java.lang.Object
  extended byorg.emboss.jemboss.soap.PendingResults

public class PendingResults
extends java.lang.Object

Record the batch job status (pending/completed)


Field Summary
private  boolean autoUpdates
          automatic job status updates
private  int completed_jobs
          number of completed processes
private  javax.swing.JButton jobButton
          job manager button
private  javax.swing.JComboBox jobComboBox
          job manager interactive/batch selection
private  JembossParams mysettings
          jemboss properties
private  java.util.Vector pendingResults
          pending results
private  int running_jobs
          number of peding processes
 
Constructor Summary
PendingResults(JembossParams mysettings)
           
 
Method Summary
 void addResult(JembossProcess res)
          Add a pending process to the list
 java.util.Hashtable descriptionHash()
          Get the processes description
 JembossProcess getResult(java.lang.String s)
          Get the processes result
 java.lang.String getStatus()
           
private  java.util.Vector getVector(java.util.Hashtable h)
          Change a hashtable to a vector
 boolean isAutoUpdate()
          Automatically updating status manager with BatchUpdateTimer thread
 java.lang.String jobStatus()
          Report the status of completed and running processes.
 void removeResult(JembossProcess res)
          Remove a pending process from the list
 void resetCount()
          Reset the pending and completed job status
 void setAutoUpdate(boolean b)
          Automatically updating status manager with BatchUpdateTimer thread
 void showPendingResults(javax.swing.JFrame f)
          Display the list of pending and completed batch results window
 javax.swing.JPanel statusPanel(javax.swing.JFrame f)
          A panel to show the status of any jobs and to view them, and to set the mode.
 void updateJobStats()
          Update the number of completed and pending processes
 void updateMode()
          Updates the mode on the combo box to reflect the current state
 void updateMode(java.lang.String s)
          Updates the mode on the combo box to reflect the requested value
 void updateStatus()
          Connect to the Jemboss server, and update the status of the jobs in the list.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

completed_jobs

private int completed_jobs
number of completed processes


running_jobs

private int running_jobs
number of peding processes


mysettings

private JembossParams mysettings
jemboss properties


pendingResults

private java.util.Vector pendingResults
pending results


jobButton

private javax.swing.JButton jobButton
job manager button


jobComboBox

private javax.swing.JComboBox jobComboBox
job manager interactive/batch selection


autoUpdates

private boolean autoUpdates
automatic job status updates

Constructor Detail

PendingResults

public PendingResults(JembossParams mysettings)
Parameters:
mysettings - jemboss properties
Method Detail

resetCount

public void resetCount()
Reset the pending and completed job status


addResult

public void addResult(JembossProcess res)
Add a pending process to the list

Parameters:
res - jemboss process

removeResult

public void removeResult(JembossProcess res)
Remove a pending process from the list

Parameters:
res - jemboss process

getResult

public JembossProcess getResult(java.lang.String s)
Get the processes result

Parameters:
s - name of the dataset
Returns:
process object

descriptionHash

public java.util.Hashtable descriptionHash()
Get the processes description

Returns:
processes description

updateJobStats

public void updateJobStats()
Update the number of completed and pending processes


jobStatus

public java.lang.String jobStatus()
Report the status of completed and running processes.

Returns:
completed / pending numbers

updateStatus

public void updateStatus()
Connect to the Jemboss server, and update the status of the jobs in the list. If a statusPanel is active, updates the text on that.


getVector

private java.util.Vector getVector(java.util.Hashtable h)
Change a hashtable to a vector


isAutoUpdate

public boolean isAutoUpdate()
Automatically updating status manager with BatchUpdateTimer thread

Returns:
true if automatically updating

setAutoUpdate

public void setAutoUpdate(boolean b)
Automatically updating status manager with BatchUpdateTimer thread


updateMode

public void updateMode()
Updates the mode on the combo box to reflect the current state


updateMode

public void updateMode(java.lang.String s)
Updates the mode on the combo box to reflect the requested value

Parameters:
s - mode (batch /interactive) to set to

statusPanel

public javax.swing.JPanel statusPanel(javax.swing.JFrame f)
A panel to show the status of any jobs and to view them, and to set the mode.

Parameters:
f - parent frame, to which dialogs will be attached.

showPendingResults

public void showPendingResults(javax.swing.JFrame f)
Display the list of pending and completed batch results window


getStatus

public java.lang.String getStatus()
Returns:
job status text