public interface Selftest extends Service
| Modifier and Type | Interface and Description |
|---|---|
static class |
Selftest.RunStatus |
static interface |
Selftest.SelftestResult
Represents a single result from a selftest.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
SERVICE_NAME |
| Modifier and Type | Method and Description |
|---|---|
void |
addResult(SelftestProtos.SelftestResult message)
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 |
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.
|
getServiceName, getServiceVersion, initstatic final String SERVICE_NAME
void addResult(SelftestProtos.SelftestResult message)
Selftest.RunStatus runSelftests(Set<String> modules, String groups, String excludes)
modules - 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 foundMap<String,List<String>> getAvailableGroups()
void onSelftestResult(ServiceCallback<SelftestProtos.SelftestResult> callback)
callback - will be called on every selftest result that is receivedCopyright © 2012. All Rights Reserved.