|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.adventnet.snmp.snmp2.agent.V3ForwardingTable
This class has the Informations about the V3 Trap Forwarding Entries. The SnmpTrapService configured with this Table sends Traps to all the Entries available in this Table.
V3ForwardingEntry| Field Summary | |
(package private) java.lang.String |
fileName
|
(package private) boolean |
modified
|
(package private) boolean |
storage
|
(package private) java.lang.String |
storageType
|
(package private) SnmpTrapService |
trapListener
|
(package private) V3ForwardingEntry |
v3ForEntry
|
(package private) java.util.Vector |
v3ForVec
|
(package private) V3XMLToVector |
writer
|
| Constructor Summary | |
V3ForwardingTable(SnmpTrapService service)
The Default Constructor without persistence storage option. |
|
V3ForwardingTable(SnmpTrapService service,
java.lang.String name,
java.lang.String format)
The Constructor with the Persistnece details. |
|
| Method Summary | |
boolean |
addV3ForwardingEntry(V3ForwardingEntry entry)
Method to add an Entry to this Table. |
java.lang.String |
getFileName()
Getter for the FileName where the Entries are stored. |
ForwardingEntry |
getForwardingEntry(int index)
Dummy Method - not relevant to V3ForwardingTable |
java.lang.String |
getManagerHost(int ind)
Getter for the Targetted Manager Host. |
int |
getManagerPort(int ind)
Getter for the Targetted Manager Port. |
int |
getNumRows()
Getters for the number of rows in this Table. |
int |
getRowStatus(int ind)
Getter for the Entry Status. |
java.lang.String |
getStorageString()
Method to get the StorageType String. |
java.util.Vector |
getTableVector()
Getter for the Vector of V3ForwardingEntries associated with this Table. |
java.lang.String |
getV1v2ManagerHost(int index)
Dummy Method - not relevant to V3ForwardingTable |
int |
getV1v2ManagerPort(int index)
Dummy Method - not relevant to V3ForwardingTable |
int |
getV1v2ManagerStatus(int index)
Dummy Method - not relevant to V3ForwardingTable |
V3ForwardingEntry |
getV3ForwardingEntry(int ind)
Getter for the Entry at the speified index. |
V3ForwardingEntry |
getV3ForwardingEntry(java.lang.String host,
int port)
Method to get the available entry by specyfing the Host and Port values. |
V3ForwardingEntry |
getV3ForwardingEntryInstance()
Method to retieve a new V3ForwardingEntry Object. |
java.lang.String |
getV3ManagerUserContextName(int ind)
Getter for V3 Manager User ContextName. |
java.lang.String |
getV3ManagerUserName(int ind)
Getter for V3 Manager UserName. |
int |
getV3ManagerUserSecModel(int ind)
Getter for V3 Manager User security model. |
int |
getV3SecurityLevel(int ind)
Getter for V3 Manager security level. |
V3XMLToVector |
getV3XMLToVector()
Getter for the V3XMLToVector associated with this class. |
boolean |
isModified()
This method is for the FailOver support. |
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 |
setModified(boolean isModified)
This method is to set the FailOver Flag. |
void |
setStorage(boolean isStorage)
Method to specify the storage on. |
void |
setStorageString(java.lang.String type)
Setter for the StorageType String. |
void |
setTableVector(java.util.Vector tableVector)
Setter of the Vector of V3ForwardingEntries to this Table. |
void |
storeData()
This method will be called after the addition of an Entry in the V3TrapForwardingTable 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 java.lang.Object |
|
| Field Detail |
SnmpTrapService trapListener
V3ForwardingEntry v3ForEntry
boolean storage
java.lang.String storageType
java.lang.String fileName
boolean modified
V3XMLToVector writer
java.util.Vector v3ForVec
| Constructor Detail |
public V3ForwardingTable(SnmpTrapService service)
service - the SnmpTrapService.public V3ForwardingTable(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 |
public boolean addV3ForwardingEntry(V3ForwardingEntry entry)
entry - The V3ForwardingEntry to be added.public V3ForwardingEntry getV3ForwardingEntry(java.lang.String host, int port)
host - The Target host of the entry to be got.port - The Target port of the entry to be got.protected void storeData(java.lang.String storageType)
storageType - - the String specifying the storage format("xml").public void storeData()
public java.util.Vector getTableVector()
setTableVector(Vector tableVector)public void setTableVector(java.util.Vector tableVector)
tableVector - The Vector of V3ForwardingEntry objects sorted
according to their instance.getTableVector()public V3ForwardingEntry getV3ForwardingEntryInstance()
public boolean isStorage()
public V3XMLToVector getV3XMLToVector()
public int getNumRows()
public java.lang.String getManagerHost(int ind)
ind - The int index of the Entry for which the Host is to be
retrieved.public int getManagerPort(int ind)
ind - The int index of the Entry for which the port is to be
retrieved.public int getRowStatus(int ind)
ind - The int index of the Entry for which the Status is to be
retrieved.public java.lang.String getV3ManagerUserName(int ind)
index - The value to specify the entry for which the V3 Manager Username is required.public java.lang.String getV3ManagerUserContextName(int ind)
index - The Value to specify the entry for which the
V3 Manager User ContextName is required.public int getV3ManagerUserSecModel(int ind)
index - The Value of the Entry for which the
V3 Manager User security Model is needed.public int getV3SecurityLevel(int ind)
index - The Value to specify the Entry for which the
V3 manager Security Level is needed.public V3ForwardingEntry getV3ForwardingEntry(int ind)
ind - The int index of the Entry which is to be retrieved.public java.lang.String getV1v2ManagerHost(int index)
public int getV1v2ManagerPort(int index)
public int getV1v2ManagerStatus(int index)
public ForwardingEntry getForwardingEntry(int index)
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 setModified(boolean isModified)
isModified - The boolean specifying wheteher the Table Entries were
changed.public boolean isModified()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||