001package io.ebean.docker.container; 002 003/** 004 * Commands for starting and stopping a DB container. 005 */ 006public interface Container { 007 008 /** 009 * Returns the container configuration. 010 */ 011 ContainerConfig config(); 012 013 /** 014 * Start the container. 015 */ 016 boolean start(); 017 018 /** 019 * Stop the container using stopMode which defaults to stop and remove. 020 */ 021 void stop(); 022 023 /** 024 * Stop the container only (no remove). 025 */ 026 void stopOnly(); 027 028 /** 029 * Return true if the container is running. 030 */ 031 boolean isRunning(); 032 033}