|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface EmailerMBean
Provides e-mail configuration and back-end capabilities to other MBeans
Supported API: true
Extendable: true
| Method Summary | |
|---|---|
String |
addEmailList(String emailListName)
Add a EmailList MBean (unless it already exists) and returns its ObjectName Supported API: true |
void |
emailFile(String fileRef,
String addressesOrEmailList,
String subject,
boolean compress)
E-mail entire file as an attachment, optionally compressing it. |
void |
emailLogsDirs(String addressesOrEmailList,
String subject,
boolean oneMessagePerFile,
int maxAgeInDays,
int minAgeInDays,
String matchingExpression)
For each LogsDirViewer MBean, e-mail log files from its target log directory filtering by the specified file age Supported API: true |
void |
emailTextFile(String fileRef,
String addressesOrEmailList,
String subject,
long maxLines,
long maxChars)
E-mail last portion of text file. |
void |
emailThreadInfo(long threadId,
String addressesOrEmailList,
String subject)
E-mails detailed information on the given thread Supported API: true |
String[] |
getEmailAddressesForList(String emailListName)
Get list of e-mail addresses for a given e-mail list name Supported API: true |
String[] |
getEmailListNames()
Names of e-mail lists Supported API: true |
long |
getEmailRequests()
Number of requests to send e-mail via this MBean Supported API: true |
int |
getEmailSendRetries()
Number of attempts made to send an e-mail before giving up Supported API: true |
int |
getEmailSendRetrySeconds()
Number of seconds between retry attempts to send e-mail Supported API: true |
long |
getFailures()
Number of e-mail send failures Supported API: true |
String |
getFromAddress()
Mail address used in the "From" field of e-mail messages sent Supported API: true |
String |
getLogger()
Name of logger Supported API: true |
String |
getLogLevel()
Log level (not persisted with MBean); valid values are ALL, TRACE, DEBUG, INFO, WARN, ERROR, FATAL, OFF (or blank/unspecified) Supported API: true |
String |
getMailServer()
Mail server host name Supported API: true |
int |
getMailServerPort()
Mail server port Supported API: true |
int |
getMaximumPoolSize()
Maximum number of threads to allow in e-mailing thread pool Supported API: true |
long |
getSuccesses()
Number of e-mail send successes Supported API: true |
void |
removeEmailList(String emailListName)
Remove an EmailList MBean by name (if it exists) Supported API: true |
void |
setEmailSendRetries(int emailSendRetries)
Number of attempts made to send an e-mail before giving up Supported API: true |
void |
setEmailSendRetrySeconds(int emailSendRetrySeconds)
Number of seconds between retry attempts to send e-mail Supported API: true |
void |
setFromAddress(String fromAddress)
Mail address used in the "From" field of e-mail messages sent Supported API: true |
void |
setLogLevel(String logLevel)
Log level (not persisted with MBean); valid values are ALL, TRACE, DEBUG, INFO, WARN, ERROR, FATAL, OFF (or blank/unspecified) Supported API: true |
void |
setMailServer(String mailServer)
Mail server host name Supported API: true |
void |
setMailServerPassword(String mailServerPassword)
Password used to authenticate with e-mail server Supported API: true |
void |
setMailServerPort(int mailServerPort)
Mail server port Supported API: true |
void |
setMailServerUsername(String mailServerUsername)
User name used to authenticate with e-mail server Supported API: true |
void |
setMaximumPoolSize(int maximumPoolSize)
Maximum number of threads to allow in e-mailing thread pool Supported API: true |
| Methods inherited from interface wt.jmx.core.mbeans.SelfEmailingMBean |
|---|
emailThisMBean |
| Method Detail |
|---|
String getLogger()
String getLogLevel()
void setLogLevel(String logLevel)
long getEmailRequests()
long getSuccesses()
long getFailures()
String getMailServer()
void setMailServer(String mailServer)
int getMailServerPort()
void setMailServerPort(int mailServerPort)
String getFromAddress()
void setFromAddress(String fromAddress)
void setMailServerUsername(String mailServerUsername)
void setMailServerPassword(String mailServerPassword)
int getEmailSendRetries()
void setEmailSendRetries(int emailSendRetries)
int getEmailSendRetrySeconds()
void setEmailSendRetrySeconds(int emailSendRetrySeconds)
int getMaximumPoolSize()
void setMaximumPoolSize(int maximumPoolSize)
String[] getEmailListNames()
String[] getEmailAddressesForList(String emailListName)
emailListName - Name of e-mail listString addEmailList(String emailListName)
emailListName - Name of e-mail listvoid removeEmailList(String emailListName)
emailListName - Name of e-mail list
void emailFile(String fileRef,
String addressesOrEmailList,
String subject,
boolean compress)
throws IOException
Note that this operation is considered to have an ACTION_INFO (i.e. "read and write")
impact even though it does not change any server state. This is due to
the fact that it can be used to e-mail any file readable by the
given process, including files which may contain sensitive information
such as passwords. This operation is thus restricted to those users with
the broadest possible access and privileges.
Supported API: true
fileRef - Reference (URL, file, or resource) to file to e-mailaddressesOrEmailList - Comma-delimited list of e-mail addresses or name of e-mail list to send e-mail tosubject - Subject to give e-mailcompress - Whether to compress the file attachement
IOException
void emailTextFile(String fileRef,
String addressesOrEmailList,
String subject,
long maxLines,
long maxChars)
throws IOException
Note that this operation is considered to have an ACTION_INFO (i.e. "read and write")
impact even though it does not change any server state. This is due to
the fact that it can be used to e-mail any text file readable by the
given process, including files which may contain sensitive information
such as passwords. This operation is thus restricted to those users with
the broadest possible access and privileges.
Supported API: true
fileRef - Reference (URL, file, or resource) to file to e-mailaddressesOrEmailList - Comma-delimited list of e-mail addresses or name of e-mail list to send e-mail tosubject - Subject to give e-mailmaxLines - Maximum number of lines to include; non-positive numbers imply no limitmaxChars - Maximum number of characters to include; non-positive numbers imply no limit
IOException
void emailThreadInfo(long threadId,
String addressesOrEmailList,
String subject)
throws IOException,
SAXException
threadId - Id of target threadaddressesOrEmailList - Comma-delimited list of e-mail addresses or name of e-mail list to send e-mail tosubject - Subject to give e-mail
IOException
SAXException
void emailLogsDirs(String addressesOrEmailList,
String subject,
boolean oneMessagePerFile,
int maxAgeInDays,
int minAgeInDays,
String matchingExpression)
throws IOException
addressesOrEmailList - Comma-delimited list of e-mail addresses or name of e-mail list to send e-mail tosubject - Subject to give e-mailoneMessagePerFile - Whether to send a separate e-mail message for each filemaxAgeInDays - Maximum age in days (by modification date) of files to e-mailminAgeInDays - Minimum age in days (by modification date) of files to e-mail; ignored when less than or equal to zeromatchingExpression - Regular expression file names must match to be e-mailed; ignored if empty or null
IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||