|
AdventNet Web NMS 4 API Specification | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--com.adventnet.nms.fe.common.CustomSessionBean
|
+--com.adventnet.nms.fe.perf.PerfSessionBean
This class is the bean implementation of PerfSession. This holds the reference of ThinPerfAPI and acts as wrapper for update/write requests like deletePoll, getCollectedData, etc. send by the client. Also as it extends CustomSessionBean, the customview related operations are also taken care.
CustomSessionBean| Fields inherited from class com.adventnet.nms.fe.common.CustomSessionBean |
apihandle, cvScopeAPI, cvu, dbUtility, jdbcapi, latest, logapi, module, tableName |
| Constructor Summary | |
PerfSessionBean()
default constructor called while bean instantiation |
|
| Method Summary | |
void |
deletePoll(java.lang.String userName,
java.lang.String name)
Stops data collection for all the PolledData objects whose agent name is the name passed as a parameter and removes the PolledData objects from the Polling Engine database . |
boolean |
deleteThresholdObject(java.lang.String userName,
java.lang.String name)
Deletes the ThresholdObject with the name as the name passed, from the system. |
java.util.Vector |
getActivePollers(java.lang.String userName)
Returns the names of all the active pollers at that time. |
java.util.Vector |
getAllThresholdObjectsProps(java.lang.String userName)
Returns Properties of all the available ThresholdObjects. |
CollectedData |
getCollectedData(java.lang.String userName,
java.lang.String index,
java.lang.String key,
long timeStart,
long timeEnd)
Returns the data collected for the PolledData object whose key matches with the key passed, which is collected between the specified time, and for the specified instance. |
ViewData |
getData(ViewCriteria criteria)
Gets all the PolledData in the system |
protected java.util.Properties |
getDefaultPanelProps()
Returns default Panel Properties that can be used for createCustomView & modifyCustomView. |
protected java.lang.String |
getModuleName()
Gets module of the extending class. |
int |
getNumPollObjects(java.lang.String userName)
Returns the total number of PolledData objects currently present in the Polling engine. |
java.util.Vector |
getObjectNamesWithProps(java.lang.String userName,
java.util.Properties p)
Returns all the PolledData objects matching the Properties. |
java.util.Vector |
getObjectsProps(java.lang.String userName,
java.lang.String classname,
java.util.Properties match)
Returns the Vector of Properties of PolledData objects matching the given properties. |
java.util.Vector |
getPollingObjects(java.lang.String userName)
Returns all PollingObjects in NMS |
java.util.Vector |
getPollsForAgent(java.lang.String userName,
java.lang.String agentname)
Returns the keys of all the PolledData objects configured for an agent. |
java.util.Properties |
getPropertiesOfObject(java.lang.String userName,
java.lang.String key)
Returns the Properties of an PolledData Object specified by its unique key. |
boolean |
removePoll(java.lang.String userName,
java.lang.String key)
stops the data collection for the PolledData object identified by the key and deletes the corresponding PolledData object from the polling engine database. |
void |
setAPI(CommonAPI obj)
session narrowerinterface impl method for setting the api to be used for the bean. |
void |
setConnection(java.sql.Connection con)
setConnection method uses the connection and to create instances for CustomViewUtility and DBXmlUtility. |
| Methods inherited from class com.adventnet.nms.fe.common.CustomSessionBean |
createCustomView, createCustomView, error, getAllViewIDsAndProps, getCriteriaProps, getInstance, getLatest, getTableColumnsArr, getTotalCount, getTotalCount, getTotalCount, getViewProperties, log, modifyCustomView, removeCustomView, renameCustomView, saveViewState, setCustomViewScopeAPI, setJdbcAPI, setLogAPI, setSeverityAPI, validate |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PerfSessionBean()
| Method Detail |
public void setConnection(java.sql.Connection con)
setConnection method uses the connection and to create instances for CustomViewUtility and DBXmlUtility.con - a Connection valueprotected java.lang.String getModuleName()
getModuleName in class CustomSessionBeanprotected java.util.Properties getDefaultPanelProps()
getDefaultPanelProps in class CustomSessionBeanpublic void setAPI(CommonAPI obj)
setAPI in class CustomSessionBeancom.adventnet.nms.fe.common.SessionNarrowerInterfacecomapi - a CommonAPI instance to be used by this Session Bean.
public void deletePoll(java.lang.String userName,
java.lang.String name)
throws java.rmi.RemoteException
userName - The name of the user which will be used for authentication and logging.name - The agent name of the PolledData object for which
data collection is to be stopped and the PolledData objects are deleted.java.rmi.RemoteException - if an error occurs during remote call
public boolean removePoll(java.lang.String userName,
java.lang.String key)
throws java.rmi.RemoteException
userName - The name of the user which will be used for authentication and logging.key - The key for the PolledData object.
The key for a PolledData pd is
pd.name+"\t"+pd.agent.toLowerCase().trim()+"\t"+pd.oidjava.rmi.RemoteException - if an error occurs during remote call
public CollectedData getCollectedData(java.lang.String userName,
java.lang.String index,
java.lang.String key,
long timeStart,
long timeEnd)
throws java.rmi.RemoteException
userName - The name of the user which will be used for authentication and logging.index - the instance string whose value is needed.key - The key of the PolledData Object whose data are required.
The key for a PolledData pd is
pd.name+"\t"+pd.agent.toLowerCase().trim()+"\t"+pd.oidtimeStart - The starting time from when the collected data
is required. The time is given as a long.timeEnd - The end time until when the collected data is
required as long.java.rmi.RemoteException - if an error occurs during remote call
public java.util.Vector getPollsForAgent(java.lang.String userName,
java.lang.String agentname)
throws java.rmi.RemoteException
userName - The name of the user which will be used for authentication and logging.agentname - Name of the agent whose keys to the PolledData
has to be returned.String.
Empty Vector if there is no PolledData configured for that agent.java.rmi.RemoteException - if an error occurs during remote call
public java.util.Vector getObjectsProps(java.lang.String userName,
java.lang.String classname,
java.util.Properties match)
throws java.rmi.RemoteException
This method can be used only if the object's properties are
stored in an RDBMS. It is also assumed one object is stored in only
one table. If one object is stored in multiple tables, then only
partial object will be returned.userName - The name of the user which will be used for authentication and logging.classname - name of the class the object belongs.match - properties which is to be matched with the object's
properties.java.rmi.RemoteException - if an error occurs during remote call
public int getNumPollObjects(java.lang.String userName)
throws java.rmi.RemoteException
userName - The name of the user which will be used for authentication and logging.java.rmi.RemoteException - if an error occurs during remote call
public java.util.Vector getActivePollers(java.lang.String userName)
throws java.rmi.RemoteException
userName - The name of the user which will be used for authentication and logging.java.rmi.RemoteException - if an error occurs during remote call
public boolean deleteThresholdObject(java.lang.String userName,
java.lang.String name)
throws java.rmi.RemoteException
userName - The name of the user which will be used for authentication and logging.name - Name of the thresholdObject to be deleted.java.rmi.RemoteException - if an error occurs during remote call
public java.util.Vector getAllThresholdObjectsProps(java.lang.String userName)
throws java.rmi.RemoteException
userName - The name of the user which will be used for authentication and logging.java.rmi.RemoteException - if an error occurs during remote call
public java.util.Vector getPollingObjects(java.lang.String userName)
throws java.rmi.RemoteException,
NmsPollException
userName - The name of the user which will be used for authentication and logging.java.rmi.RemoteException - if an error occurs during remote callNmsPollException - if an error occurs while getting Polling Objects.
public java.util.Properties getPropertiesOfObject(java.lang.String userName,
java.lang.String key)
throws java.rmi.RemoteException
getPropertiesOfObject in class CustomSessionBeanuserName - The name of the user which will be used for authentication and logging.a - key The keyof the PolledData Object whose properties is to be returned.
public java.util.Vector getObjectNamesWithProps(java.lang.String userName,
java.util.Properties p)
throws java.rmi.RemoteException
getObjectNamesWithProps in class CustomSessionBeanuserName - The name of the user which will be used for authentication and logging.p - The properties with which to filter out PolledData.
public ViewData getData(ViewCriteria criteria)
throws java.rmi.RemoteException,
com.adventnet.nms.fe.common.CustomViewException
getData in class CustomSessionBeanuserName - The name of the user which will be used for authentication and logging.
|
AdventNet Web NMS 4 API Specification | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||