edu.cmu.cs.able.gaugeInfrastructure.util
Class Global

java.lang.Object
  |
  +--edu.cmu.cs.able.gaugeInfrastructure.util.Global

public class Global
extends java.lang.Object


Field Summary
static boolean debugFlag
           
 
Constructor Summary
Global()
           
 
Method Summary
static void debug(java.lang.String out)
           
static java.lang.Process exec(java.lang.String cmd)
           
static int generatePort()
           
static java.lang.String generateUID()
          Generate a Unique ID.
static java.lang.String generateUniqueID()
           
static java.lang.String getHost()
           
static java.util.Vector getHostList(java.lang.String fileName, java.lang.String hostName)
          Get the host list from a file.
static void initLookAndFeel(java.lang.String theLookAndFeel)
          Initialize look and feel.
static boolean match(GaugeID src, GaugeID dst)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

debugFlag

public static boolean debugFlag
Constructor Detail

Global

public Global()
Method Detail

initLookAndFeel

public static void initLookAndFeel(java.lang.String theLookAndFeel)
Initialize look and feel.

getHostList

public static java.util.Vector getHostList(java.lang.String fileName,
                                           java.lang.String hostName)
Get the host list from a file.
Parameters:
fileName - name of the host list file
hostName - name of the host
Returns:
list of the port and address of the host

generateUID

public static java.lang.String generateUID()
Generate a Unique ID.
Returns:
generated Unique ID

generatePort

public static int generatePort()

generateUniqueID

public static java.lang.String generateUniqueID()

getHost

public static java.lang.String getHost()

match

public static boolean match(GaugeID src,
                            GaugeID dst)

exec

public static java.lang.Process exec(java.lang.String cmd)

debug

public static void debug(java.lang.String out)