public class Notifier extends java.lang.Object implements java.io.Serializable, java.lang.Cloneable, InputLocationTracker
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
address
Deprecated.
|
private java.util.Properties |
configuration
Field configuration.
|
private java.util.Map<java.lang.Object,InputLocation> |
locations
Field locations.
|
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.
|
Notifier |
clone()
Method clone.
|
java.lang.String |
getAddress()
Get Deprecated.
|
java.util.Properties |
getConfiguration()
Method getConfiguration.
|
InputLocation |
getLocation(java.lang.Object key)
Gets the location of the specified field in the input
source.
|
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 |
setLocation(java.lang.Object key,
InputLocation location)
Sets the location of the specified field.
|
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
private java.util.Map<java.lang.Object,InputLocation> locations
public void addConfiguration(java.lang.String key, java.lang.String value)
key
- value
- public Notifier clone()
clone
in class java.lang.Object
public java.lang.String getAddress()
public java.util.Properties getConfiguration()
public InputLocation getLocation(java.lang.Object key)
InputLocationTracker
getLocation
in interface InputLocationTracker
key
- 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 setLocation(java.lang.Object key, InputLocation location)
InputLocationTracker
setLocation
in interface InputLocationTracker
key
- location
- 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
-