|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.adventnet.snmp.snmp2.agent.BaseForwardingTable
com.adventnet.snmp.snmp2.agent.ForwardingTable
public class ForwardingTable
This class has the Informations about the V1V2 Trap Forwarding Entries. The SnmpTrapService configured with this Table sends Traps to all the Entries available in this Table.
ForwardingEntry| Field Summary | |
|---|---|
(package private) java.lang.String |
fileName
|
(package private) boolean |
storage
|
(package private) java.lang.String |
storageType
|
(package private) SnmpTrapService |
trapListener
|
(package private) XMLToVector |
writer
|
| Fields inherited from class com.adventnet.snmp.snmp2.agent.BaseForwardingTable |
|---|
forEntry, forVec, modified |
| Constructor Summary | |
|---|---|
ForwardingTable(SnmpTrapService service)
The Default Constructor without persistence storage option. |
|
ForwardingTable(SnmpTrapService service,
java.lang.String name,
java.lang.String format)
The Constructor with the Persistnece details. |
|
| Method Summary | |
|---|---|
java.lang.String |
getFileName()
Getter for the FileName where the Entries are stored. |
java.lang.String |
getStorageString()
Method to get the StorageType String. |
XMLToVector |
getXMLToVector()
Getter for the XMLToVector associated with this class. |
boolean |
isStorage()
Getter to know whether this Table is persisted. |
void |
setFileName(java.lang.String name)
Setter for the FileName where the Entries will be stored. |
void |
setStorage(boolean isStorage)
Method to specify the storage on. |
void |
setStorageString(java.lang.String type)
Setter for the StorageType String. |
void |
storeData()
This method will be called after the addition of an Entry in the V1V2TrapForwardingTable so that the Entry will be persisted as per the StorageType. |
protected void |
storeData(java.lang.String storageType)
Method to specify the Storage Type. |
| Methods inherited from class com.adventnet.snmp.snmp2.agent.BaseForwardingTable |
|---|
addForwardingEntry, getForwardingEntry, getForwardingEntry, getForwardingEntryInstance, getNumRows, getTableVector, getV1v2ManagerHost, getV1v2ManagerPort, getV1v2ManagerStatus, isModified, setModified, setTableVector |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
boolean storage
java.lang.String storageType
java.lang.String fileName
SnmpTrapService trapListener
XMLToVector writer
| Constructor Detail |
|---|
public ForwardingTable(SnmpTrapService service)
service - the SnmpTrapService.public ForwardingTable(SnmpTrapService service, java.lang.String name, java.lang.String format)
service - The SnmpTrapService class instance.name - The file name where the entires are to be read and stored.format - The storage format. e.g.,"xml".| Method Detail |
|---|
protected void storeData(java.lang.String storageType)
storageType - - the String specifying the storage format("xml").public boolean isStorage()
public XMLToVector getXMLToVector()
public void setFileName(java.lang.String name)
name - the String specifying the Name of the File.getFileName()public java.lang.String getFileName()
setFileName(String name)public void setStorage(boolean isStorage)
isStorage - true on Stroage.isStorage()public java.lang.String getStorageString()
setStorageString(String type)public void setStorageString(java.lang.String type)
type - the StorageType String.getStorageString()public void storeData()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||