WebNMS 5 API Specification

com.adventnet.beans.management
Class AbstractVirtualBean

java.lang.Object
  |
  +--com.adventnet.beans.management.AbstractVirtualBean

public abstract class AbstractVirtualBean
extends java.lang.Object

AbstractVirtualBean class is extended by all virtual beans created in Performance Wizard

Since:
1.0

Field Summary
protected  MibNodeEvent mnevt
           
static java.lang.String SUCCESS
           
 
Constructor Summary
AbstractVirtualBean()
          Creates a new AbstractVirtualBean instance.
 
Method Summary
 void addMibNodeListener(MibNodeListener mlis)
          addMibNodeListener method adds the listeners, to the event listeners list.
 void addResultListener(ResultListener lis)
          addResultListener method adds the listeners, to the event listeners list.
protected  void fireMibNodeEvent(MibNodeEvent evt, int errorIndex, java.lang.String errorMessage)
          fireMibNodeEvent method fires the MibNodeEvent, to the listeners when result is received.
protected  void fireMibNodeEvent(MibNodeEvent evt, int errorIndex, java.lang.String errorMessage, com.adventnet.management.Property property, java.lang.String printableResult)
          fireMibNodeEvent method the MibNodeEvent, to the listeners when result is received.
 java.util.Properties getAdvancedProperties()
          getAdvancedProperties method returns the advanced properties.
abstract  java.lang.Object getUserResults()
          getUserResults abstract method which returns any user manipulated result to the listeners
 void removeMibNodeListener(MibNodeListener mlis)
          removeMibNodeListener method removes the listeners, registered for notification , when result is received
 void removeResultListener(ResultListener lis)
          removeResultListener method removes the listeners, registered for notification , when result is received
 void setAdvancedProperties(java.util.Properties propsArg)
          setAdvancedProperties method , can be used to set properties like TargetHost, TargetPort , PollInterval, Retries , TimeOut, Community, WriteCommunity, ManagedObjectName.
 void setMibsToBeLoaded(java.lang.String mibs)
          Deprecated. set the mibs to be loaded for the applet or application
 void setPollInterval(long intr)
          Deprecated. setPollInterval method sets the polling interval in millisecs.
abstract  void setProperty(java.lang.String key, java.lang.String value)
          setProperty abstract method extended by base classes, which sets the properties to handler class instance declared in the sub classes
 void setReadCommunity(java.lang.String rComm)
          Deprecated. set snmp read community
 void setRetries(int retr)
          Deprecated. set number of retries
 void setTargetHost(java.lang.String host)
          Deprecated. setTargetHost method sets the snmp device host .
 void setTargetPort(java.lang.String port)
          Deprecated. setTargetPort method sets the snmp device port.
 void setTimeout(int tout)
          Deprecated. set time out interval
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mnevt

protected MibNodeEvent mnevt

SUCCESS

public static java.lang.String SUCCESS
Constructor Detail

AbstractVirtualBean

public AbstractVirtualBean()
Creates a new AbstractVirtualBean instance.
Method Detail

addMibNodeListener

public void addMibNodeListener(MibNodeListener mlis)
addMibNodeListener method adds the listeners, to the event listeners list. All the listeners will be notified whenever the result is received after every polling interval.
Parameters:
mlis - a MibNodeListener value

removeMibNodeListener

public void removeMibNodeListener(MibNodeListener mlis)
removeMibNodeListener method removes the listeners, registered for notification , when result is received
Parameters:
mlis - a MibNodeListener value

addResultListener

public void addResultListener(ResultListener lis)
addResultListener method adds the listeners, to the event listeners list. All the listeners will be notified whenever the result is received after every polling interval.
Parameters:
lis - a ResultListener value

removeResultListener

public void removeResultListener(ResultListener lis)
removeResultListener method removes the listeners, registered for notification , when result is received
Parameters:
lis - a ResultListener value

fireMibNodeEvent

protected void fireMibNodeEvent(MibNodeEvent evt,
                                int errorIndex,
                                java.lang.String errorMessage)
fireMibNodeEvent method fires the MibNodeEvent, to the listeners when result is received.
Parameters:
evt - a MibNodeEvent value
errorIndex - an int value
errorMessage - a String value

fireMibNodeEvent

protected void fireMibNodeEvent(MibNodeEvent evt,
                                int errorIndex,
                                java.lang.String errorMessage,
                                com.adventnet.management.Property property,
                                java.lang.String printableResult)
fireMibNodeEvent method the MibNodeEvent, to the listeners when result is received.
Parameters:
evt - a MibNodeEvent value
errorIndex - an int value
errorMessage - a String value
property - a Property value
printableResult - a String value

setAdvancedProperties

public void setAdvancedProperties(java.util.Properties propsArg)
setAdvancedProperties method , can be used to set properties like TargetHost, TargetPort , PollInterval, Retries , TimeOut, Community, WriteCommunity, ManagedObjectName.
Parameters:
propsArg - a java.util.Properties value

getAdvancedProperties

public java.util.Properties getAdvancedProperties()
getAdvancedProperties method returns the advanced properties.
Returns:
a java.util.Properties value

setTargetHost

public void setTargetHost(java.lang.String host)
Deprecated. setTargetHost method sets the snmp device host .

Parameters:
host - a String value use setProperty method

setTargetPort

public void setTargetPort(java.lang.String port)
Deprecated. setTargetPort method sets the snmp device port.

Parameters:
port - a String value use setProperty method

setPollInterval

public void setPollInterval(long intr)
Deprecated. setPollInterval method sets the polling interval in millisecs.

Parameters:
intr - a long value use setProperty method

setMibsToBeLoaded

public void setMibsToBeLoaded(java.lang.String mibs)
Deprecated. set the mibs to be loaded for the applet or application

Parameters:
mibs - :

setReadCommunity

public void setReadCommunity(java.lang.String rComm)
Deprecated. set snmp read community

Parameters:
rComm - :

setTimeout

public void setTimeout(int tout)
Deprecated. set time out interval


setRetries

public void setRetries(int retr)
Deprecated. set number of retries


getUserResults

public abstract java.lang.Object getUserResults()
getUserResults abstract method which returns any user manipulated result to the listeners
Returns:
an Object value

setProperty

public abstract void setProperty(java.lang.String key,
                                 java.lang.String value)
setProperty abstract method extended by base classes, which sets the properties to handler class instance declared in the sub classes
Parameters:
key - a String value
value - a String value

WebNMS 5 API Specification