public class Notifier
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
address
Deprecated.
|
private java.util.Properties |
configuration
Field configuration.
|
private boolean |
sendOnError
Whether to send notifications on error.
|
private boolean |
sendOnFailure
Whether to send notifications on failure.
|
private boolean |
sendOnSuccess
Whether to send notifications on success.
|
private boolean |
sendOnWarning
Whether to send notifications on warning.
|
private java.lang.String |
type
The mechanism used to deliver notifications.
|
Constructor and Description |
---|
Notifier() |
Modifier and Type | Method and Description |
---|---|
void |
addConfiguration(java.lang.String key,
java.lang.String value)
Method addConfiguration.
|
java.lang.String |
getAddress()
Get Deprecated.
|
java.util.Properties |
getConfiguration()
Method getConfiguration.
|
java.lang.String |
getType()
Get the mechanism used to deliver notifications.
|
boolean |
isSendOnError()
Get whether to send notifications on error.
|
boolean |
isSendOnFailure()
Get whether to send notifications on failure.
|
boolean |
isSendOnSuccess()
Get whether to send notifications on success.
|
boolean |
isSendOnWarning()
Get whether to send notifications on warning.
|
void |
setAddress(java.lang.String address)
Set Deprecated.
|
void |
setConfiguration(java.util.Properties configuration)
Set extended configuration specific to this notifier goes
here.
|
void |
setSendOnError(boolean sendOnError)
Set whether to send notifications on error.
|
void |
setSendOnFailure(boolean sendOnFailure)
Set whether to send notifications on failure.
|
void |
setSendOnSuccess(boolean sendOnSuccess)
Set whether to send notifications on success.
|
void |
setSendOnWarning(boolean sendOnWarning)
Set whether to send notifications on warning.
|
void |
setType(java.lang.String type)
Set the mechanism used to deliver notifications.
|
private java.lang.String type
private boolean sendOnError
private boolean sendOnFailure
private boolean sendOnSuccess
private boolean sendOnWarning
private java.lang.String address
private java.util.Properties configuration
public void addConfiguration(java.lang.String key, java.lang.String value)
key
- value
- public java.lang.String getAddress()
public java.util.Properties getConfiguration()
public java.lang.String getType()
public boolean isSendOnError()
public boolean isSendOnFailure()
public boolean isSendOnSuccess()
public boolean isSendOnWarning()
public void setAddress(java.lang.String address)
address
- public void setConfiguration(java.util.Properties configuration)
configuration
- public void setSendOnError(boolean sendOnError)
sendOnError
- public void setSendOnFailure(boolean sendOnFailure)
sendOnFailure
- public void setSendOnSuccess(boolean sendOnSuccess)
sendOnSuccess
- public void setSendOnWarning(boolean sendOnWarning)
sendOnWarning
- public void setType(java.lang.String type)
type
-