|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.sdsc.inca.consumer.All2AllBean
public class All2AllBean
Jsp bean that will query the given depot bean for the specified latest suite instances containing all-to-all tests and will return a summary. It will pick out all-to-all tests by looking for nicknames matching this pattern: all2all:(\S+)_to_(\S+) The first parameter will be taken as the all-to-all test name and the second will be taken as the resource. The summary will contain for each resource, the number of successes (numSuccesses), the number of at-fault failures (numAtFaultFailures), the number of not-at-fault failures numNotAtFaultFailures, and list of failed tests (e.g., ssh_to_B, ssh_to_D). The xml will be formatted as: <all2all-test-summary> <resource> <testname> <numSuccesses> <numAtFaultFailures> <numNotAtFaultFailures> <failures> <nickname> ... </failures> </testname> ... </resource> ... </all2all-test-summary> Required parameters are: suiteName retAttrName
Nested Class Summary | |
---|---|
static class |
All2AllBean.RESULT
|
class |
All2AllBean.TestData
|
static class |
All2AllBean.TestResult
|
class |
All2AllBean.TestSummaryResults
|
Field Summary | |
---|---|
static int |
AF_FAILURES
|
static org.apache.log4j.Logger |
logger
|
static int |
NAF_FAILURES
|
java.lang.String |
NAMESPACE_DECLS
|
static int |
NUM_STATS
|
static int |
SUCCESSES
|
Constructor Summary | |
---|---|
All2AllBean()
|
Method Summary | |
---|---|
protected All2AllBean.TestSummaryResults |
computeSummary(All2AllBean.RESULT[][] results)
Compute the number of successes and failures for each resource given an R X R array of all-to-all integer test results where R = set of resources r[i][j] = 1 if the test from the ith resource to jth resource succeeds, r[i][j] = 0 if test from the ith resource to jth resource fails, r[i][j] = -1 if the result of the test from the ith resource to jth resource is missing The following rules will be used to count the number of successes and failures: 1) if r[i][j] == 1, a success is added to resource i and resource j 2) if r[i][j] == 0, a failure is added to resource i if i == j or r[k][j] == 1 where resource k != i and k != j or it's the only result so far (i.e., if a resource is testing to itself or if at least one other resource successfully tests to resource j or it's the only result so far, then we assume the failure is on resource i). |
protected All2AllBean.TestData |
extractTestData(java.lang.String testName,
edu.sdsc.inca.dataModel.queryResults.ObjectDocument suite)
Search the given report summaries for those that match our test name and create a R X R matrix of test results, where R is the set of resources involved in the all-to-all test. |
java.lang.String |
getSuiteGuid()
Return the name of the suite where all-2-all summary results will be extracted from. |
java.lang.String[] |
getTestNames(edu.sdsc.inca.dataModel.queryResults.ObjectDocument suite)
Extract the list of all-to-all test names found in the provided report summaries. |
java.lang.String |
getXml()
Retrieves the suite configuration from the consumer cache, finds all all-to-all test results, and returns a summary of the results per resource. |
void |
setDepotBean(DepotBean depotBean)
Set the depot bean where suite information can be retrieved from. |
void |
setSuiteGuid(java.lang.String suiteGuid)
Set the name of the suite where all-2-all summary results will be extracted from. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public final java.lang.String NAMESPACE_DECLS
public static org.apache.log4j.Logger logger
public static int NUM_STATS
public static int SUCCESSES
public static int NAF_FAILURES
public static int AF_FAILURES
Constructor Detail |
---|
public All2AllBean()
Method Detail |
---|
public java.lang.String getSuiteGuid()
public java.lang.String[] getTestNames(edu.sdsc.inca.dataModel.queryResults.ObjectDocument suite)
suite
- A cached suite document.
public java.lang.String getXml()
public void setDepotBean(DepotBean depotBean)
depotBean
- A depot bean objectpublic void setSuiteGuid(java.lang.String suiteGuid)
suiteGuid
- the name of a suiteprotected All2AllBean.TestSummaryResults computeSummary(All2AllBean.RESULT[][] results)
results
- An R X R array of all-to-all boolean test results.
protected All2AllBean.TestData extractTestData(java.lang.String testName, edu.sdsc.inca.dataModel.queryResults.ObjectDocument suite)
testName
- The name of the all-to-all test running on the set of
resources R.suite
- The suite results
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |