public class JmxSMTPMailServer
extends com.atlassian.mail.server.impl.SMTPMailServerImpl
SMTPMailServerImpl
to provide metrics for
The actual registration is handled by an instance of
MailServerEventListener
.
Constructor and Description |
---|
JmxSMTPMailServer() |
JmxSMTPMailServer(Long id,
String name,
String description,
String from,
String prefix,
boolean isSession,
boolean removePrecedence,
com.atlassian.mail.MailProtocol mailProtocol,
String location,
String smtpPort,
boolean tlsRequired,
String username,
String password,
long timeout) |
JmxSMTPMailServer(Long id,
String name,
String description,
String from,
String prefix,
boolean isSession,
String location,
String username,
String password) |
JmxSMTPMailServer(Long id,
String name,
String description,
String from,
String prefix,
boolean isSession,
String location,
String username,
String password,
String smtpPort) |
JmxSMTPMailServer(Long id,
String name,
String description,
String from,
String prefix,
boolean isSession,
String location,
String username,
String password,
String smtpPort,
String fromName) |
Modifier and Type | Method and Description |
---|---|
int |
getEmailsAttempted() |
int |
getEmailsSent() |
String |
getFromName() |
Date |
getLastSuccessful() |
boolean |
isActive() |
void |
quietSend(com.atlassian.mail.Email email) |
void |
send(com.atlassian.mail.Email email) |
void |
setFromName(String fromName) |
equals, getAuthenticator, getDefaultFrom, getJndiLocation, getJndiSession, getPrefix, getSession, getType, hashCode, isRemovePrecedence, isSessionServer, propertyChanged, sendMimeMessage, sendWithMessageId, setDefaultFrom, setJndiLocation, setPrefix, setRemovePrecedence, setSessionServer, toString
getConnectionTimeout, getDebug, getDebugStream, getDescription, getHostname, getId, getMailProtocol, getMoreDebugInfoAboutCreatedSession, getName, getPassword, getPort, getProperties, getSessionFromServerManager, getSocksHost, getSocksPort, getTimeout, getUsername, isTlsRequired, loadSystemProperties, setConnectionTimeout, setDebug, setDebugStream, setDescription, setHostname, setId, setLogger, setMailProtocol, setName, setPassword, setPort, setProperties, setSocksHost, setSocksPort, setTimeout, setTlsRequired, setUsername
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getDebug, getDebugStream, isTlsRequired, setDebug, setTlsRequired
getDescription, getHostname, getId, getMailProtocol, getName, getPassword, getPort, getProperties, getSocksHost, getSocksPort, getTimeout, getUsername, setDebugStream, setDescription, setHostname, setId, setLogger, setMailProtocol, setName, setPassword, setPort, setProperties, setSocksHost, setSocksPort, setTimeout, setUsername
public JmxSMTPMailServer()
public JmxSMTPMailServer(Long id, String name, String description, String from, String prefix, boolean isSession, String location, String username, String password)
public JmxSMTPMailServer(Long id, String name, String description, String from, String prefix, boolean isSession, String location, String username, String password, String smtpPort)
public JmxSMTPMailServer(Long id, String name, String description, String from, String prefix, boolean isSession, String location, String username, String password, String smtpPort, String fromName)
public JmxSMTPMailServer(Long id, String name, String description, String from, String prefix, boolean isSession, boolean removePrecedence, com.atlassian.mail.MailProtocol mailProtocol, String location, String smtpPort, boolean tlsRequired, String username, String password, long timeout)
public void quietSend(com.atlassian.mail.Email email) throws com.atlassian.mail.MailException
quietSend
in interface com.atlassian.mail.server.SMTPMailServer
quietSend
in class com.atlassian.mail.server.impl.SMTPMailServerImpl
com.atlassian.mail.MailException
public void send(com.atlassian.mail.Email email) throws com.atlassian.mail.MailException
send
in interface com.atlassian.mail.server.SMTPMailServer
send
in class com.atlassian.mail.server.impl.SMTPMailServerImpl
com.atlassian.mail.MailException
public int getEmailsSent()
public int getEmailsAttempted()
public Date getLastSuccessful()
public boolean isActive()
public String getFromName()
public void setFromName(String fromName)
Copyright © 2003–2017 Atlassian. All rights reserved.