weka4ws.core
Class Hosts

java.lang.Object
  extended byweka4ws.core.Hosts

public class Hosts
extends java.lang.Object

Sets up and stores the remote location addresses where the computational tasks will be executed. Currently they are loaded from a file resident on the local machine: the possibility to get them from the "Discovery Service" provided by the Globus Toolokit is still under development.

The first two elements of the arrays addresses, servicePorts and gridFTPPorts are reserved for the local and automatic options respectively.

Version:
1.0
Author:
Marco Lackovic
See Also:
WUtil, HostCheckConnectionThread, HostCheckThread

Field Summary
static java.lang.String AUTO
           
static short AUTO_INDEX
           
static javax.swing.DefaultComboBoxModel CBModel
          Used in a ComboBox in the Classifier, Clusterer and Association panels, inside the Explorer component,
static java.lang.String[] gridFTPPorts
           
static boolean loading
           
static java.lang.String LOCAL
           
static short LOCAL_INDEX
           
static java.lang.String[] loggingOptions
           
static java.lang.String[] servicePorts
           
 
Constructor Summary
Hosts()
           
 
Method Summary
static java.lang.String[] getAutoHost()
           
static java.lang.String getHostAt(int i)
           
static java.lang.String[] getHostsArray()
           
static javax.swing.DefaultComboBoxModel getNewCBModel()
           
static int getNumTotal()
           
static void initialization()
           
static void load(boolean show)
           
static void loadAndCheck(boolean show)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CBModel

public static javax.swing.DefaultComboBoxModel CBModel
Used in a ComboBox in the Classifier, Clusterer and Association panels, inside the Explorer component,


LOCAL

public static final java.lang.String LOCAL
See Also:
Constant Field Values

AUTO

public static final java.lang.String AUTO
See Also:
Constant Field Values

LOCAL_INDEX

public static final short LOCAL_INDEX
See Also:
Constant Field Values

AUTO_INDEX

public static final short AUTO_INDEX
See Also:
Constant Field Values

servicePorts

public static java.lang.String[] servicePorts

gridFTPPorts

public static java.lang.String[] gridFTPPorts

loggingOptions

public static java.lang.String[] loggingOptions

loading

public static boolean loading
Constructor Detail

Hosts

public Hosts()
Method Detail

getHostAt

public static java.lang.String getHostAt(int i)

getHostsArray

public static java.lang.String[] getHostsArray()

initialization

public static void initialization()

load

public static void load(boolean show)

loadAndCheck

public static void loadAndCheck(boolean show)

getAutoHost

public static java.lang.String[] getAutoHost()
                                      throws NoHostsFoundException
Throws:
NoHostsFoundException

getNewCBModel

public static javax.swing.DefaultComboBoxModel getNewCBModel()

getNumTotal

public static int getNumTotal()