|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.deepshiftlabs.nerrvana.HttpCommunicator
public class HttpCommunicator
Class which communicates with Nerrvana (by performing API calls and interpreting responses) It is wrapped around Apache HttpClient.
| Field Summary | |
|---|---|
static String[] |
PARAMS
|
| Constructor Summary | |
|---|---|
HttpCommunicator(NerrvanaPluginSettings settings)
|
|
| Method Summary | |
|---|---|
Testrun |
createTestrun(String space_id,
String name,
String descr,
List<Platform> platforms,
String executable_file,
boolean bValidation,
int nodes_count)
Calls Nerrvana API to create Nerrvana test run All function parameters are obtained from @see NerrvanaPluginSettings object, which, in turn obtains them from plugin settings. |
org.apache.http.HttpEntity |
get(String resource,
List<org.apache.http.NameValuePair> params)
HTTP GET shortcut |
NerrvanaExecution |
getExecutionStatus(String exec_id)
Calls Nerrvana API to get status of the execution by id |
org.apache.http.HttpEntity |
post(String resource,
List<org.apache.http.NameValuePair> params)
HTTP POST shortcut |
void |
traceParams(org.apache.http.params.HttpParams params)
Function for log/debug |
void |
traceResponseHeaders(org.apache.http.HttpResponse response)
Function for log/debug |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String[] PARAMS
| Constructor Detail |
|---|
public HttpCommunicator(NerrvanaPluginSettings settings)
| Method Detail |
|---|
public void traceResponseHeaders(org.apache.http.HttpResponse response)
throws Exception
response -
Exception
public void traceParams(org.apache.http.params.HttpParams params)
throws Exception
params -
Exception
public org.apache.http.HttpEntity get(String resource,
List<org.apache.http.NameValuePair> params)
throws Exception
resource - address of the HTTP serverparams - list of name/value pairs
Exception
public org.apache.http.HttpEntity post(String resource,
List<org.apache.http.NameValuePair> params)
throws Exception
resource - address of the HTTP serverparams - list of name/value pairs
Exception
public NerrvanaExecution getExecutionStatus(String exec_id)
throws Exception
exec_id - ID of the NerrvanaExecution to get status of
Exception
public Testrun createTestrun(String space_id,
String name,
String descr,
List<Platform> platforms,
String executable_file,
boolean bValidation,
int nodes_count)
throws Exception
Calls Nerrvana API to create Nerrvana test run
All function parameters are obtained from @see NerrvanaPluginSettings object, which, in turn obtains them from plugin settings.
space_id - name - descr - platforms - executable_file - bValidation - nodes_count -
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||