|
Apache JMeter | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jmeter.testelement.AbstractTestElement
org.apache.jmeter.reporters.MailerModel
public class MailerModel
The model for a MailerVisualizer.
Field Summary |
---|
Fields inherited from interface org.apache.jmeter.testelement.TestElement |
---|
COMMENTS, ENABLED, GUI_CLASS, NAME, TEST_CLASS |
Constructor Summary | |
---|---|
MailerModel()
Constructs a MailerModel. |
Method Summary | |
---|---|
void |
add(SampleResult sample)
Adds a SampleResult. |
void |
addChangeListener(ChangeListener list)
|
void |
clear()
Resets the state of this object to its default. |
Object |
clone()
|
Vector |
getAddressVector()
Gets a Vector of String-objects. |
long |
getFailureCount()
|
long |
getFailureLimit()
|
String |
getFailureSubject()
|
String |
getFromAddress()
|
String |
getSmtpHost()
|
long |
getSuccessCount()
|
long |
getSuccessLimit()
|
String |
getSuccessSubject()
|
String |
getToAddress()
|
void |
notifyChangeListeners()
|
void |
sendMail(String from,
Vector vEmails,
String subject,
String attText,
String smtpHost)
Sends a mail with the given parameters using SMTP. |
void |
sendTestMail()
|
void |
setFailureLimit(String limit)
|
void |
setFailureSubject(String str)
|
void |
setFromAddress(String str)
|
void |
setSmtpHost(String str)
|
void |
setSuccessLimit(String limit)
|
void |
setSuccessSubject(String str)
|
void |
setToAddress(String str)
|
String |
toString()
Returns a String-representation of this object. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MailerModel()
Method Detail |
---|
public void addChangeListener(ChangeListener list)
public Object clone()
clone
in interface TestElement
clone
in class AbstractTestElement
public void notifyChangeListeners()
public Vector getAddressVector()
setToAddress(str)
. The addresses
must be seperated by commas. Only String-objects containing a "@" are
added to the returned Vector.
public void add(SampleResult sample)
successCount
and
failureCount
.
sample
- the SampleResult encapsulating informations about the last
sample.public void clear()
clear
in interface TestElement
clear
in class AbstractTestElement
public String toString()
toString
in class Object
public void sendMail(String from, Vector vEmails, String subject, String attText, String smtpHost) throws AddressException, MessagingException
from
- the sender of the mail as shown in the mail-client.vEmails
- all receivers of the mail. The receivers are seperated by
commas.subject
- the subject of the mail.attText
- the message-body.smtpHost
- the smtp-server used to send the mail.
AddressException
MessagingException
public void sendTestMail() throws AddressException, MessagingException
AddressException
MessagingException
public void setToAddress(String str)
public void setFromAddress(String str)
public void setSmtpHost(String str)
public void setFailureSubject(String str)
public void setSuccessSubject(String str)
public void setSuccessLimit(String limit)
public void setFailureLimit(String limit)
public String getToAddress()
public String getFromAddress()
public String getSmtpHost()
public String getFailureSubject()
public String getSuccessSubject()
public long getSuccessLimit()
public long getSuccessCount()
public long getFailureLimit()
public long getFailureCount()
|
Apache JMeter | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |