public interface Send extends SimulationTick
SimulationTick
that performs an operation against the scheduler.Modifier and Type | Method and Description |
---|---|
static Send |
offer(Protos.Offer offer)
Sends the provided offer to the scheduler.
|
static SendOffer.Builder |
offerBuilder(java.lang.String podType) |
static Send |
register() |
static Send |
replacePod(java.lang.String podName)
Initiates the replacement of a pod through a call to
PodResource.replacePod(String) . |
void |
send(ClusterState state,
SchedulerDriver mockDriver,
Scheduler scheduler)
Performs an action against the provided scheduler, optionally updating the provided cluster state to reflect
the action.
|
static SendTaskStatus.Builder |
taskStatus(java.lang.String taskName,
Protos.TaskState taskState) |
getDescription
static Send register()
static SendOffer.Builder offerBuilder(java.lang.String podType)
static SendTaskStatus.Builder taskStatus(java.lang.String taskName, Protos.TaskState taskState)
static Send replacePod(java.lang.String podName)
PodResource.replacePod(String)
.static Send offer(Protos.Offer offer)
void send(ClusterState state, SchedulerDriver mockDriver, Scheduler scheduler)
state
- the cluster's current state, containing a history of e.g. recent offers and launched tasksmockDriver
- a mock SchedulerDriver
which should be passed through to the scheduler
when
making any callsscheduler
- the Mesos Scheduler
under test