pub struct FlinkContainer { /* private fields */ }Expand description
An Apache Flink JobManager, with an optional companion TaskManager (see
FlinkContainer::with_task_manager).
Implementations§
Source§impl FlinkContainer
impl FlinkContainer
Sourcepub fn with_image(image: &str) -> Self
pub fn with_image(image: &str) -> Self
Builds a container from a caller-chosen image.
Sourcepub fn with_task_manager(self) -> Result<Self>
pub fn with_task_manager(self) -> Result<Self>
Adds a companion TaskManager, giving the cluster real task slots. Docker
only — returns RightsizeError::UnsupportedByBackend on microsandbox (see
the module doc’s backend-support section); the remedy is to run this test
under the docker backend instead. Must be called before FlinkContainer::start.
Sourcepub async fn start(self) -> Result<FlinkGuard>
pub async fn start(self) -> Result<FlinkGuard>
Boots the JobManager, then (if FlinkContainer::with_task_manager was
called) the companion TaskManager.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for FlinkContainer
impl !UnwindSafe for FlinkContainer
impl Freeze for FlinkContainer
impl Send for FlinkContainer
impl Sync for FlinkContainer
impl Unpin for FlinkContainer
impl UnsafeUnpin for FlinkContainer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more