| |
|
| java.lang.Object org.apache.jmeter.testelement.AbstractTestElement org.apache.jmeter.reporters.MailerModel
Constructor Summary | |
public | MailerModel() Constructs a MailerModel. |
MailerModel | public MailerModel()(Code) | | Constructs a MailerModel.
|
add | public synchronized void add(SampleResult sample)(Code) | | Adds a SampleResult. If SampleResult represents a change concerning the
failure/success of the sampling a message might be send to the addressies
according to the settings of successCount and
failureCount .
Parameters: sample - the SampleResult encapsulating informations about the lastsample. |
clear | public synchronized void clear()(Code) | | Resets the state of this object to its default. But: This method does not
reset any mail-specific attributes (like sender, mail-subject...) since
they are independent of the sampling.
|
getAddressVector | public synchronized Vector getAddressVector()(Code) | | Gets a Vector of String-objects. Each String is one mail-address of the
addresses-String set by setToAddress(str) . The addresses
must be seperated by commas. Only String-objects containing a "@" are
added to the returned Vector.
a Vector of String-objects wherein each String represents amail-address. |
getFailureCount | public long getFailureCount()(Code) | | |
getFailureLimit | public long getFailureLimit()(Code) | | |
getSuccessCount | public long getSuccessCount()(Code) | | |
getSuccessLimit | public long getSuccessLimit()(Code) | | |
isFailing | public synchronized boolean isFailing()(Code) | | Returns wether there had been more failures than acceptable.
a boolean value indicating whether the limit of acceptablefailures has been reached. |
notifyChangeListeners | public void notifyChangeListeners()(Code) | | |
sendMail | public synchronized void sendMail(String from, Vector vEmails, String subject, String attText, String smtpHost) throws AddressException, MessagingException(Code) | | Sends a mail with the given parameters using SMTP.
Parameters: from - the sender of the mail as shown in the mail-client. Parameters: vEmails - all receivers of the mail. The receivers are seperated bycommas. Parameters: subject - the subject of the mail. Parameters: attText - the message-body. Parameters: smtpHost - the smtp-server used to send the mail. |
sendTestMail | public synchronized void sendTestMail() throws AddressException, MessagingException(Code) | | |
setFailureLimit | public void setFailureLimit(String limit)(Code) | | |
setFailureSubject | public void setFailureSubject(String str)(Code) | | |
setSuccessLimit | public void setSuccessLimit(String limit)(Code) | | |
setSuccessSubject | public void setSuccessSubject(String str)(Code) | | |
toString | public String toString()(Code) | | Returns a String-representation of this object. Returns always
"E-Mail-Notification". Might be enhanced in future versions to return
some kind of String-representation of the mail-parameters (like sender,
addressies, smtpHost...).
A String-representation of this object. |
|
|
|