public class LdapSender extends AbstractSender
Constructor and Description |
---|
LdapSender() |
Modifier and Type | Method and Description |
---|---|
void |
doClose() |
void |
doInit(Properties messageAttributes) |
Serializable |
doSend(Message message,
MeasurementUnit measurementUnit)
Actually performs the send operation.
|
String |
getFilter()
Gets the LDAP filter.
|
String |
getLdapPassword()
Gets the LDAP password.
|
String |
getLdapUsername()
Gets the LDAP username.
|
String |
getSearchBase()
Gets the LDAP search base.
|
void |
preSend(Message message,
Properties messageAttributes)
Performs any action that needs to be done to send the message but is not directly related to the sending operation and thus not measured.
|
LdapSender |
setFilter(String filter)
Sets the LDAP filter.
|
LdapSender |
setLdapPassword(String ldapPassword)
Sets the LDAP password.
|
LdapSender |
setLdapUsername(String ldapUsername)
Sets the LDAP username.
|
LdapSender |
setSearchBase(String searchBase)
Sets the LDAP search base.
|
close, getTarget, getTarget, init, isKeepConnection, postSend, safeGetTarget, send, setKeepConnection, setTarget
public String getLdapUsername()
public LdapSender setLdapUsername(String ldapUsername)
ldapUsername
- The LDAP username.public String getLdapPassword()
public LdapSender setLdapPassword(String ldapPassword)
ldapPassword
- The LDAP password.public String getSearchBase()
public LdapSender setSearchBase(String searchBase)
searchBase
- The LDAP search base.public String getFilter()
public LdapSender setFilter(String filter)
filter
- The LDAP filter.public void doInit(Properties messageAttributes) throws PerfCakeException
doInit
in class AbstractSender
PerfCakeException
public void doClose() throws PerfCakeException
doClose
in class AbstractSender
PerfCakeException
public void preSend(Message message, Properties messageAttributes) throws Exception
MessageSender
preSend
in interface MessageSender
preSend
in class AbstractSender
message
- Message to be sent.messageAttributes
- Attributes that can be used to replace placeholders in message and or target.Exception
- In case anything fails during the preparation.public Serializable doSend(Message message, MeasurementUnit measurementUnit) throws Exception
AbstractSender
doSend
in class AbstractSender
message
- Message to be sent.measurementUnit
- Measurement unit carrying the current stop-watch.Exception
- When the sending operation failed.MessageSender.send(org.perfcake.message.Message, org.perfcake.reporting.MeasurementUnit)
Copyright © 2010–2017 PerfCake Community. All rights reserved.