Skip to content

Commit

Permalink
javadocs
Browse files Browse the repository at this point in the history
  • Loading branch information
amihaiemil committed May 11, 2018
1 parent a625cff commit 5102324
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions src/main/java/com/amihaiemil/docker/Container.java
Expand Up @@ -48,9 +48,12 @@ public interface Container {

/**
* Start this container.
* @see <a href="https://docs.docker.com/engine/api/v1.35/#operation/ContainerStart">Start Container</a>
* @throws IOException If something goes wrong.
* @throws UnexpectedResponseException If the status response is not
* the expected one (204 NO CONTENT).
*/
void start() throws IOException;
void start() throws IOException, UnexpectedResponseException;

/**
* This Container's id.
Expand All @@ -60,34 +63,38 @@ public interface Container {

/**
* Stop this container.
* @see <a href="https://docs.docker.com/engine/api/v1.35/#operation/ContainerStop">Stop Container</a>
* @throws IOException If something goes wrong.
* @throws UnexpectedResponseException If the status response is not
* expected.
* the expected one (204 NO CONTENT).
*/
void stop() throws IOException, UnexpectedResponseException;

/**
* Kill this container. SIGKILL is sent to this container.
* @see <a href="https://docs.docker.com/engine/api/v1.35/#operation/ContainerKill">Kill Container</a>
* @throws IOException If something goes wrong.
* @throws UnexpectedResponseException If the status response is not
* expected.
* the expected one (204 NO CONTENT).
*/
void kill() throws IOException, UnexpectedResponseException;

/**
* Restarts this container.
* @see <a href="https://docs.docker.com/engine/api/v1.35/#operation/ContainerRestart">Restart Container</a>
* @throws IOException If something goes wrong.
* @throws UnexpectedResponseException If the status response is not
* expected.
* the expected one (204 NO CONTENT).
*/
void restart() throws IOException, UnexpectedResponseException;

/**
* Rename this container.
* @param name New name for the container.
* @see <a href="https://docs.docker.com/engine/api/v1.35/#operation/ContainerRename">Rename Container</a>
* @throws IOException If something goes wrong.
* @throws UnexpectedResponseException If the status response is not
* expected.
* the expected one (204 NO CONTENT).
*/
void rename(final String name)
throws IOException, UnexpectedResponseException;
Expand Down

0 comments on commit 5102324

Please sign in to comment.