|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.netbeans.jemmy.Timeouts
public class Timeouts
Class to store and process a set of timeout values.
setDefault(String, long),
getDefault(String),
setTimeout(String, long),
getTimeout(String)| Constructor Summary | |
|---|---|
Timeouts()
Creates empty Timeouts object. |
|
| Method Summary | |
|---|---|
Timeouts |
cloneThis()
Creates a copy of the current timeouts set. |
boolean |
contains(String name)
Checks if timeout has already been defined in this timeout instance. |
static boolean |
containsDefault(String name)
Check that default timeout value was defined. |
Timeout |
create(String name)
Creates Timeout new object by name and getTimeout(name) value. |
Timeout |
createDelta()
Create timeout for "Timeouts.DeltaTimeout" name. |
void |
eSleep(String name)
Sleeps for the "name" timeout value. |
static long |
getDefault(String name)
Gets default timeout value. |
long |
getDeltaTimeout()
Gets "Timeouts.DeltaTimeout" timeout value. |
long |
getTimeout(String name)
Gets timeout value. |
static double |
getTimeoutsScale()
Get timeouts scale. |
static void |
initDefault(String name,
long newValue)
Sets default timeout value if it was not set before. |
long |
initTimeout(String name,
long newValue)
Sets timeout value if it was not set before. |
void |
load()
Loads timeouts values. |
void |
load(InputStream stream)
Loads timeouts values. |
void |
load(String fileName)
Loads timeouts values from file. |
void |
loadDebugTimeouts()
Loads debug timeouts values. |
void |
loadDefaults()
Loads default timeouts values. |
void |
loadDefaults(InputStream stream)
Loads default timeouts values. |
void |
loadDefaults(String fileName)
Loads default timeouts values from file. |
void |
print(PrintStream ps)
Prins all defined timeouts. |
void |
print(PrintWriter pw)
Prins all defined timeouts. |
static void |
setDefault(String name,
long newValue)
Stores default timeout value. |
long |
setTimeout(String name,
long newValue)
Sets new timeout value. |
void |
sleep(String name)
Sleeps for the "name" timeout value. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Timeouts()
| Method Detail |
|---|
public static void setDefault(String name,
long newValue)
name - Timeout name.newValue - Timeout value.getDefault(String),
initDefault(String, long),
containsDefault(String)
public static void initDefault(String name,
long newValue)
name - Timeout name.newValue - Timeout value.setDefault(String, long),
getDefault(String),
containsDefault(String)public static long getDefault(String name)
name - Timeout name.
setDefault(String, long),
initDefault(String, long),
containsDefault(String)public static boolean containsDefault(String name)
name - Timeout name.
setDefault(String, long),
getDefault(String),
initDefault(String, long)
public void loadDefaults(InputStream stream)
throws IOException
stream - Stream to load timeouts from.
IOExceptionloadDefaults(String),
loadDefaults()
public void loadDefaults(String fileName)
throws FileNotFoundException,
IOException
fileName - File to load timeouts from.
IOException
FileNotFoundExceptionloadDefaults(InputStream),
loadDefaults(String)
public void loadDefaults()
throws FileNotFoundException,
IOException
IOException
FileNotFoundExceptionloadDefaults(InputStream),
loadDefaults(String)public Timeout create(String name)
name - Timeout name.
public Timeout createDelta()
public boolean contains(String name)
name - Timeout name.
containsDefault(String)
public long setTimeout(String name,
long newValue)
name - Timeout name.newValue - Timeout value.
getTimeout(java.lang.String)public long getTimeout(String name)
name - Timeout name.
getDefault(String),
setTimeout(java.lang.String, long)public long getDeltaTimeout()
getDefault(String)
public long initTimeout(String name,
long newValue)
name - Timeout name.newValue - Timeout value.
public Timeouts cloneThis()
public void eSleep(String name)
throws InterruptedException
name - Timeout name.
InterruptedExceptionpublic void sleep(String name)
name - Timeout name.public void print(PrintWriter pw)
pw - PrintWriter to print into.public void print(PrintStream ps)
ps - PrintStream to print into.
public void load(InputStream stream)
throws IOException
stream - Stream to load timeouts from.
IOExceptionload(String),
load()
public void load(String fileName)
throws FileNotFoundException,
IOException
fileName - File to load timeouts from.
IOException
FileNotFoundExceptionload(InputStream),
load(String)
public void load()
throws FileNotFoundException,
IOException
IOException
FileNotFoundExceptionload(InputStream),
load(String)
public void loadDebugTimeouts()
throws IOException
IOExceptionpublic static double getTimeoutsScale()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||