|
AdventNet Web NMS 4 API Specification | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
This is the "Remote" interface for the AlertSessionBean. Using the AlertSessionBean (the associated EJBean), both CustomView related operations and AlertAPI related operations can be performed.
CustomSessionRemote| Method Summary | |
boolean |
clearAlert(java.lang.String ticket,
java.lang.String entity)
Clears the alert i.e, Changes the severity of the alert to clear. |
boolean |
deleteAlert(java.lang.String ticket,
java.lang.String entity)
Deletes the alert from the system |
void |
deleteAlertAnnotation(java.lang.String ticket,
java.lang.String entity)
To delete Alert Annotation for an Alert Object |
void |
deleteAlertHistory(java.lang.String ticket,
java.lang.String entity)
To delete Alert History for an Alert Object |
int |
getAlertCount(java.lang.String ownerName,
java.lang.String[] category,
int severity)
Returns the number of alerts for the specified array of categories and severity |
int |
getAlertCount(java.lang.String ownerName,
java.lang.String category,
int severity)
Returns the number of alerts with given category and severity. |
com.adventnet.nms.fe.alert.ejb.AlertCountData |
getAlertCountData(java.lang.String ownerName)
Returns a AlertCountData object containing information about the
number of Alerts present in each category and severity. |
com.adventnet.nms.fe.alert.ejb.AlertCountData |
getAlertCountData(java.lang.String ownerName,
java.lang.String[] categoryList)
Returns a AlertCountData object containing information about the
number of Alerts present in each category and severity. |
int |
getAlertsCount(java.lang.String ticket,
int severity)
Returns the number of alerts with given severity in the WebNMS System. |
java.util.Vector |
getAnnotation(java.lang.String ticket,
java.lang.String entity)
Get the Complete set of AlertAnnotation Objects in a Vector for a particular Alert. |
java.lang.String |
getGroupViewMode(java.lang.String ticket)
Alert objects can be grouped based on the "groupName" property of the Alert. |
java.util.Vector |
getHistory(java.lang.String ticket,
java.lang.String entity)
Get the Complete set of AlertHistory Objects in a Vector for a particular Alert. |
int |
getTotalAlertCount(java.lang.String ownerName)
Returns Total number of Alerts in the Web NMS system. |
int |
getTotalAlertCount(java.lang.String ownerName,
java.lang.String category)
Returns the number of alerts with given category. |
int |
getTotalAlertCount(java.lang.String ownerName,
java.lang.String[] category)
Returns the number of alerts belonging to any of the given categories. |
com.adventnet.nms.fe.alert.ejb.AlertCountData |
getUserAlertCountData(java.lang.String userName,
java.lang.String[] categoryList)
Returns a AlertCountData object containing information about the
number of Alerts present in each category and severity. |
boolean |
pickUpAlert(java.lang.String who,
java.lang.String entity)
Picks up an alert. |
boolean |
unPickAlert(java.lang.String who,
java.lang.String entity)
This method unpicks the alert, whose entity field matches entity,if it is already picked up by an user. |
boolean |
updateNotes(java.lang.String userName,
java.lang.String entity,
java.lang.String notes)
To add annotation notes to the Alert as annotated by user of name userName. |
| Methods inherited from interface com.adventnet.nms.fe.common.ejb.CustomSessionRemote |
createCustomView, createCustomView, getAllViewIDsAndProps, getData, getObjectNamesWithProps, getPropertiesOfObject, getTotalCount, getTotalCount, getTotalCount, getViewProperties, modifyCustomView, removeCustomView, renameCustomView, saveViewState |
| Methods inherited from interface javax.ejb.EJBObject |
getEJBHome, getHandle, getPrimaryKey, isIdentical, remove |
| Method Detail |
public java.lang.String getGroupViewMode(java.lang.String ticket)
throws java.rmi.RemoteException
If the group mode is "none", then the alerts are not grouped and all the alerts are shown separately.
If the group mode is "max", then the alert of maximum severity, out of all the alerts belonging to that group, represents that group.
If the group mode is "latest", then the latest alert from an alert group represents that group.
This method will return the group view mode set in the configuration file processSmall_begin.conf_RDBMS_BE (RDBMS mode) as mentioned above.
ticket - String value which gets the userName as ticket for authentication and logging.java.rmi.RemoteException - if an error occurs
public boolean pickUpAlert(java.lang.String who,
java.lang.String entity)
throws java.rmi.RemoteException
who - The user name to be assigned to the Alert.who fieldentity - The entity of the Alert object to be picked up.java.rmi.RemoteException - if error occurs in Remote machine
public boolean unPickAlert(java.lang.String who,
java.lang.String entity)
throws java.rmi.RemoteException
who - The user name who unpicking the alertentity - The entity of the Alert object to be picked up.java.rmi.RemoteException - if error occurs in Remote machine
public boolean deleteAlert(java.lang.String ticket,
java.lang.String entity)
throws java.rmi.RemoteException
ticket - String value which gets the userName as ticket for authentication and logging.entity - The entity of the alert object to be deletedjava.rmi.RemoteException - if error occurs in Remote machine
public boolean clearAlert(java.lang.String ticket,
java.lang.String entity)
throws java.rmi.RemoteException
ticket - String value which gets the userName as ticket for authentication and logging.entity - The entity of thr Alert Object whose status is to be cleared.java.rmi.RemoteException - if error occurs in Remote machine
public boolean updateNotes(java.lang.String userName,
java.lang.String entity,
java.lang.String notes)
throws java.rmi.RemoteException
userName - The name of the user who is adding the annotationentity - The entity of the Alert to which annotation has to be done.notes - The text which is to be used for annotation.java.rmi.RemoteException - if error occurs in Remote machine
public java.util.Vector getAnnotation(java.lang.String ticket,
java.lang.String entity)
throws java.rmi.RemoteException
ticket - String value which gets the userName as ticket for authentication and logging.entity - The unique entity name of the Alert.java.rmi.RemoteException - if error occurs in Remote machineAlertAnnotation
public java.util.Vector getHistory(java.lang.String ticket,
java.lang.String entity)
throws java.rmi.RemoteException
ticket - String value which gets the userName as ticket for authentication and logging.entity - The unique entity name of the Alert.java.rmi.RemoteException - if error occurs in Remote machineAlertHistory
public int getAlertsCount(java.lang.String ticket,
int severity)
throws java.rmi.RemoteException
ticket - String value which gets the userName as ticket for authentication and logging.severity - The severity value of the Alert as specified in the
SeverityInfo.conf file in the java.rmi.RemoteException - if error occurs in Remote machine
public void deleteAlertAnnotation(java.lang.String ticket,
java.lang.String entity)
throws java.rmi.RemoteException
ticket - String value which gets the userName as ticket for authentication and logging.entity - The unique entity name of the Alert.java.rmi.RemoteException - if error occurs in Remote machine
public void deleteAlertHistory(java.lang.String ticket,
java.lang.String entity)
throws java.rmi.RemoteException
ticket - String value which gets the userName as ticket for authentication and logging.entity - The unique entity name of the Alert.java.rmi.RemoteException - if error occurs in Remote machine
public int getTotalAlertCount(java.lang.String ownerName)
throws java.rmi.RemoteException,
NmsStorageException
ownerName - which gets the userName as ticket for authentication and logging.java.rmi.RemoteException - if error occurs in Remote machineNmsStorageException - if error occurs while querying DB
public int getAlertCount(java.lang.String ownerName,
java.lang.String category,
int severity)
throws java.rmi.RemoteException,
NmsStorageException
ownerName - the userName as ticket for authentication and logging.category - category of the Alert.severity - The severity value of the alert as specified in the
SeverityInfo.conf file in the WebNMS/conf directory.java.rmi.RemoteException - if an error occursNmsStorageException - if an error occurs
public int getTotalAlertCount(java.lang.String ownerName,
java.lang.String category)
throws java.rmi.RemoteException,
NmsStorageException
ownerName - the userName as ticket for authentication and logging.category - category of the Alert.java.rmi.RemoteException - if an error occursNmsStorageException - if an error occurs
public int getTotalAlertCount(java.lang.String ownerName,
java.lang.String[] category)
throws java.rmi.RemoteException,
NmsStorageException
ownerName - the userName as ticket for authentication and logging.category - the array of categories of the Alert.java.rmi.RemoteException - if an error occursNmsStorageException - if an error occurs
public int getAlertCount(java.lang.String ownerName,
java.lang.String[] category,
int severity)
throws java.rmi.RemoteException,
NmsStorageException
ownerName - the userName as ticket for authentication and logging.category - array of categories of the Alerts.severity - The severity value of the alert as specified in the
SeverityInfo.conf file in the WebNMS/conf directory.java.rmi.RemoteException - if an error occursNmsStorageException - if an error occurs
public com.adventnet.nms.fe.alert.ejb.AlertCountData getAlertCountData(java.lang.String ownerName)
throws java.rmi.RemoteException,
NmsStorageException
AlertCountData object containing information about the
number of Alerts present in each category and severity.ownerName - the userName as ticket for authentication and logging.AlertCountData object with Alert count datajava.rmi.RemoteException - if error occurs in Remote machineNmsStorageException - if error occurs while querying DB
public com.adventnet.nms.fe.alert.ejb.AlertCountData getAlertCountData(java.lang.String ownerName,
java.lang.String[] categoryList)
throws java.rmi.RemoteException,
NmsStorageException
AlertCountData object containing information about the
number of Alerts present in each category and severity. The AlertCountData will have
"Categories-Total" as a category with the total calculated for the alerts present in the
specified list of catogories categoryList.ownerName - the userName as ticket for authentication and logging.categoryList - the list of categories based on which Categories-Total has to be calculated.AlertCountData object with Alert count datajava.rmi.RemoteException - if error occurs in Remote machineNmsStorageException - if error occurs while querying DB
public com.adventnet.nms.fe.alert.ejb.AlertCountData getUserAlertCountData(java.lang.String userName,
java.lang.String[] categoryList)
throws java.rmi.RemoteException,
NmsStorageException
AlertCountData object containing information about the
number of Alerts present in each category and severity.userName - name of the user who request Alert Count Data.categoryList - the list of categories based on which Alert count total has to be calculated.AlertCountData object with Alert Count Datajava.rmi.RemoteException - if error occurs in Remote machineNmsStorageException - if error occurs while querying DB
|
AdventNet Web NMS 4 API Specification | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||