01: /*
02: * Copyright (C) The Spice Group. All rights reserved.
03: *
04: * This software is published under the terms of the Spice
05: * Software License version 1.1, a copy of which has been included
06: * with this distribution in the LICENSE.txt file.
07: */
08: package org.codehaus.spice.netserve.connection.impl;
09:
10: import java.io.IOException;
11: import java.net.ServerSocket;
12:
13: import org.codehaus.spice.netserve.connection.impl.AcceptorMonitor;
14:
15: /**
16: * A noop monitor.
17: *
18: * @author Peter Donald
19: * @version $Revision: 1.2 $ $Date: 2004/03/21 23:42:59 $
20: */
21: public class NullAcceptorMonitor implements AcceptorMonitor {
22: /**
23: * Add constant for instance of Null Monitor.
24: */
25: public static final NullAcceptorMonitor MONITOR = new NullAcceptorMonitor();
26:
27: /**
28: * @see AcceptorMonitor#acceptorCreated
29: */
30: public void acceptorCreated(final String name,
31: final ServerSocket serverSocket) {
32: }
33:
34: /**
35: * @see AcceptorMonitor#acceptorClosing
36: */
37: public void acceptorClosing(final String name,
38: final ServerSocket serverSocket) {
39: }
40:
41: /**
42: * @see AcceptorMonitor#serverSocketListening
43: */
44: public void serverSocketListening(final String name,
45: final ServerSocket serverSocket) {
46: }
47:
48: /**
49: * @see AcceptorMonitor#errorAcceptingConnection
50: */
51: public void errorAcceptingConnection(final String name,
52: final IOException ioe) {
53: }
54:
55: /**
56: * @see AcceptorMonitor#errorClosingServerSocket
57: */
58: public void errorClosingServerSocket(final String name,
59: final IOException ioe) {
60: }
61: }
|