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 InputLocation |
addressLocation
Field addressLocation.
|
private java.util.Properties |
configuration
Field configuration.
|
private InputLocation |
configurationLocation
Field configurationLocation.
|
private InputLocation |
location
Field location.
|
private java.util.Map<java.lang.Object,InputLocation> |
locations
Field locations.
|
private boolean |
sendOnError
Whether to send notifications on error.
|
private InputLocation |
sendOnErrorLocation
Field sendOnErrorLocation.
|
private boolean |
sendOnFailure
Whether to send notifications on failure.
|
private InputLocation |
sendOnFailureLocation
Field sendOnFailureLocation.
|
private boolean |
sendOnSuccess
Whether to send notifications on success.
|
private InputLocation |
sendOnSuccessLocation
Field sendOnSuccessLocation.
|
private boolean |
sendOnWarning
Whether to send notifications on warning.
|
private InputLocation |
sendOnWarningLocation
Field sendOnWarningLocation.
|
private java.lang.String |
type
The mechanism used to deliver notifications.
|
private InputLocation |
typeLocation
Field typeLocation.
|
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.
|
private InputLocation |
getOtherLocation(java.lang.Object key) |
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 |
setOtherLocation(java.lang.Object key,
InputLocation location) |
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
private InputLocation location
private InputLocation typeLocation
private InputLocation sendOnErrorLocation
private InputLocation sendOnFailureLocation
private InputLocation sendOnSuccessLocation
private InputLocation sendOnWarningLocation
private InputLocation addressLocation
private InputLocation configurationLocation
public void addConfiguration(java.lang.String key, java.lang.String value)
key
- a key object.value
- a value object.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
- a key object.public void setLocation(java.lang.Object key, InputLocation location)
InputLocationTracker
setLocation
in interface InputLocationTracker
key
- a key object.location
- a location object.public void setOtherLocation(java.lang.Object key, InputLocation location)
key
- a key object.location
- a location object.private InputLocation getOtherLocation(java.lang.Object key)
key
- a key object.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
- a address object.public void setConfiguration(java.util.Properties configuration)
configuration
- a configuration object.public void setSendOnError(boolean sendOnError)
sendOnError
- a sendOnError object.public void setSendOnFailure(boolean sendOnFailure)
sendOnFailure
- a sendOnFailure object.public void setSendOnSuccess(boolean sendOnSuccess)
sendOnSuccess
- a sendOnSuccess object.public void setSendOnWarning(boolean sendOnWarning)
sendOnWarning
- a sendOnWarning object.public void setType(java.lang.String type)
type
- a type object.