public class ScopeSelftest extends AbstractService implements Selftest
| Modifier and Type | Class and Description |
|---|---|
static class |
ScopeSelftest.ScopeSelftestResult |
Selftest.RunStatus, Selftest.SelftestResultservicesSERVICE_NAME| Constructor and Description |
|---|
ScopeSelftest(ScopeServices services) |
| Modifier and Type | Method and Description |
|---|---|
void |
addResult(SelftestProtos.SelftestResult result)
Add a new selftest result to the internal cache kept in Operadriver#selftest
|
Map<String,List<String>> |
getAvailableGroups()
Retrieves a list of available groups.
|
void |
init()
Initialize the service.
|
void |
onSelftestResult(ServiceCallback<SelftestProtos.SelftestResult> callback)
Specify a callback for when a selftest result is received.
|
Selftest.RunStatus |
runSelftests(Set<String> modules,
String groups,
String excludes)
Run the selftests for the specified modules.
|
buildPayload, executeMessage, executeMessage, executeMessage, getServiceName, getServiceVersion, isVersionInRange, sleep, toString, xpathIterator, xpathPointerclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetServiceName, getServiceVersionpublic ScopeSelftest(ScopeServices services)
public void init()
Servicepublic Selftest.RunStatus runSelftests(Set<String> modules, String groups, String excludes)
SelftestrunSelftests in interface Selftestmodules - module namesgroups - group names or patternexcludes - pattern of groups or modules that should be excluded from testingSelftest.RunStatus.RUNNING if tests are running, or Selftest.RunStatus.NOT_AVAILABLE if
no tests matching the selection pattern are foundpublic void addResult(SelftestProtos.SelftestResult result)
Selftestpublic void onSelftestResult(ServiceCallback<SelftestProtos.SelftestResult> callback)
SelftestonSelftestResult in interface Selftestcallback - will be called on every selftest result that is receivedCopyright © 2012. All Rights Reserved.