01: /*
02: * Copyright (C) The MX4J Contributors.
03: * All rights reserved.
04: *
05: * This software is distributed under the terms of the MX4J License version 1.0.
06: * See the terms of the MX4J License in the documentation provided with this software.
07: */
08:
09: package mx4j.tools.adaptor;
10:
11: import java.io.IOException;
12: import java.net.ServerSocket;
13:
14: /**
15: * The ServerSocket factory interface. <p>
16: * It allows to create ServerSocket for JMX adaptors
17: *
18: * @version $Revision: 1.3 $
19: */
20: public interface AdaptorServerSocketFactory {
21: /**
22: * Creates a new ServerSocket on the specified port, with the specified backlog and on the given host. <br>
23: * The last parameter is useful for hosts with more than one IP address.
24: */
25: public ServerSocket createServerSocket(int port, int backlog,
26: String host) throws IOException;
27: }
|