|
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
|
+--java.rmi.server.RemoteObject
|
+--java.rmi.server.RemoteServer
|
+--java.rmi.server.UnicastRemoteObject
|
+--com.adventnet.nms.fe.perf.PollAPIProxyImpl
Proxy implementation of PollAPI for accessing, adding, modifying and deleting PolledData objects in the database. This API is accessible either through RMI or directly from the same JVM. When RMI is enabled, i.e. by runninng RMI registry before NMS server is started, the PollAPI can be accessed remotely via RMI. It is published with RMI handle /PollAPI on the server.
| Fields inherited from class java.rmi.server.RemoteObject |
ref |
| Constructor Summary | |
PollAPIProxyImpl()
Obtains the handle of PollAPI. |
|
| Method Summary | |
void |
addCreateSchema(java.lang.String tableName,
java.lang.String schema)
This method adds a new table and a respective schema to create that table.When this table name is given for the PolledData the table will be created and the Collected Data will be stored in this table. |
void |
addPoll(PolledData pdata)
Adds a PolledData into the database. |
void |
addPoll(PolledData pdata,
boolean kickoff)
Deprecated. as of WebNMS2.1 use addPoll(PolledData) instead. |
void |
addPolledData(PolledData pd,
boolean passthrofilters)
Adds a PolledData into the database. |
void |
addPolledDataForMO(ManagedObject mo)
Adds PolledData to the Polling Engine for the ManagedObject which is passed as a parameter. |
void |
addPollFilter(java.lang.String className)
Adds a new poll filter to the Polling Engine. |
void |
addPollingObject(PollingObject po,
boolean updateOldMOs)
Adds a new PollingObject to the Polling Engine. |
void |
addProtocolProvider(java.lang.String protocol,
ProtocolProvider prov)
Adds a new ProtocolProvider class for the protocol provided. |
void |
addReport(ReportObject ro)
Adds a new report to the Polling Engine. |
boolean |
addThresholdObject(ThresholdObject obj)
Adds a ThresholdObject in to the system. |
PolledData |
checkOut(java.lang.String key)
Newly added methods of PollAPI for Object Locking support !! |
PolledData |
checkOut(java.lang.String key,
int timeOut)
Checks out the PolledData with the given key from the database for writing, with a write lock. |
PolledData |
checkOutIfAvailable(java.lang.String key)
Checks out the PolledData with the given key from the database for writing, with a write lock. |
boolean |
checkWritePermission(PolledData obj)
Checks whether this instance of the PolledData can be written to the database. |
void |
clearLockForObject(java.lang.String name,
int lockType)
Releases the specified lock type unconditionally for the PolledData with the given name. |
void |
createTable(java.lang.String tableName)
This method creates the table that is given as the paranmeter. |
void |
dataUpdate(CollectedInfo colinfo)
Called when intimation about data collection has to be done for all PolledData objects of an agent as a set or for all data, i.e., when the observer has registered for all PolledData objects of a particular agent or registered for all data. |
void |
dataUpdate(java.lang.String pollkey,
long time,
long value)
This is the method called in case of the collected data being a numeric. |
void |
dataUpdate(java.lang.String pollkey,
long time,
java.lang.String value)
This is the method called in case of the collected data being a String. |
void |
deletePoll(java.lang.String nodename)
Stops data collection for all the PolledData whose agent name matches the name passed as parameter and removes the PolledData from the database . |
void |
deletePollFilter(java.lang.String className)
Deletes an existing poll filter from Poll Engine whose name is passed as an argument. |
void |
deletePollingObject(java.lang.String name)
Deletes the PollingObject whose name is passed as a
parameter from Polling Engine. |
void |
deletePropForPollingObject(java.lang.String name,
java.lang.String key)
Deletes a single oid from the PollingObject whose name is
passed as a parameter. |
void |
deleteProtocolProvider(java.lang.String protocol)
Deletes the Provider Class defined for this protocol. |
void |
deleteReport(java.lang.String name)
Deletes an existing report with the class name, whose name is passed as a parameter. |
boolean |
deleteThresholdObject(java.lang.String name)
Deletes the ThresholdObject with the name name
from the system. |
void |
deRegister(PollUnitObserver pdObs)
Deregisters this observer from getting the notifications whenever a PolledData is added/modified/deleted. |
void |
deregisterForAllData(PollObserver pollob)
Deregisters the specified pollObserver from being notified when a data is collected. |
void |
deregisterForData(java.lang.String key,
PollObserver pollob)
Deregisters the specified PollObserver from being notified when the data is collected for the PolledData whose key corresponds to the key passed as argument. |
void |
deregisterForDataFromAgent(java.lang.String agent,
PollObserver pollob)
Deregisters the PollObserver from being notified of the data collected from the agent whose name is passed as parameter. |
java.util.Vector |
fetchPollerSpecificPolldata(java.lang.String name)
To get all the PolledDatas for the PollerName given as a parameter. |
java.util.Vector |
getActivePollers()
Fetches the names of the active pollers at that time. |
java.util.Vector |
getAllThresholdObjects()
Returns all the available ThresholdObjects. |
CollectedData |
getCollectedData(java.lang.String key,
java.util.Date date)
Returns the data collected for the PolledData object on a given date, whose key matches with the key passed. |
java.util.Vector |
getCollectedData(java.lang.String key,
long timeStart)
Deprecated. as of WebNMS2.2 use getColletedValues(String,long) |
java.util.Vector |
getCollectedData(java.lang.String key,
long timeStart,
long timeEnd)
Deprecated. as of WebNMS2.2 use getColletedValues(String,long,long) |
java.util.Vector |
getCollectedData(java.lang.String key,
java.lang.String date)
Deprecated. as of WebNMS2.2 use getColletedData(String, Date) |
CollectedData |
getCollectedData(java.lang.String instance,
java.lang.String key,
java.util.Date date)
Returns the data collected for the PolledData whose key corresponds to the key specified as argument and for the specified instance on the specified date. |
CollectedData |
getCollectedData(java.lang.String instance,
java.lang.String key,
long timeStart)
To get the data of the PolledData object whose key corresponds to the the key specified as argument and for the specified instance and form the given time till current time. |
CollectedData |
getCollectedData(java.lang.String index,
java.lang.String key,
long starttime,
long endtime)
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. |
CollectedData |
getCollectedValues(java.lang.String key,
long timeStart)
Returns the data collected for the given PolledData object whose key is given and between the start time specified till the current time . |
CollectedData |
getCollectedValues(java.lang.String key,
long timeStart,
long timeEnd)
Returns the data collected for the PolledData object whose key matches with the key passed, and is collected between the specified time. |
java.util.Vector |
getCompleteList()
Returns key of all the PolledData objects. |
java.lang.String |
getCreateSchema(java.lang.String tableName)
This method returns the schema that is used for creating the table that is specified. |
int |
getCurrentLockType(PolledData obj)
Gets the type oflock currently held by the specified instance of the PolledData. |
java.util.Vector |
getInstances(MultiplePolledData mpd)
Returns all the instances of the PolledData when the type of the PolledData is multiple or else returns one element with the value -1. |
java.util.Vector |
getList()
Deprecated. as of version WebNMS2.0 use getCompleteList() instead. |
int |
getNumPollObjects()
Returns the total number of PolledData objects currently present in the Polling engine. |
java.util.Vector |
getObjectNamesWithProps(java.util.Properties p)
Returns all the objects whose properties match with the given Properties. |
java.util.Vector |
getObjects(java.lang.String classname,
java.util.Properties match)
Returns the Vector of PolledData objects matching the given properties. |
PolledData |
getPolledData(java.lang.String key)
Returns the PolledData details for the key passed as parameter. |
boolean |
getPolledDataConsistent(java.lang.String groupname,
java.lang.String key)
Checks whether all the nodes in the group has PolledData with same name and oid. |
java.util.Vector |
getPolledDataForGroup(java.lang.String group)
Returns the PolledData objects for nodes that belong to the groupname given. |
java.util.Vector |
getPolledDataForNode(java.lang.String ipaddr)
Returns all the PolledData objects configured for Node with the given IPAddresss. |
java.util.Vector |
getPolledDataForNodes(java.lang.String[] ipaddrlist)
Returns the PolledData objects for all the nodes whose IPAddress matches the IPAddress in the given list. |
java.util.Vector |
getPolledDataForNodes(java.lang.String startip,
java.lang.String endip,
java.lang.String netmask)
Returns all the PolledData objects of the nodes whose IPAddress falls between startip and endip. |
PollingObject |
getPollingObject(java.lang.String name)
Returns the PollingObject whose name is passed as a parameter. |
java.util.Vector |
getPollingObjects()
Returns a Vector of all PollingObjects in Polling Engine. |
boolean |
getPollingObjectStatus(java.lang.String name)
returns the status of the PollingObject,whose name is
passed as a parameter to this method. |
java.util.Vector |
getPollsForAgent(java.lang.String agentname)
Returns the keys of all the PolledData objects configured for an agent. |
java.util.Properties |
getPropertiesOfObject(java.lang.String objectname)
Returns the Properties of the object passed. |
java.util.Vector |
getTableNames()
Returns a Vector of tables specific to this poller. |
java.util.Hashtable |
getThreshHashOfOid()
Returns a Hashtable containing names of ThresholdObjects associated with oids. |
boolean |
isInitialized()
Returns boolean value to indicate whether the PollAPI has been initialized or not. |
boolean |
isPollerActive(java.lang.String pollerName)
Returns the status of the poller identified by the name given as argument. |
PolledData |
lock(PolledData obj,
int lock_type,
int timeout)
Applies the specified lock to the PolledData. |
void |
modifyPoll(PolledData pdata)
Modify a PolledData object whose key matches with the key of PolledData passed as parameter. |
void |
modifyPoll(PolledData pdata,
boolean dealWithLocks)
Modify a PolledData element whose key matches with the key of PolledData passed as as a parameter . |
void |
modifyPollingObject(PollingObject po,
boolean updateOldMOs)
Modifies an existing PollingObject. |
void |
modifyPropForPollingObject(java.lang.String name,
java.util.Properties prop,
boolean updateMOs)
modifies properties of a single oid or adds a new oid in the data collection criteria of PollingObject whose of name passed as a parameter. |
boolean |
modifyThresholdObject(ThresholdObject obj)
Modifies the ThresholdObject which has been added already. |
void |
postBEFailOverNotification(BEFailOverEvent beEvent)
Indicates that the FE server has successfully switched over its connection to the current primary BE server. |
void |
preBEFailOverNotification(BEFailOverEvent event)
Indicates that the BE server, to which the FE server is connected, has failed and the FE server is going to try to connect to the standby BE server. |
void |
register(PollUnitObserver pdObs)
Registers for getting the notifications whenever a PolledData is added/modified/deleted. |
void |
registerForAllData(PollObserver pollob)
Register for all data which is collected by the Poll Engine. |
void |
registerForData(java.lang.String key,
PollObserver pollob)
Registers for data collection done for the PolledData whose key corresponds to the key passed as argument.This PollObserver will be notified whenever data is collected for that PolledData. |
void |
registerForDataFromAgent(java.lang.String agent,
PollObserver pollob)
Register for data collection whenever the data is collected for the agent whose name is passed as parameter. |
boolean |
registerPoller(com.adventnet.nms.fe.perf.RemotePoller rp,
java.lang.String name)
Registers the Poller with the Poll engine. |
boolean |
removePoll(PolledData pd,
boolean dealWithLocks)
Stops the Snmp Poll identified by the key and also deletes the corresponding PolledData object from the polling engine database. |
boolean |
removePoll(java.lang.String key)
Stops the data collection for the PolledData object identified by the key and deletes the corresponding PolledData object from the database. |
boolean |
removePolledDataForGroup(java.lang.String group,
java.lang.String key)
Removes the PolledData for each and every node that belongs to the group. |
boolean |
removePolledDataForNode(java.lang.String ipaddr,
java.lang.String key)
Removes the PolledData for the node with the given IpAddress. |
boolean |
removePolledDataForNodes(java.lang.String[] ipaddrlist,
java.lang.String key)
Removes the PolledData for all the nodes whose IpAddress matches the IpAddress in the given list. |
boolean |
removePolledDataForNodes(java.lang.String startip,
java.lang.String endip,
java.lang.String netmask,
java.lang.String key)
Removes the PolledData for all the nodes whose IpAddress falls between startip and end ip. |
void |
restart()
Stops and restarts the data collection. |
boolean |
resumeAllPollsForAgent(java.lang.String agentname)
Restarts the data collection for an agent if there are any PolledData objects configured for that agent. |
void |
savePollState()
Saves the state of the Poll Engine. |
void |
scheduleReport(java.lang.String name,
long timeval)
Schedules an existing report to be run at a given time. |
boolean |
setAutoCommit(boolean b)
WebNMS Poll module has a connection to the database, This method sets the connection's auto-commit mode to true or false. |
void |
setDebugMode(boolean debug)
Sets the debugging to true/false based on which some debugging messages will be printed during DataCollection. |
boolean |
setPolledDataForGroup(java.lang.String group,
PolledData pd)
Assigns the PolledData to each and every node that belongs to the group. |
boolean |
setPolledDataForNode(java.lang.String ip,
PolledData pd)
Modifies the PolledData of the node with the specified IpAddress with the PolledData passed as argument. |
boolean |
setPolledDataForNodes(java.lang.String[] ipaddrlist,
PolledData pd)
Replaces all the PolledData objects of all the nodes whose IpAddress matches the IpAddress in the given list, with the pd passed. |
boolean |
setPolledDataForNodes(java.lang.String startip,
java.lang.String endip,
java.lang.String netmask,
PolledData pd)
Assigns the PolledData to all the Nodes whose IpAddres falls between startip and endip. |
void |
setPollingObjectStatus(java.lang.String name,
boolean status)
sets status of the PollingObject name to the given value. |
void |
shutDown()
Gets called whenever Web NMS Server shuts down. |
void |
shutDownAllPollers()
ShutsDown all the pollers which are active currently. |
void |
shutDownPoller(java.lang.String pollerName)
ShutsDown the poller with the name passed as a parameter. |
boolean |
startDataPoll()
Starts the data collection. |
void |
stopAll()
Stops the data collection permanently. |
boolean |
stopDataPoll()
Stops the data collection. |
boolean |
suspendAllPollsForAgent(java.lang.String agentname)
Suspends the data being collected from the specified agent. |
void |
unlock(PolledData obj)
Unlocks the specified PolledData. |
void |
update(int type,
PolledData pd)
This is called when a PolledData is added/modified/deleted . |
void |
update(int type,
PollingObject po)
This method is called when there is any add/modify/delete/status change of PollingObject occurs. |
void |
update(java.util.Vector pdVect)
This is called when all PolledData for a particular agent are deleted or when a ManagedObject is deleted, which results in PolledDatas of that ManagedObject getting deleted. |
void |
update(XMLNode node)
This method is called when a bulk delete is done. |
void |
updateNumericTypeOfPd(java.lang.String key,
int numericType)
Updates the numericType of the PolledData whose key is same as the the key given with the numericType passed. |
| Methods inherited from class java.rmi.server.UnicastRemoteObject |
clone, exportObject, exportObject, exportObject, unexportObject |
| Methods inherited from class java.rmi.server.RemoteServer |
getClientHost, getLog, setLog |
| Methods inherited from class java.rmi.server.RemoteObject |
equals, getRef, hashCode, toString, toStub |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.adventnet.nms.poll.PollAPI |
registerPoller |
| Constructor Detail |
public PollAPIProxyImpl()
throws java.rmi.RemoteException
java.rmi.RemoteException - if an error occurs during remote call| Method Detail |
public boolean isInitialized()
throws java.rmi.RemoteException
isInitialized in interface PollAPIjava.rmi.RemoteException - if an error occurs during remote call
public java.util.Vector getList()
throws UserTransactionException,
NmsPollException,
java.rmi.RemoteException
getCompleteList() instead.
getList in interface PollAPIjava.rmi.RemoteException - if an error occurs during remote call
public PolledData getPolledData(java.lang.String key)
throws UserTransactionException,
NmsPollException,
java.rmi.RemoteException
getPolledData in interface PollAPIkey - The unique key for the PolledData
formed by concatinating name, agent, oid
fields of the PolledData with "\t"
as the separator between the fields.java.rmi.RemoteException - if an error occurs during remote call
public void addPoll(PolledData pdata)
throws java.rmi.RemoteException,
UserTransactionException,
NmsPollException
addPoll in interface PollAPIpd - The PolledData object to be added.NmsPollException - if ,UserTransactionException - if there is any exception while
doing transaction operations.java.rmi.RemoteException - if an error occurs during remote call
public void addPoll(PolledData pdata,
boolean kickoff)
throws java.rmi.RemoteException,
UserTransactionException,
NmsPollException
addPoll(PolledData) instead.
addPoll in interface PollAPIpdata - The PolledData to be added to the database.kickoff - Boolean "true", specifying data collection is to be
started immediately.NmsPollException - if ,UserTransactionException - if there is any exception while
doing transaction operations.java.rmi.RemoteException - if an error occurs during remote call
public void addPolledData(PolledData pd,
boolean passthrofilters)
throws java.rmi.RemoteException,
UserTransactionException,
NmsPollException
passthroFilters is true,
then the added PolledData is passed through the available Poll Filters,
else it is added directly, as in addPoll(PolledData) method. This method tries to
obtain the ManagedObject corresponding to this PolledData from the PolledData
itself(Parent ManagedObject name should be set using setParentObj() method).
If it is obtained,
the ManagedObject and the PolledData are passed through the Poll Filters.
else PolledData is added directly.addPolledData in interface PollAPIpd - a PolledData to be added to the databasepassthrofilters - a boolean indicating whether to pass
through Poll Filters or not.NmsPollException - if ,UserTransactionException - if there is any exception while
doing transaction operations.
public void deletePoll(java.lang.String nodename)
throws UserTransactionException,
NmsPollException,
java.rmi.RemoteException
deletePoll in interface PollAPInodename - The agent name of the PolledData object for which
data collection is to be stopped and the PolledData objects are
deleted.NmsPollException - if there is any exception while deleting
PolledDatasjava.rmi.RemoteException - if an error occurs during remote call
public boolean removePoll(java.lang.String key)
throws java.rmi.RemoteException,
NmsPollException,
UserTransactionException
removePoll in interface PollAPIkey - The key for the PolledData object.
The key for a PolledData pd is
pd.name+"\t"+pd.agent.toLowerCase().trim()+"\t"+pd.oidUserTransactionException - if there is any exception while
doing transaction operations.NmsPollException - if there is any problem in deleting the PolledData from the
databasejava.rmi.RemoteException - if an error occurs during remote call
public void restart()
throws java.rmi.RemoteException
restart in interface PollAPIjava.rmi.RemoteException - if an error occurs during remote call
public void stopAll()
throws java.rmi.RemoteException
stopAll in interface PollAPIjava.rmi.RemoteException - if an error occurs during remote call
public void savePollState()
throws java.rmi.RemoteException
savePollState in interface PollAPIjava.rmi.RemoteException - if an error occurs during remote call
public void modifyPoll(PolledData pdata)
throws java.rmi.RemoteException,
NmsPollException,
UserTransactionException
modifyPoll in interface PollAPIpdata - The PolledData object to be modified.UserTransactionException - if there is any exception while
doing transaction operations.java.rmi.RemoteException - if an error occurs during remote call
public void registerForData(java.lang.String key,
PollObserver pollob)
throws java.rmi.RemoteException
registerForData in interface PollAPIkey - The key of the PolledData object whose data collection
will be notified to the PollObservers registered for this key.pollob - The PollObserver interface implementor class which
is notified of the collected data.java.rmi.RemoteException - if an error occurs during remote callPollObserver
public void deregisterForData(java.lang.String key,
PollObserver pollob)
throws java.rmi.RemoteException
deregisterForData in interface PollAPIkey - The key of the PolledData object whose data collection was
notified to the PollObserver which was registered before.pollob - The PollObserver which has to be deregistered.java.rmi.RemoteException - if an error occurs during remote callPollObserver
public void registerForAllData(PollObserver pollob)
throws java.rmi.RemoteException
registerForAllData in interface PollAPIpollob - The PollObserver interface implementor class which
is notified of the collected data.java.rmi.RemoteException - if an error occurs during remote callPollObserver
public void deregisterForAllData(PollObserver pollob)
throws java.rmi.RemoteException
deregisterForAllData in interface PollAPIpollob - The PollObserver to be deregistered.java.rmi.RemoteException - if an error occurs during remote callPollObserver
public void registerForDataFromAgent(java.lang.String agent,
PollObserver pollob)
throws java.rmi.RemoteException
registerForDataFromAgent in interface PollAPIagent - The agent name whose data will be notified
to the PollObserver.pollob - The PollObserver interface implementor class which
is notified of the collected data.java.rmi.RemoteException - if an error occurs during remote callPollObserver
public void deregisterForDataFromAgent(java.lang.String agent,
PollObserver pollob)
throws java.rmi.RemoteException
deregisterForDataFromAgent in interface PollAPIagent - agent name whose data was notified.pollob - The PollObserver interface implementor class which is
notified of the data collected.java.rmi.RemoteException - if an error occurs during remote callPollObserver
public java.util.Vector getCollectedData(java.lang.String key,
java.lang.String date)
throws UserTransactionException,
NmsPollException,
java.rmi.RemoteException
getColletedData(String, Date)
getCollectedData in interface PollAPIkey - The key of the PolledData Object whose data is required.
The key for a PolledData pd is
pd.name+"\t"+pd.agent.toLowerCase().trim()+"\t"+pd.oiddate - The date on which data collected is required.
The date is given in Month-Day-Year (9-20-2000) format.java.rmi.RemoteException - if an error occurs during remote call
public CollectedData getCollectedData(java.lang.String key,
java.util.Date date)
throws UserTransactionException,
NmsPollException,
java.rmi.RemoteException
getCollectedData in interface PollAPIkey - The key of the PolledData Object whose data is required.
The key for a PolledData pd is
pd.name+"\t"+pd.agent.toLowerCase().trim()+"\t"+pd.oiddate - The date as on which data collected is required.
The date is the instance of java.util.Datejava.rmi.RemoteException - if an error occurs during remote call
public java.util.Vector getCollectedData(java.lang.String key,
long timeStart,
long timeEnd)
throws UserTransactionException,
NmsPollException,
java.rmi.RemoteException
getColletedValues(String,long,long)
getCollectedData in interface PollAPIkey - The key of the PolledData Object whose data is 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 getCollectedData(java.lang.String key,
long timeStart)
throws UserTransactionException,
NmsPollException,
java.rmi.RemoteException
getColletedValues(String,long)
getCollectedData in interface PollAPIkey - The key of the PolledData Object whose data is 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.java.rmi.RemoteException - if an error occurs during remote call
public CollectedData getCollectedData(java.lang.String instance,
java.lang.String key,
java.util.Date date)
throws UserTransactionException,
NmsPollException,
java.rmi.RemoteException
getCollectedData in interface PollAPIinstance - the instance of the MultiplePolledData for which
the data is required.key - The key of the PolledData Object whose data is required.
The key for a PolledData pd is
pd.name+"\t"+pd.agent.toLowerCase().trim()+"\t"+pd.oiddate - Date on which the data collected is required.java.rmi.RemoteException - if an error occurs during remote call
public CollectedData getCollectedData(java.lang.String index,
java.lang.String key,
long starttime,
long endtime)
throws UserTransactionException,
NmsPollException,
java.rmi.RemoteException
getCollectedData in interface PollAPIindex - the instance string whose value is needed.key - The key of the PolledData Object whose data is required.
The key for a PolledData pd is
pd.name+"\t"+pd.agent.toLowerCase().trim()+"\t"+pd.oidstarttime - The starting time from when the collected data
is required. The time is given as a long.endtime - The end time until when the collected data is
required as long.java.rmi.RemoteException - if an error occurs during remote call
public CollectedData getCollectedData(java.lang.String instance,
java.lang.String key,
long timeStart)
throws UserTransactionException,
NmsPollException,
java.rmi.RemoteException
getCollectedData in interface PollAPIinstance - instance of the MultiplePolledDatakey - 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 statistic
is required. The time is given as a long.java.rmi.RemoteException - if an error occurs during remote call
public java.util.Vector getInstances(MultiplePolledData mpd)
throws UserTransactionException,
NmsPollException,
java.rmi.RemoteException
getInstances in interface PollAPImpd - MultiplePolledData whose instances has to be obtained.java.rmi.RemoteException - if an error occurs during remote call
public boolean suspendAllPollsForAgent(java.lang.String agentname)
throws UserTransactionException,
NmsPollException,
java.rmi.RemoteException
suspendAllPollsForAgent in interface PollAPIagentname - Name of the agent for whom data collection
has to be suspended.java.rmi.RemoteException - if an error occurs during remote call
public boolean resumeAllPollsForAgent(java.lang.String agentname)
throws UserTransactionException,
NmsPollException,
java.rmi.RemoteException
resumeAllPollsForAgent in interface PollAPIagentname - Name of the agent for whom the data collection
are to be resumed.java.rmi.RemoteException - if an error occurs during remote call
public java.util.Vector getPollsForAgent(java.lang.String agentname)
throws UserTransactionException,
NmsPollException,
java.rmi.RemoteException
getPollsForAgent in interface PollAPIagentname - 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 getObjects(java.lang.String classname,
java.util.Properties match)
throws UserTransactionException,
NmsPollException,
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.getObjects in interface PollAPIclassname - 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 boolean setAutoCommit(boolean b)
throws java.rmi.RemoteException,
java.sql.SQLException
setAutoCommit in interface PollAPIb - boolean true/false which sets/resets the AutoCommit mode.java.rmi.RemoteException - if an error occurs during remote calljava.sql.SQLException - if an error occurs during database access
public int getNumPollObjects()
throws NmsPollException,
java.rmi.RemoteException
getNumPollObjects in interface PollAPIjava.rmi.RemoteException - if an error occurs during remote call
public java.util.Properties getPropertiesOfObject(java.lang.String objectname)
throws UserTransactionException,
NmsStorageException,
java.rmi.RemoteException
getPropertiesOfObject in interface CommonAPIobjectname - Object whose properties are required as String.java.rmi.RemoteException - if an error occurs during remote call
public java.util.Vector getObjectNamesWithProps(java.util.Properties p)
throws UserTransactionException,
NmsStorageException,
java.rmi.RemoteException
getObjectNamesWithProps in interface CommonAPIp - properties which has tobe matched with the object properties.java.rmi.RemoteException - if an error occurs during remote call
public java.util.Vector getCompleteList()
throws UserTransactionException,
NmsStorageException,
java.rmi.RemoteException
getCompleteList in interface CommonAPIjava.rmi.RemoteException - if an error occurs during remote call
public boolean registerPoller(com.adventnet.nms.fe.perf.RemotePoller rp,
java.lang.String name)
throws java.rmi.RemoteException
rp - Remote poller whish is tobe registered with the Poll engine.name - name of the pollerjava.rmi.RemoteException - if an error occurs during remote call
public java.util.Vector fetchPollerSpecificPolldata(java.lang.String name)
throws java.rmi.RemoteException
fetchPollerSpecificPolldata in interface PollAPIname - Name of the Poller as String.java.rmi.RemoteException - if an error occurs during remote call
public java.util.Vector getTableNames()
throws java.rmi.RemoteException
getTableNames in interface PollAPIjava.rmi.RemoteException - if an error occurs during remote call
public void updateNumericTypeOfPd(java.lang.String key,
int numericType)
throws UserTransactionException,
NmsPollException,
java.rmi.RemoteException
updateNumericTypeOfPd in interface PollAPIkey - key of the PolledData whose numericType has tobe changed
as string.numericType - with which the numericType of PD is changed as int.java.rmi.RemoteException - if an error occurs during remote call
public java.util.Vector getPolledDataForNode(java.lang.String ipaddr)
throws UserTransactionException,
NmsPollException,
java.rmi.RemoteException
getPolledDataForNode in interface PollAPIipaddr - IPAddress of the node as String.java.rmi.RemoteException - if an error occurs during remote call
public java.util.Vector getPolledDataForGroup(java.lang.String group)
throws java.rmi.RemoteException,
NmsPollException,
UserTransactionException
This group name is different from the groupname in the PolledData.
Here group refers to the group of the Node in which it belongs.getPolledDataForGroup in interface PollAPIgroup - group name as String.java.rmi.RemoteException - if an error occurs during remote call
public java.util.Vector getPolledDataForNodes(java.lang.String[] ipaddrlist)
throws UserTransactionException,
NmsPollException,
java.rmi.RemoteException
getPolledDataForNodes in interface PollAPIipaddrlist - IPAddresses as String[] array.java.rmi.RemoteException - if an error occurs during remote call
public java.util.Vector getPolledDataForNodes(java.lang.String startip,
java.lang.String endip,
java.lang.String netmask)
throws java.rmi.RemoteException,
NmsPollException,
UserTransactionException
The starting and ending IPAddress must belong to same
network.getPolledDataForNodes in interface PollAPIstartip - The starting ip address as String.endip - The ending ip address as String.netmask - The netmask as String.java.rmi.RemoteException - if an error occurs during remote call
public boolean setPolledDataForGroup(java.lang.String group,
PolledData pd)
throws java.rmi.RemoteException,
NmsPollException,
UserTransactionException
setPolledDataForGroup in interface PollAPIgroup - Group name as String.pd - The PolledData that is to be assigned.java.rmi.RemoteException - if an error occurs during remote call
public boolean setPolledDataForNodes(java.lang.String[] ipaddrlist,
PolledData pd)
throws NmsPollException,
UserTransactionException,
java.rmi.RemoteException
setPolledDataForNodes in interface PollAPIipaddrlist - the list of IpAddress for which the PolledData is to
be assigned.pd - The PolledData with which the modification is made.java.rmi.RemoteException - if an error occurs during remote call
public boolean setPolledDataForNodes(java.lang.String startip,
java.lang.String endip,
java.lang.String netmask,
PolledData pd)
throws java.rmi.RemoteException,
NmsPollException,
UserTransactionException
setPolledDataForNodes in interface PollAPIstartip - The starting ip address.endip - The ending ip address.netmask - The netmask.pd - the PolledData to be assigned.java.rmi.RemoteException - if an error occurs during remote call
public boolean setPolledDataForNode(java.lang.String ip,
PolledData pd)
throws java.rmi.RemoteException,
NmsPollException,
UserTransactionException
setPolledDataForNode in interface PollAPIip - IPAddress of the node for which the PolledData is
to be modified.pd - The PolledData to be assigned.java.rmi.RemoteException - if an error occurs during remote call
public boolean removePolledDataForNode(java.lang.String ipaddr,
java.lang.String key)
throws UserTransactionException,
NmsPollException,
java.rmi.RemoteException
removePolledDataForNode in interface PollAPIipaddr - the IpAddress for which the PolledData is to be removed.key - the key of the PolledData to be removed.java.rmi.RemoteException - if an error occurs during remote call
public boolean removePolledDataForGroup(java.lang.String group,
java.lang.String key)
throws java.rmi.RemoteException,
NmsPollException,
UserTransactionException
removePolledDataForGroup in interface PollAPIgroup - the group name.key - The key of the PolledData that is to be removed.java.rmi.RemoteException - if an error occurs during remote call
public boolean removePolledDataForNodes(java.lang.String startip,
java.lang.String endip,
java.lang.String netmask,
java.lang.String key)
throws java.rmi.RemoteException,
NmsPollException,
UserTransactionException
removePolledDataForNodes in interface PollAPIstartip - The starting ip address.endip - The ending ip address.netmask - The netmask.key - the key of the PolledData to be removed.java.rmi.RemoteException - if an error occurs during remote call
public boolean removePolledDataForNodes(java.lang.String[] ipaddrlist,
java.lang.String key)
throws java.rmi.RemoteException,
NmsPollException,
UserTransactionException
removePolledDataForNodes in interface PollAPIipaddrlist - list containig the IpAddress for which the PolledData is
to be removed.key - the key of the PolledData to be removed.java.rmi.RemoteException - if an error occurs during remote call
public boolean getPolledDataConsistent(java.lang.String groupname,
java.lang.String key)
throws java.rmi.RemoteException,
UserTransactionException,
NmsPollException
getPolledDataConsistent in interface PollAPIgroupname - the group name.key - The key of the PolledData that is to be checked for.java.rmi.RemoteException - if an error occurs during remote call
public boolean startDataPoll()
throws java.rmi.RemoteException
startDataPoll in interface PollAPIjava.rmi.RemoteException - if an error occurs during remote call
public boolean stopDataPoll()
throws java.rmi.RemoteException
stopDataPoll in interface PollAPIjava.rmi.RemoteException - if an error occurs during remote call
public java.util.Vector getActivePollers()
throws java.rmi.RemoteException
getActivePollers in interface PollAPIjava.rmi.RemoteException - if an error occurs during remote call
public boolean isPollerActive(java.lang.String pollerName)
throws java.rmi.RemoteException
isPollerActive in interface PollAPIpollerName - as String.java.rmi.RemoteException - if an error occurs during remote call
public void shutDownPoller(java.lang.String pollerName)
throws java.rmi.RemoteException
shutDownPoller in interface PollAPIpollerName - as String.java.rmi.RemoteException - if an error occurs during remote call
public void shutDownAllPollers()
throws java.rmi.RemoteException
shutDownAllPollers in interface PollAPIjava.rmi.RemoteException - if an error occurs during remote call
public boolean addThresholdObject(ThresholdObject obj)
throws UserTransactionException,
NmsPollException,
java.rmi.RemoteException
addThresholdObject in interface PollAPIobj - ThresholdObject which has to be added.java.rmi.RemoteException - if an error occurs during remote call
public boolean modifyThresholdObject(ThresholdObject obj)
throws UserTransactionException,
NmsPollException,
java.rmi.RemoteException
modifyThresholdObject in interface PollAPIobj - ThresholdObject with the properties to be modified.java.rmi.RemoteException - if an error occurs during remote call
public boolean deleteThresholdObject(java.lang.String name)
throws UserTransactionException,
NmsPollException,
java.rmi.RemoteException
name
from the system.deleteThresholdObject in interface PollAPIname - Name of the thresholdObject to be deleted.java.rmi.RemoteException - if an error occurs during remote call
public java.util.Vector getAllThresholdObjects()
throws java.rmi.RemoteException
getAllThresholdObjects in interface PollAPIjava.rmi.RemoteException - if an error occurs during remote call
public void setDebugMode(boolean debug)
throws java.rmi.RemoteException
setDebugMode in interface PollAPIdebug - true/false.java.rmi.RemoteException - if an error occurs during remote call
public CollectedData getCollectedValues(java.lang.String key,
long timeStart,
long timeEnd)
throws UserTransactionException,
NmsPollException,
java.rmi.RemoteException
getCollectedValues in interface PollAPIkey - 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 CollectedData getCollectedValues(java.lang.String key,
long timeStart)
throws UserTransactionException,
NmsPollException,
java.rmi.RemoteException
getCollectedValues in interface PollAPIkey - 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.java.rmi.RemoteException - if an error occurs during remote call
public java.util.Hashtable getThreshHashOfOid()
throws java.rmi.RemoteException
PollAPIgetThreshHashOfOid in interface PollAPIcom.adventnet.nms.poll.PollAPIjava.rmi.RemoteException - if an exception occurs during remote call
public void addPollingObject(PollingObject po,
boolean updateOldMOs)
throws UserTransactionException,
NmsPollException,
java.rmi.RemoteException
PollAPIupdateOldMOs to true)
unless it is absolutely necessary.addPollingObject in interface PollAPIcom.adventnet.nms.poll.PollAPIpo - PollingObject to be added.updateOldMOs - a boolean value specifying whether this Polling Object
has to be applied to already discovered ManagedObjects or not.java.rmi.RemoteException - if an exception occurs during remote call.NmsPollException - if an exception occurs while adding PollingObject.UserTransactionException - if this method is called within
a transaction block and if transaction times out
public void modifyPollingObject(PollingObject po,
boolean updateOldMOs)
throws UserTransactionException,
NmsPollException,
java.rmi.RemoteException
PollAPIupdateOldMOs and the value of PASS_THRO_ALL_POLLING_OBJECTS
given in NmsProcessesBE.conf.updateOldMOs
is false , it will be applicable only
to ManagedObjects which get discovered later.
updateOldMOs
is true and PASS_THRO_ALL_POLLING_OBJECTS is false,
old ManagedObjects for which polling has been configured as per this PollingObject
will be taken , and the new oids will be added.
updateOldMOs is true and PASS_THRO_ALL_POLLING_OBJECTS is true,
all the existing ManagedObjects will be checked out and PolledDatas
will be added to all these ManagedObjects.
updateOldMOs to true)
unless it is absolutely necessary.modifyPollingObject in interface PollAPIcom.adventnet.nms.poll.PollAPIpo - Polling Object to be modified.updateOldMOs - a boolean specifying whether to apply the changes
(if any new oids are added) to already existing ManagedObjects or not.java.rmi.RemoteException - if an exception occurs during remote callNmsPollException - if an exception occurs while modifying the PollingObjectUserTransactionException - if this method is called within
a transaction block and if transaction times out
public void deletePollingObject(java.lang.String name)
throws UserTransactionException,
NmsPollException,
java.rmi.RemoteException
PollAPI name is passed as a
parameter from Polling Engine. Also all the PolledDatas corresponding
to this PollingObject will be deleted.deletePollingObject in interface PollAPIcom.adventnet.nms.poll.PollAPIname - name of the PollingObject to be deleted.java.rmi.RemoteException - if an exception occurs during remote callNmsPollException - if an exception occurs while deleting PollingObject and
corresponding PolledDatas.UserTransactionException - if this method is called within
a transaction block and if transaction times out
public PollingObject getPollingObject(java.lang.String name)
throws java.rmi.RemoteException,
NmsPollException
PollAPIgetPollingObject in interface PollAPIcom.adventnet.nms.poll.PollAPIname - name of the PollingObject to be retrieved.java.rmi.RemoteException - if an exception occurs during remote callNmsPollException - if an exception occurs while getting PollingObject.
public java.util.Vector getPollingObjects()
throws java.rmi.RemoteException,
NmsPollException
PollAPIgetPollingObjects in interface PollAPIcom.adventnet.nms.poll.PollAPIjava.rmi.RemoteException - if an exception occurs during remote callNmsPollException - if an exception occurs while getting Polling Objects.PollingObject
public void modifyPropForPollingObject(java.lang.String name,
java.util.Properties prop,
boolean updateMOs)
throws UserTransactionException,
NmsPollException,
java.rmi.RemoteException
PollAPI name passed as a parameter.
prop represents the new properties of the oid and the boolean
updateMOs indicates whether to apply changes to existing ManagedObjects
or not(applicable only if the oid is being added).
The properties prop must contain the fields oid ,name
and type which form the key of the oid string.
If the oid with the oid key is already present in the Polling Object,then all the
corresponding PolledDatas will be modified as per the new properties.
If such an oid key is not present already , if the boolean updateMOs
is false,then the new property will be added as a part of data collection criteria
and PolledDatas with this new oid will be created for ManagedObjects which get added
later .
On the other hand , if the the boolean updateMOs is true ,
The key refers to key of the oid, name of oid + "::" + oid string + "::" + type of oid .
modifyPropForPollingObject in interface PollAPIcom.adventnet.nms.poll.PollAPIname - name of the PollingObjectprop - the new properties of the oid.updateMOs - a boolean value indicating whether to apply the changes
to existing ManagedObjects or not.(applicable only if oid is being added).java.rmi.RemoteException - if an exception occurs during remote callNmsPollException - if an exception occurs while modification or additon as the case
may be.UserTransactionException - if this method is called within
a transaction block and if transaction times outPollingObject
public void deletePropForPollingObject(java.lang.String name,
java.lang.String key)
throws UserTransactionException,
NmsPollException,
java.rmi.RemoteException
PollAPIname is
passed as a parameter. The key refers to
key of the oid,
name of oid + "::" + oid string + "::" + type of oid .
If such an oid exists , it's entry in the PollingObject is removed.Also
all the corresponding PolledDatas will be deleted.deletePropForPollingObject in interface PollAPIcom.adventnet.nms.poll.PollAPIname - name of the PollingObjectkey - key of the oidjava.rmi.RemoteException - if an exception occurs during remote callNmsPollException - if an exception occurs while deleting the
oid.UserTransactionException - if this method is called within
a transaction block and if transaction times outPollingObject
public boolean getPollingObjectStatus(java.lang.String name)
throws java.rmi.RemoteException,
NmsPollException
PollAPIname is
passed as a parameter to this method.getPollingObjectStatus in interface PollAPIcom.adventnet.nms.poll.PollAPIname - name of the Polling Object.java.rmi.RemoteException - if an exception occurs remote callNmsPollException - if an exception occurs while getting status.PollingObject,
PollAPI.setPollingObjectStatus(java.lang.String, boolean)
public void addPollFilter(java.lang.String className)
throws UserTransactionException,
NmsPollException,
java.rmi.RemoteException
PollAPIPollFilter interface.addPollFilter in interface PollAPIcom.adventnet.nms.poll.PollAPIclassName - fully qualified class name of the Poll Filter .java.rmi.RemoteException - if an exception occurs remote callNmsPollException - if an exception occurs while adding poll
filterUserTransactionException - if this method is called within
a transaction block and if transaction times outPollFilter
public void deletePollFilter(java.lang.String className)
throws UserTransactionException,
NmsPollException,
java.rmi.RemoteException
PollAPIdeletePollFilter in interface PollAPIcom.adventnet.nms.poll.PollAPIclassName - fully qualified class name of the poll filter to be deletedjava.rmi.RemoteException - if an exception occurs during remote callNmsPollException - if an exception occurs while deletingUserTransactionException - if this method is called within
a transaction block and if transaction times outPollFilter
public void setPollingObjectStatus(java.lang.String name,
boolean status)
throws UserTransactionException,
NmsPollException,
java.rmi.RemoteException
PollAPIname to the given value.
The default status of a PollingObject is true in which case the active
state of PolledDatas will be set as per their individual active property.
But if status is explicitly set to true using this method ,
active state of
all PolledDatas of this PollingObject will be set to true. Similarly
if status is false, active state of PolledDatas will be set to false.
The active property of a PolledData indicates whether polling is being
done currently for that PolledData or not.Setting active to false
suspends polling for the PolledData.setPollingObjectStatus in interface PollAPIcom.adventnet.nms.poll.PollAPIname - name of the PollingObject whose status is to be set.status - status of PollingObject whether true or false.java.rmi.RemoteException - if an exception occurs during remote callNmsPollException - if an exception occurs while setting statusUserTransactionException - if this method is called within
a transaction block and if transaction times outPollingObject,
PollAPI.getPollingObjectStatus(java.lang.String)
public void addReport(ReportObject ro)
throws UserTransactionException,
NmsPollException,
java.rmi.RemoteException
PollAPIReporter interface.
If time for report
generation is not set in the ReportObject(setTimeVal() method) ,
this method takes care of setting up the time depending on the parameters
given in ReportObject like whether it is a daily report / weekly
report etc.,addReport in interface PollAPIcom.adventnet.nms.poll.PollAPIro - The ReportObject to be added.java.rmi.RemoteException - if an exception occurs during remote call.NmsPollException - if an exception occurs while adding report.UserTransactionException - if this method is called within
a transaction block and if transaction times outPollAPI.scheduleReport(String,long),
Reporter
public void deleteReport(java.lang.String name)
throws UserTransactionException,
NmsPollException,
java.rmi.RemoteException
PollAPI name is passed as a parameter.deleteReport in interface PollAPIcom.adventnet.nms.poll.PollAPIname - fully qualified class name of the report to be deleted.java.rmi.RemoteException - if an exception occurs during remote callNmsPollException - if an exception occurs while deleting report.UserTransactionException - if this method is called within
a transaction block and if transaction times outReportObject
public void scheduleReport(java.lang.String name,
long timeval)
throws UserTransactionException,
NmsPollException,
java.rmi.RemoteException
PollAPItimeval given will override the default report
generation time.If timeval is less than current time,
the report will be run immediately.After running the report at the given
timeval, the next report generation time
will be set depending on the type of the report(daily/weekly etc).scheduleReport in interface PollAPIcom.adventnet.nms.poll.PollAPIname - fully qualified class name of the report to be scheduled.timeval - the time in milliseconds at which the report should be run.java.rmi.RemoteException - if an exception occurs during remote call.NmsPollException - if an exception occurs while scheduling
report.UserTransactionException - if this method is called within
a transaction block and if transaction times outReportObject
public void register(PollUnitObserver pdObs)
throws java.rmi.RemoteException,
NmsPollException
register in interface PollAPIpdObs - a PollUnitObserver Observer which needs
to get the notification.java.rmi.RemoteException - if an error occurs during remote call.NmsPollException - if an error occurs during registering.
public void deRegister(PollUnitObserver pdObs)
throws java.rmi.RemoteException,
NmsPollException
deRegister in interface PollAPIpdObs - a PollUnitObserver. Observer that was
getting notifications.java.rmi.RemoteException - if an error occurs during remote call.NmsPollException - if an error occurs during registering.
public void addProtocolProvider(java.lang.String protocol,
ProtocolProvider prov)
throws UserTransactionException,
NmsPollException,
java.rmi.RemoteException
addProtocolProvider in interface PollAPIprotocol - String for which provider is added.prov - a ProtocolProvider.java.rmi.RemoteException - if an error occursNmsPollException - if an error occurs
public void deleteProtocolProvider(java.lang.String protocol)
throws UserTransactionException,
NmsPollException,
java.rmi.RemoteException
deleteProtocolProvider in interface PollAPIprotocol - String for which provider is deleted.java.rmi.RemoteException - if an error occursNmsPollException - if an error occurs
public void addCreateSchema(java.lang.String tableName,
java.lang.String schema)
throws UserTransactionException,
NmsStorageException,
java.rmi.RemoteException
addCreateSchema in interface PollAPItableName - name of the tableschema - String which used to create the tableNmsStorageException - if an error occurs while adding the schema.
public java.lang.String getCreateSchema(java.lang.String tableName)
throws java.rmi.RemoteException
getCreateSchema in interface PollAPItableName - name of the table for which schema is returned.
public void createTable(java.lang.String tableName)
throws UserTransactionException,
NmsStorageException,
java.rmi.RemoteException
createTable in interface PollAPItabName - the name of the table which will be created.
public PolledData checkOut(java.lang.String key)
throws UserTransactionException,
NmsPollException,
java.rmi.RemoteException
checkOut in interface PollAPIcom.adventnet.nms.poll.PollAPIkey - The unique key of the PolledData to be checked outUserTransactionException - if this method is called within
a transaction block and if transaction times outNmsPollException - if the object is not available for writingjava.rmi.RemoteException - if an exception occurs during remote callPollAPI.checkOut(String,int)
public PolledData checkOut(java.lang.String key,
int timeOut)
throws UserTransactionException,
NmsPollException,
java.rmi.RemoteException
PollAPIcheckOut in interface PollAPIcom.adventnet.nms.poll.PollAPIkey - The unique key of the PolledData to be checked outtimeOut - Time in seconds to wait, if the object is
locked by some other thread.UserTransactionException - if this method is called within
a transaction block and if transaction times outNmsPollException - if the object is not available for writing
even after the specified amount of time.java.rmi.RemoteException - if an exception occurs during remote callPollAPI.checkOut(String)
public PolledData checkOutIfAvailable(java.lang.String key)
throws UserTransactionException,
NmsPollException,
java.rmi.RemoteException
PollAPIcheckOutIfAvailable in interface PollAPIcom.adventnet.nms.poll.PollAPIkey - The unique key of the PolledData to be checked outUserTransactionException - if this method is called within
a transaction block and if transaction times outjava.rmi.RemoteException - if a problem occurs when accessing through RMI.NmsPollException - if the object is locked by some other thread
public PolledData lock(PolledData obj,
int lock_type,
int timeout)
throws java.rmi.RemoteException,
NmsPollException
PollAPIlock in interface PollAPIcom.adventnet.nms.poll.PollAPIobj - The PolledData that is to be locked.lock_type - The type of lock to be applied.timeout - Time, in seconds, to wait to acquire the lock.java.rmi.RemoteException - if an exception occurs during remote call.NmsPollException - if an exception occurs during locking.LockableObject
public void unlock(PolledData obj)
throws java.rmi.RemoteException,
NmsPollException
PollAPIunlock in interface PollAPIcom.adventnet.nms.poll.PollAPIobj - The PolledData that is to be unlocked.java.rmi.RemoteException - if an exception occurs during remote call.NmsPollException - if an exception occurs during unlock.LockableObject
public boolean checkWritePermission(PolledData obj)
throws java.rmi.RemoteException,
NmsPollException
PollAPIcheckWritePermission in interface PollAPIcom.adventnet.nms.poll.PollAPIobj - The PolledData instance that is to be checked whether
it has a write lock.java.rmi.RemoteException - if an exception occurs during remote call.NmsPollException - if an exception occurs while checking the
permission for writing.LockableObject
public int getCurrentLockType(PolledData obj)
throws java.rmi.RemoteException,
NmsPollException
PollAPIgetCurrentLockType in interface PollAPIcom.adventnet.nms.poll.PollAPIobj - PolledData instance for which the lock type is to be
obtained.java.rmi.RemoteException - if an exception occurs during remote call.NmsPollException - if an exception occurs while getting the lock
type.
public void clearLockForObject(java.lang.String name,
int lockType)
throws UserTransactionException,
NmsPollException,
java.rmi.RemoteException
PollAPIclearLockForObject in interface PollAPIcom.adventnet.nms.poll.PollAPIname - Name of the PolledData to be unlocked.lockType - Type of the lock to be unlocked.UserTransactionException - if this method is called within
a transaction block and if transaction times out.NmsPollException - if there is any exception while retrieving
PolledData .java.rmi.RemoteException - if an exception occurs during remote call.NmsPollException - if an exception occurs while clearing the lock.
public boolean removePoll(PolledData pd,
boolean dealWithLocks)
throws java.rmi.RemoteException,
NmsPollException,
UserTransactionException
removePoll in interface PollAPIkeyer - The key for the PolledData object.The key is
pd.name+"\t"+pd.agent.toLowerCase().trim()+"\t"+pd.oiddealWithLocks - boolean suggesting whether to check for
locking or not.UserTransactionException - if there is any exception while
doing transaction operations.
public void modifyPoll(PolledData pdata,
boolean dealWithLocks)
throws java.rmi.RemoteException,
NmsPollException,
UserTransactionException
modifyPoll in interface PollAPIpdata - The PolledData object to be modified.dealWithLocks - boolean to check for locking.UserTransactionException - if there is any exception while
doing transaction operations.
public void addPolledDataForMO(ManagedObject mo)
throws java.rmi.RemoteException,
NmsPollException,
UserTransactionException
If data collection is using SNMP, an instance of either
SnmpNode or SnmpInterface
(sub classes of ManagedObject) should be passed to this method.
For SnmpNode object,oids of type 'node' or 'multiple'
(given in Polling.conf) will be added and for SnmpInterface
object 'interface' type oid will be added.
The necessary fields which should be set in this case are
name, ipAddress, isDHCP, isNode, isInterface, isSNMP, snmpport
(default-161), community(default-public), version, userName and
contextName. In this userName and contextName are only
applicable only if version is v3.
For other protocols , the ManagedObject passed should be an instance
of TopoObject . The necessary fields which should be set in this case
are
name,ipAddress,isDHCP
The agent name of the PolledData is set as follows:
isDHCP is set to true, the agent name of the
PolledDatas created will be the name of the ManagedObject.
If name starts with "IF-" , the agent name is set after removing
"IF-".
isDHCP is false, dnsname is obtained using
the ipAddress provided and is set as agent names for PolledDatas.addPolledDataForMO in interface PollAPImo - ManagedObject for which the PolledData is to
be added.NmsPollException - if ,UserTransactionException - if there is any exception while
doing transaction operations.java.rmi.RemoteException - if an exception occurs during remote call.addPoll(PolledData)
public void dataUpdate(java.lang.String pollkey,
long time,
long value)
throws java.rmi.RemoteException
PollObserverdataUpdate in interface PollObservercom.adventnet.nms.poll.PollObserverpollkey - The unique key of the PolledData object.
The key for a PolledData pd is time - The time of statistics collection.value - The value of the collected statistic.RemoteException - if an exception occurs during remote call.PollAPI.registerForData(String,PollObserver)
public void dataUpdate(java.lang.String pollkey,
long time,
java.lang.String value)
throws java.rmi.RemoteException
PollObserverdataUpdate in interface PollObservercom.adventnet.nms.poll.PollObserverpollkey - The unique key of the PolledData object.
The key for a PolledData pd is time - The time of statistics collection.value - The value of the collected statistic.RemoteException - if an exception occurs during remote call.PollAPI.registerForData(String,PollObserver)
public void dataUpdate(CollectedInfo colinfo)
throws java.rmi.RemoteException
PollObserverdataUpdate in interface PollObservercom.adventnet.nms.poll.PollObservercolinfo - Instance of CollectedInfo object containing
details about the collected data.RemoteException - if an exception occurs during remote call.CollectedInfo,
PollAPI.registerForDataFromAgent(String,PollObserver),
PollAPI.registerForAllData(PollObserver)
public void update(int type,
PolledData pd)
throws java.rmi.RemoteException
PollUnitObserverupdate in interface PollUnitObservercom.adventnet.nms.poll.PollUnitObservertype - specifies whether PolledData is added, modified
or deleted.
Type can be
pd - PolledData which is added/modified/deleted.java.rmi.RemoteException - if an exception occurs during remote call.
public void update(java.util.Vector pdVect)
throws java.rmi.RemoteException
PollUnitObserverupdate in interface PollUnitObservercom.adventnet.nms.poll.PollUnitObserverpdVect - Vector of PolledDatas.java.rmi.RemoteException - if an exception occurs during remote call.PollAPI.deletePoll(String)
public void update(XMLNode node)
throws java.rmi.RemoteException
PollUnitObserver
<BULK_DELETE_INFO>
<DATA
sqlQuery="select * from PolledData where PARENTOBJ in ( '192.168.4.0',
'192.168.4.1', 'topont', 'pollnt' ) and OWNERNAME like 'null'"
parentObjectKey="192.168.4.0" />
<PROPS
parentKey="192.168.4.0" />
</BULK_DELETE_INFO>
Applications implementing this interface can execute this SQL query
to get all the PolledData objects to be deleted. If the database
access is not available to the application, the application can get the
keys of the Managed Objects to be deleted using the method
TopoAPI.getObjectNamesWithProps() by passing to it, the properties
provided under the <PROPS> tag of the XML notification. From the names
of the ManagedObject obtained, by using the
PollAPI.getObjectNamesWithProps(), the PolledData keys corresponding
to the ManagedObject name can be obtained. The parentObj
field in PolledData represents the name of the parent ManagedObject
for which this PolledData was created.
The parentObjectKey
will contain the ownerName also appended with it, when the
ownerName is not null.update in interface PollUnitObservercom.adventnet.nms.poll.PollUnitObservernode - a XMLNode value.java.rmi.RemoteException - if an exception occurs during remote callPollAPI
public void update(int type,
PollingObject po)
throws java.rmi.RemoteException
PollUnitObserverupdate in interface PollUnitObservercom.adventnet.nms.poll.PollUnitObservertype - a String of operation. It can be
po - a PollingObject.java.rmi.RemoteException - if an exception occurs during remote callPollingObject,
PollConstantspublic void shutDown()
shutDown in interface ShutDownObserverpublic void preBEFailOverNotification(BEFailOverEvent event)
BEFailOverListener
The FE server, on detecting the BE server failure, intimates all the
BEFailOverListeners through this method and makes an
attempt to switch over to the standby BE server. The attempt to switch
over may fail, and this notification does not imply anything about
the outcome of the switch over operation.
preBEFailOverNotification in interface BEFailOverListenercom.adventnet.nms.fe.common.BEFailOverListenerbeFailOverEvent - An event object indicating BE fail over,
containing details about the failed BE server and the current
primary BE serverBEFailOverListener.postBEFailOverNotification(BEFailOverEvent),
MainSocketClientFE.registerBEFailOverListener(BEFailOverListener),
MainSocketClientFE.deRegisterBEFailOverListener(BEFailOverListener)public void postBEFailOverNotification(BEFailOverEvent beEvent)
BEFailOverListener
The FE server, on successfully switching over to the current primary
BE server, notifies all the BEFailOverListeners through
this method. This notification is the confirmation that the switch over
operation has been successful.
postBEFailOverNotification in interface BEFailOverListenercom.adventnet.nms.fe.common.BEFailOverListenerbeFailOverEvent - An event object indicating BE fail over,
containing details about the failed BE server and the current
primary BE serverBEFailOverListener.preBEFailOverNotification(BEFailOverEvent),
MainSocketClientFE.registerBEFailOverListener(BEFailOverListener),
MainSocketClientFE.deRegisterBEFailOverListener(BEFailOverListener)
|
AdventNet Web NMS 4 API Specification | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||