to top
public class

BulkEmailer

extends Object
@OptionClass(alias = "emailer")
java.lang.Object
   ↳ com.android.tradefed.util.BulkEmailer

Class Overview

A email sender utility that allows the following configuration: sent interval,initial burst size, recipients and the total number messages.

Summary

Fields
private int mEmails @Option(name = "total-emails", description = "total number of emails to send", importance = com.android.tradefed.config.Option.Importance.IF_UNSET)
private int mInitialBurst @Option(name = "initial-burst", description = "initial burst of email to send", importance = com.android.tradefed.config.Option.Importance.IF_UNSET)
private int mInterval @Option(name = "send-interval", description = "email send interval in milliseconds", importance = com.android.tradefed.config.Option.Importance.IF_UNSET)
private String mRecipients @Option(name = "recipients", description = "a comma separate list of recipient email addresses", importance = com.android.tradefed.config.Option.Importance.IF_UNSET)
private String mSender @Option(name = "sender", description = "the sender email.", importance = com.android.tradefed.config.Option.Importance.NEVER)
Public Constructors
BulkEmailer()
Public Methods
static BulkEmailer loadMailer(IConfiguration config)
Helper method to load BulkMailer from config.
void sendEmails()
void sendEmailsBg()
[Expand]
Inherited Methods
From class java.lang.Object

Fields

private int mEmails

private int mInitialBurst

private int mInterval

private String mRecipients

private String mSender

Public Constructors

public BulkEmailer ()

Public Methods

public static BulkEmailer loadMailer (IConfiguration config)

Helper method to load BulkMailer from config. The config must include the following tag

Parameters
config IConfiguration: the config
Returns
BulkEmailer an instance of BulkEmailer
Throws
ConfigurationException

public void sendEmails ()

public void sendEmailsBg ()