public class HostPickingStrategies extends Object
Constructor and Description |
---|
HostPickingStrategies() |
Modifier and Type | Method and Description |
---|---|
static HostPickingStrategy |
deterministic(String key)
For any given invocation returns a random host, but running the same test with the same
key should put jobs on the same hosts as they were the last time.
|
static HostPickingStrategy |
deterministicOneHost(String key)
Deterministically, choose a single host for all jobs in the test.
|
static HostPickingStrategy |
random()
For any given invocation returns a random host
|
static HostPickingStrategy |
randomOneHost()
Pick a single host and use that for all jobs to be deployed in the tests used by this
strategy.
|
public static HostPickingStrategy random()
public static HostPickingStrategy randomOneHost()
public static HostPickingStrategy deterministic(String key)
key
- The random generator seedpublic static HostPickingStrategy deterministicOneHost(String key)
key
- The random generator seedCopyright © 2015. All rights reserved.