Class SmtpPortMonitor
java.lang.Object
com.aoindustries.noc.monitor.portmon.PortMonitor
com.aoindustries.noc.monitor.portmon.DefaultTcpPortMonitor
com.aoindustries.noc.monitor.portmon.SmtpPortMonitor
- Direct Known Subclasses:
SmtpsPortMonitor
Monitors with SMTP-specific protocol support.
- Author:
- AO Industries, Inc.
-
Field Summary
Fields inherited from class com.aoindustries.noc.monitor.portmon.DefaultTcpPortMonitor
CONNECTED_SUCCESSFULLY, CONNECTED_SUCCESSFULLY_SSL, ssl, TIMEOUT
Fields inherited from class com.aoindustries.noc.monitor.portmon.PortMonitor
canceled, CRLF, ipAddress, port
-
Constructor Summary
ConstructorDescriptionSmtpPortMonitor
(InetAddress ipAddress, Port port, boolean ssl, URIParameters monitoringParameters) Creates a new SMTP monitor.SmtpPortMonitor
(InetAddress ipAddress, Port port, URIParameters monitoringParameters) Creates a new SMTP monitor. -
Method Summary
Modifier and TypeMethodDescriptioncheckPort
(Socket socket, InputStream socketIn, OutputStream socketOut) Performs any protocol-specific monitoring.Methods inherited from class com.aoindustries.noc.monitor.portmon.DefaultTcpPortMonitor
cancel, checkPort, connect
Methods inherited from class com.aoindustries.noc.monitor.portmon.PortMonitor
getPortMonitor, readLine
-
Constructor Details
-
SmtpPortMonitor
public SmtpPortMonitor(InetAddress ipAddress, Port port, boolean ssl, URIParameters monitoringParameters) Creates a new SMTP monitor. -
SmtpPortMonitor
Creates a new SMTP monitor.
-
-
Method Details
-
checkPort
public String checkPort(Socket socket, InputStream socketIn, OutputStream socketOut) throws Exception Description copied from class:DefaultTcpPortMonitor
Performs any protocol-specific monitoring. This default implementation does nothing.- Overrides:
checkPort
in classDefaultTcpPortMonitor
- Throws:
Exception
-