org.jboss.mod_cluster
Class Client
java.lang.Object
java.lang.Thread
org.jboss.mod_cluster.Client
- All Implemented Interfaces:
- Runnable
public class Client
- extends Thread
|
Method Summary |
String |
getnode()
|
String |
getResponse()
|
boolean |
getresultok()
|
String |
getVirtualHost()
|
static void |
main(String[] args)
|
void |
run()
|
int |
runit()
|
int |
runit(String URL,
int nbtest,
boolean checkcookie)
|
int |
runit(String URL,
int nbtest,
boolean checkcookie,
boolean checknode)
|
int |
runit(String URL,
int nbtest,
boolean checkcookie,
int wait)
|
int |
runit(String URL,
int nbtest,
boolean checkcookie,
String post,
String user,
String pass)
|
int |
runit(String URL,
int nbtest,
boolean checkcookie,
String post,
String user,
String pass,
File fd)
|
int |
runit(String URL,
int nbtest,
boolean checkcookie,
String post,
String user,
String pass,
InputStream fd)
Run the first test. |
void |
setdelay(int delay)
|
void |
setnode(String node)
|
void |
setVirtualHost(String VirtualHost)
|
| Methods inherited from class java.lang.Thread |
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
httpResponseCode
public int httpResponseCode
requestedSessionId
public String requestedSessionId
Client
public Client()
main
public static void main(String[] args)
throws Exception
- Throws:
Exception
runit
public int runit(String URL,
int nbtest,
boolean checkcookie,
String post,
String user,
String pass,
InputStream fd)
throws Exception
- Run the first test.
- Parameters:
URL - URL to connect to.nbtest - number of test the thread will run (not counting this one).checkcookie - check that the jsessionid cookie is not changing during the test.post - data to send in the POST.user - username of the BASIC authentication.pass - password of the usr for the BASIC authentication.fd - file containing the data to send chuncked in the POST (post content is ignored in this case).
- Returns:
- The http code returned by the server.
- Throws:
IOException - for any failures.
Exception
runit
public int runit(String URL,
int nbtest,
boolean checkcookie,
String post,
String user,
String pass,
File fd)
throws Exception
- Throws:
Exception
runit
public int runit(String URL,
int nbtest,
boolean checkcookie,
String post,
String user,
String pass)
throws Exception
- Throws:
Exception
runit
public int runit(String URL,
int nbtest,
boolean checkcookie,
boolean checknode)
throws Exception
- Throws:
Exception
runit
public int runit(String URL,
int nbtest,
boolean checkcookie)
throws Exception
- Throws:
Exception
runit
public int runit(String URL,
int nbtest,
boolean checkcookie,
int wait)
throws Exception
- Throws:
Exception
runit
public int runit()
throws Exception
- Throws:
Exception
run
public void run()
- Specified by:
run in interface Runnable- Overrides:
run in class Thread
getresultok
public boolean getresultok()
setdelay
public void setdelay(int delay)
setnode
public void setnode(String node)
getnode
public String getnode()
setVirtualHost
public void setVirtualHost(String VirtualHost)
getVirtualHost
public String getVirtualHost()
getResponse
public String getResponse()
Copyright © 2014 JBoss by Red Hat. All rights reserved.