public interface AlertBoardReader
| Modifier and Type | Method and Description |
|---|---|
void |
addAlertListener(AlertListener listener)
Deprecated.
|
void |
addAlertListener(AlertListener listener,
java.lang.String username,
java.lang.String ldapFilter)
With this method application can declare that it likes to receive notifications for
raising and pulling down of alerts on the alert board.
|
Enumerator |
getAlerts()
Returns an Enumeration of Alert objects representing alerts in the alert
board targeted to the default user.
|
Enumerator |
getAlerts(java.lang.String username)
Returns an Enumeration of Alert objects representing alerts in the alert
board targeted to a given user.
|
AlertSet |
getAlertSetInfo(java.lang.String alertMessage)
Returns the
AlertSet for a particular alert message. |
Enumerator |
getAllAlerts(int timeout)
Returns an Enumeration of Alert objects representing alerts in the alert
board targeted to the default user.
|
Enumerator |
getBackendAlerts(java.lang.String[] hostRoles)
Returns an Enumeration of Alert objects representing alerts in the alert
board, that have been raised by the control center modules and targeted to
the default user.
|
Enumerator |
getBackendAlerts(java.lang.String username,
java.lang.String[] hostRoles)
Returns an Enumeration of Alert objects representing alerts in the alert
board, that have been raised by the given backend hosts and targeted to
a given user.
|
Enumerator |
getByLdapFilter(java.lang.String ldapFilter)
Returns an Enumeration of Alert objects representing alerts in the alert
board targeted to the default user and filtered by given ldap filter specifying
the alert source.
|
Enumerator |
getByLdapFilter(java.lang.String username,
java.lang.String ldapFilter)
Returns an Enumeration of Alert objects representing alerts in the alert
board targeted to a given user and filtered by given LDAP filter specifying
the alert source.
|
Enumerator |
getByLdapFilter(java.lang.String message,
java.lang.String username,
java.lang.String ldapFilter)
Returns an Enumerator of
Alert objects representing alerts in the alert
board having a message, identified by the message argument and target
to a user/group identified by the username argument and
additionally filtered by the given ldapFilter |
Enumerator |
getDeviceAlerts(java.lang.String deviceType,
java.lang.String deviceId)
Returns an Enumeration of Alert objects representing alerts in the alert
board, that have been raised for the device with given type and id, and targeted to the
default user.
|
Enumerator |
getDeviceAlerts(java.lang.String username,
java.lang.String deviceType,
java.lang.String deviceId)
Returns an Enumeration of Alert objects representing alerts related to a
given device and targeted to a given user.
|
AlertSet[] |
getDistinctAlertSetsByLdapFilter(int maxCount,
java.lang.String username,
java.lang.String ldapFilter)
Returns an array of
AlertSet objects, representing all alerts
classified by a message and target to a user/group identified by
the username argument and additionally filtered by the given ldapFilter |
Enumerator |
getGatewayAlerts(java.lang.String gatewayId)
Deprecated.
As of mPRM 4.0, the preferred way is to use
getDeviceAlerts(String, String) method. |
Enumerator |
getGatewayAlerts(java.lang.String username,
java.lang.String gatewayId)
Deprecated.
As of mPRM 4.0, the preferred way is to use
getDeviceAlerts(String, String, String) method. |
void |
removeAlertListener(AlertListener listener)
Removes an alert listener.
|
Enumerator getAlerts(java.lang.String username) throws ManagementException
username - specifies the targeted user the retrieved alerts will be filtered by.ManagementException - if a system error occurs.Enumerator getAlerts() throws ManagementException
Alert objects.ManagementException - if a system error occurs.Enumerator getAllAlerts(int timeout) throws ManagementException
timeout - defines the timeout to remote host in secondsAlert objects.ManagementException - if a system error occurs.Enumerator getByLdapFilter(java.lang.String username, java.lang.String ldapFilter) throws ManagementException
username - specifies the targeted user the retrieved alerts will be filtered by.ldapFilter - specifies a source criteria of the requested alertsAlert objects.ManagementException - if a system error occurs.Enumerator getByLdapFilter(java.lang.String ldapFilter) throws ManagementException
ldapFilter - specifies a source criteria of the requested alertsAlert objects.ManagementException - if a system error occurs.Enumerator getBackendAlerts(java.lang.String username, java.lang.String[] hostRoles) throws ManagementException
hostRoles - array of the target backend host roles. Elements of the array can be one
of Role.CC, Role.MS, Role.RAS, or id of particular Management Server.
Supplying Role.MS means that all management servers will be included.username - specifies the targeted user the retrieved alerts will be filtered by.Alert objects.ManagementException - if a system error occurs.Enumerator getBackendAlerts(java.lang.String[] hostRoles) throws ManagementException
hostRoles - array of the target backend host roles. Elements of the array can be one
of Role.CC, Role.MS, Role.RAS, or id of particular Management Server.
Supplying Role.MS means that all management servers will be included.Alert objects.ManagementException - if a system error occurs.Enumerator getGatewayAlerts(java.lang.String username, java.lang.String gatewayId) throws ManagementException
getDeviceAlerts(String, String, String) method.username - specifies the user or group. Null value as username argument means
that alerts targeted to any users will be returned.gatewayId - specifies the gateway identifier. Null value as gatewayId argument
means that alerts raised on all managed gateways will be returned.Alert objects.ManagementException - if a system error occurs.Enumerator getDeviceAlerts(java.lang.String username, java.lang.String deviceType, java.lang.String deviceId) throws ManagementException
username - specifies the user or group. Null value as a username argument means that
alerts targeted to any users will be returned.deviceType - device type. Null value as deviceId argument means that alerts
related on all managed devices of the specified type will be returned.deviceId - device id.Alert objects.ManagementException - if a system error occurs.Enumerator getGatewayAlerts(java.lang.String gatewayId) throws ManagementException
getDeviceAlerts(String, String) method.gatewayId - specifies the gateway identifier Null value as gatewayId argument means
that alerts raised on all managed gateways will be returned.ManagementException - if a system error occurs.Enumerator getDeviceAlerts(java.lang.String deviceType, java.lang.String deviceId) throws ManagementException
deviceType and deviceId argument means that
alerts raised on all managed devices will be returned.deviceType - device type.deviceId - device id.ManagementException - if a system error occurs.void addAlertListener(AlertListener listener) throws ManagementException
addAlertListener(AlertListener, String, String)listener - application defined alert listener.ManagementException - if a system error occurs.void addAlertListener(AlertListener listener, java.lang.String username, java.lang.String ldapFilter) throws ManagementException
listener - application defined alert listener.username - specifies the user or group.null value means
that the listener will be notified for alerts targeted to any user.ldapFilter - an LDAP filter restricting the events to receiveManagementException - if a system error occurs.void removeAlertListener(AlertListener listener)
listener - application defined alert listener.AlertSet[] getDistinctAlertSetsByLdapFilter(int maxCount, java.lang.String username, java.lang.String ldapFilter) throws ManagementException
AlertSet objects, representing all alerts
classified by a message and target to a user/group identified by
the username argument and additionally filtered by the given ldapFiltermaxCount - restricts the result array size if there are a great number of distinct alert messagesusername - specifies the user or group.null value means
that the alerts targeted to any user will be returnedldapFilter - specifies an additional filtering of the alerts the application is interested of.
null value means no additional filtering to be madeAlertSet objects representing all (or maxCount
if their number is greater than the maxCount argument) alert sets.ManagementException - if a system error occursAlertSet getAlertSetInfo(java.lang.String alertMessage) throws ManagementException
AlertSet for a particular alert message.alertMessage - alert message.ManagementException - if a system error occursEnumerator getByLdapFilter(java.lang.String message, java.lang.String username, java.lang.String ldapFilter) throws ManagementException
Alert objects representing alerts in the alert
board having a message, identified by the message argument and target
to a user/group identified by the username argument and
additionally filtered by the given ldapFiltermessage - specifies the alert message of interest. null value means all alert messagesusername - specifies the user or group.null value means
that the alerts targeted to any user will be returnedldapFilter - specifies an additional filtering of the alerts the application is interested of.
null value means no additional filtering to be madeAlert objects.ManagementException - if a system error occurs.Copyright © 2019 Bosch Software Innovations GmbH. All Rights Reserved.