|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.indeed.proctor.consumer.AbstractGroups
public abstract class AbstractGroups
| Constructor Summary | |
|---|---|
protected |
AbstractGroups(ProctorResult proctorResult)
|
| Method Summary | |
|---|---|
void |
appendTestGroups(StringBuilder sb)
|
void |
appendTestGroups(StringBuilder sb,
char separator)
Appends each group to the StringBuilder using the separator to delimit group names. |
StringBuilder |
buildTestGroupString()
|
Map<String,Integer> |
getJavaScriptConfig()
Generates a Map that be serialized to JSON and used with indeed.proctor.groups.init and indeed.proctor.groups.inGroup(tstName, bucketValue) When we create a generated JavaScript representation of indeed.proctor.AbstractGroups, this config can be updated for use in it's constructor. |
protected Payload |
getPayload(String testName)
Deprecated. Use getPayload(String, Bucket) instead |
protected Payload |
getPayload(String testName,
Bucket<?> fallbackBucket)
|
ProctorResult |
getProctorResult()
|
protected TestBucket |
getTestBucketForBucket(String testName,
Bucket<?> targetBucket)
Return the TestBucket, as defined in the current test matrix, for the test called testName with bucket value targetBucket.getValue(). |
Map<String,String> |
getTestVersions()
|
Map<String,String> |
getTestVersions(Set<String> tests)
|
protected int |
getValue(String testName,
int defaultValue)
|
protected boolean |
isBucketActive(String testName,
int value)
Deprecated. Use isBucketActive(String, int, int) instead |
protected boolean |
isBucketActive(String testName,
int value,
int defaultValue)
|
protected boolean |
isEmpty()
Return a value indicating if the groups are empty and should be represented by an empty-string toString() |
String |
toLongString()
|
String |
toString()
To be called when logging ONLY |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected AbstractGroups(ProctorResult proctorResult)
| Method Detail |
|---|
public Map<String,String> getTestVersions()
protected boolean isBucketActive(String testName,
int value)
isBucketActive(String, int, int) instead
protected boolean isBucketActive(String testName,
int value,
int defaultValue)
protected int getValue(String testName,
int defaultValue)
public Map<String,String> getTestVersions(Set<String> tests)
@Nonnull protected Payload getPayload(String testName)
getPayload(String, Bucket) instead
@Nonnull
protected Payload getPayload(String testName,
@Nonnull
Bucket<?> fallbackBucket)
@Nullable
protected TestBucket getTestBucketForBucket(String testName,
Bucket<?> targetBucket)
public String toLongString()
public String toString()
toString in class Objectpublic StringBuilder buildTestGroupString()
public void appendTestGroups(StringBuilder sb)
protected boolean isEmpty()
toString()
public void appendTestGroups(StringBuilder sb,
char separator)
toString()
buildTestGroupString() or appendTestGroups(StringBuilder)
sb - public Map<String,Integer> getJavaScriptConfig()
public ProctorResult getProctorResult()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||