Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

Definition

Excerpt

Stop a running container

Info

This feature is only available for local containers

Note: The stop action waits till the container is fully stopped before returning.

Example using the Java API

Stopping Orion 1.x:

Code Block
InstalledLocalContainer container = new Orion1xInstalledLocalContainer(
    new OrionStandaloneConfiguration("target/orion1x"));
container.setHome("c:/apps/orion-1.6.0b");

container.stop();

Example using the Ant API

Stopping Orion 1.x:

Code Block
xml
xml
<cargo refId="mycontainerid" home="c:/apps/orion-1.6.0b" action="stop"/>

Note that if you use the refid attribute you'll need to have defined it using an id attribute when you started the container. For example:

Code Block
xml
xml
<cargo id="mycontainerid" [...] action="start">
  [...]
</cargo>
<cargo refid="mycontainerid" [...] action="stop"/>

Alternatively you could specify a full configuration if you don't want to use the refid attribute.