01: package org.andromda.core.server;
02:
03: import java.net.ConnectException;
04:
05: import org.andromda.core.configuration.Configuration;
06:
07: /**
08: * A client used to connect to an AndroMDA
09: * {@link Server} instance.
10: *
11: * @see Server
12: * @author Chad Brandon
13: */
14: public interface Client {
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: }
|