1 package org.andromda.core.server;
2
3 import java.net.ConnectException;
4 import org.andromda.core.configuration.Configuration;
5
6 /**
7 * A client used to connect to an AndroMDA
8 * {@link Server} instance.
9 *
10 * @see Server
11 * @author Chad Brandon
12 */
13 public interface Client
14 {
15 /**
16 * Connects to and starts an AndroMDA server with the given <code>configuration</code>.
17 *
18 * @param configuration the AndroMDA configuration instance.
19 * @throws ConnectException if the client can not connect to an
20 * AndroMDA server instance.
21 */
22 public void start(final Configuration configuration)
23 throws ConnectException;
24
25 /**
26 * Connects to and stops an AndroMDA server with the given <code>configuration</code>.
27 *
28 * @param configuration the AndroMDA configuration instance.
29 * @throws ConnectException if the client can not connect to an
30 * AndroMDA server instance.
31 */
32 public void stop(final Configuration configuration)
33 throws ConnectException;
34 }