|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object spec.harness.Util
public class Util
Constructor Summary | |
---|---|
Util()
|
Method Summary | |
---|---|
static boolean |
getBoolProperty(java.lang.String propname,
java.lang.String bmName)
Get the value of the property passed in as a boolean. 1. |
static int |
getHwtCalcProperty(java.lang.String propname,
java.lang.String bmName)
Get the calculated int value of the property passed in. 1. |
static int |
getIntProperty(java.lang.String propname,
java.lang.String bmName)
Get the value of the property passed in as a int. 1. |
static long |
getLongProperty(java.lang.String propname,
java.lang.String bmName)
Get the value of the property passed in as a long. 1. |
static java.lang.String |
getNextRawFileInDir()
|
static java.lang.String |
getNextRawFileInDir(java.io.File resultDir)
|
static java.lang.String |
getProperty(java.lang.String propname,
java.lang.String bmName)
Get the value of the property passed in. 1. |
static long |
getTimeAsMillis(java.lang.String value)
A time can be passed in as a long in millis, or with a unit on it, like '60s'. |
static long |
getTimeAsSeconds(java.lang.String value)
A time can be passed in as a long in millis, or with a unit on it, like '60s'. |
static long |
getTimeProperty(java.lang.String propname,
java.lang.String bmName)
Get the value of the property passed in. 1. |
static boolean |
isBenchmark(java.lang.String s)
|
static boolean |
isScimarkAndNotMonteCarlo(java.lang.String name)
|
static void |
printProperties(java.io.PrintStream ps,
java.util.HashMap<java.lang.String,java.lang.String> reqs)
|
static void |
printProperties(java.io.PrintStream ps,
java.util.Properties props)
|
static void |
printProperties(java.util.Properties props)
|
static void |
printReqs(java.util.HashMap<java.lang.String,java.lang.String> reqs)
|
static boolean |
sleep(long millis)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Util()
Method Detail |
---|
public static long getTimeProperty(java.lang.String propname, java.lang.String bmName) throws java.lang.NumberFormatException
java.lang.NumberFormatException
public static long getTimeAsMillis(java.lang.String value) throws java.lang.NumberFormatException
java.lang.NumberFormatException
public static long getTimeAsSeconds(java.lang.String value)
java.lang.NumberFormatException
public static int getHwtCalcProperty(java.lang.String propname, java.lang.String bmName) throws java.lang.NumberFormatException
java.lang.NumberFormatException
public static boolean getBoolProperty(java.lang.String propname, java.lang.String bmName)
public static int getIntProperty(java.lang.String propname, java.lang.String bmName)
public static long getLongProperty(java.lang.String propname, java.lang.String bmName)
public static java.lang.String getProperty(java.lang.String propname, java.lang.String bmName)
propname
- Name of the property (base name).bmName
- Name of the benchmark that gets the property.
public static void printProperties(java.util.Properties props)
public static void printProperties(java.io.PrintStream ps, java.util.Properties props)
public static void printReqs(java.util.HashMap<java.lang.String,java.lang.String> reqs)
public static void printProperties(java.io.PrintStream ps, java.util.HashMap<java.lang.String,java.lang.String> reqs)
public static boolean sleep(long millis)
public static boolean isScimarkAndNotMonteCarlo(java.lang.String name)
public static java.lang.String getNextRawFileInDir() throws java.io.IOException
java.io.IOException
public static java.lang.String getNextRawFileInDir(java.io.File resultDir) throws java.io.IOException
java.io.IOException
public static boolean isBenchmark(java.lang.String s)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |