|
GigaSpaces XAP 9.7.2 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.openspaces.admin.alert.AlertFactory
public class AlertFactory
A factory for constructing an alert instance to be fired by an alert bean.
Constructor Summary | |
---|---|
AlertFactory()
A factory for creating an Alert . |
Method Summary | |
---|---|
AlertFactory |
componentDescription(String componentDescription)
Component Description - the description of the component specified by the componentUid(String) . |
AlertFactory |
componentUid(String componentUid)
Component UID - the unique identifier of the component associated with the alert. |
AlertFactory |
config(Map<String,String> properties)
Set the configuration properties used to configure the alert bean. |
Alert |
create()
|
AlertFactory |
description(String description)
Description - a description of the alert. |
AlertFactory |
groupUid(String groupUid)
A group unique identifier representing the aggregation of alerts belonging to the same alert bean, for a specific component. |
AlertFactory |
name(String name)
Alert name - the name assigned to the alert. |
AlertFactory |
properties(Map<String,String> properties)
Set any runtime properties which can be correlated with the appearance of this alert. |
AlertFactory |
putProperties(Map<String,String> properties)
Set any runtime properties which can be correlated with the appearance of this alert. |
AlertFactory |
putProperty(String key,
String value)
Set any runtime property which can be correlated with the appearance of this alert. |
AlertFactory |
severity(AlertSeverity severity)
Severity - the defined severity of the alert. |
AlertFactory |
status(AlertStatus status)
Status - the status of this alert. |
AlertFactory |
timestamp(long timestamp)
Timestamp - the date and time the alert occurred. |
Alert |
toAlert()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AlertFactory()
Alert
.
groupUid(String)
- required severity(AlertSeverity)
- required status(AlertStatus)
- required timestamp(long)
- optional, is set upon constructionname(String)
- optional (null
by default)description(String)
- optional (null
by default)componentUid(String)
- optional (null
by default)properties(Map)
- optional (null
by default)config(Map)
- optional (null
by default)
Method Detail |
---|
public AlertFactory name(String name)
public AlertFactory description(String description)
public AlertFactory timestamp(long timestamp)
public AlertFactory severity(AlertSeverity severity)
public AlertFactory status(AlertStatus status)
public AlertFactory groupUid(String groupUid)
public AlertFactory componentUid(String componentUid)
public AlertFactory componentDescription(String componentDescription)
componentUid(String)
.
public AlertFactory config(Map<String,String> properties)
Copies all of the configuration properties from the specified map. Overrides any previously set configuration properties.
properties
- the configuration properties of the alert bean.public AlertFactory properties(Map<String,String> properties)
Copies all of the properties from the specified map. Overrides any previously set properties.
properties
- the properties of an alert bean.putProperties(Map)
,
putProperty(String, String)
public AlertFactory putProperties(Map<String,String> properties)
A convenience method for adding properties to an already existing set of properties. Copies all of the properties from the specified map to this map.
properties(Map)
public AlertFactory putProperty(String key, String value)
A convenience method for adding a single property to an already existing set of properties.
properties(Map)
public Alert toAlert()
AdminException
- if required configurations were not set properly (groupUid(String)
,
severity(AlertSeverity)
, status(AlertStatus)
)public Alert create()
AdminException
- if required configurations were not set properly (groupUid(String)
,
severity(AlertSeverity)
, status(AlertStatus)
)
|
GigaSpaces XAP 9.7.2 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |