|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--com.adventnet.snmp.snmp2.agent.BaseTableEntry
|
+--com.adventnet.snmp.snmp2.agent.TrapEntry
Contains the data handling under trapEntry group
| Field Summary | |
protected java.lang.String |
agentCommunity
The community of the Trap received. |
(package private) static int |
AGENTCOMMUNITY
|
protected java.lang.String |
agentHost
The agentHost of the Trap received. |
(package private) static int |
AGENTHOST
|
protected java.lang.Integer |
agentHostType
|
(package private) static int |
AGENTHOSTTYPE
|
protected java.lang.Integer |
agentStatus
|
(package private) static int |
AGENTSTATUS
|
protected int |
agentTrapPortNumber
The agentTrap Port of the Trap received. |
(package private) static int |
AGENTTRAPPORTNUMBER
|
(package private) static int |
index
|
protected int[] |
instanceOID
The InstanceOID value for this Entry. |
| Fields inherited from class com.adventnet.snmp.snmp2.agent.BaseTableEntry |
agentName,
instanceOID |
| Constructor Summary | |
TrapEntry()
Default Constructor - does nothing. |
|
| Method Summary | |
int[] |
computeInstanceOID()
This method is used for recomputing the Instance OID. |
java.lang.String |
getAgentCommunity()
Handles the SNMP Get Request for agentCommunity |
java.lang.String |
getAgentHost()
Handles the SNMP Get Request for agentHost |
java.lang.Integer |
getAgentHostType()
Handles the SNMP Get Request for agentHostType |
java.lang.Integer |
getAgentStatus()
Handles the SNMP Get Request for trapStatus |
int |
getAgentTrapPortNumber()
Handles the SNMP Get Request for agentPort |
int |
getCount()
Method to get the Entry count. |
int |
getIndex()
|
int[] |
getInstanceOID()
Getter for the Instance OID,Part of interface TableEntry. |
void |
setAgentCommunity(java.lang.String value)
Handles the SNMP Set Request for agentCommunity |
void |
setAgentHost(java.lang.String value)
Handles the SNMP Set Request for agentHost |
void |
setAgentHostType(java.lang.Integer value)
Handles the SNMP Set Request for agentHostType |
void |
setAgentRef(SnmpAgent agentRef)
Method to set the SnmpAgent Refernce. |
void |
setAgentStatus(java.lang.Integer value)
Handles the SNMP Set Request for trapStatus |
void |
setAgentTrapPortNumber(int value)
Handles the SNMP Set Request for agentPort |
void |
setAttributes(java.util.Hashtable values,
java.util.Vector indexList)
|
void |
setIndex(int index)
|
void |
setInstanceOID(int[] instanceOID)
Setter for the Instance OID, Part of interface TableEntry. |
void |
setrowStatus(java.lang.Integer value)
Method to set the rowStatus value |
| Methods inherited from class com.adventnet.snmp.snmp2.agent.BaseTableEntry |
decrementCount,
getAttributes,
setAgentRef,
setCount |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
protected java.lang.Integer agentHostType
protected java.lang.String agentHost
protected int agentTrapPortNumber
protected java.lang.String agentCommunity
protected java.lang.Integer agentStatus
static final int AGENTHOSTTYPE
static final int AGENTHOST
static final int AGENTTRAPPORTNUMBER
static final int AGENTCOMMUNITY
static final int AGENTSTATUS
static int index
protected int[] instanceOID
| Constructor Detail |
public TrapEntry()
| Method Detail |
public int getIndex()
public void setIndex(int index)
public void setAttributes(java.util.Hashtable values,
java.util.Vector indexList)
throws AgentException
public java.lang.Integer getAgentHostType()
throws AgentException
public void setAgentHostType(java.lang.Integer value)
throws AgentException
value - - The Integer value to be setpublic void setAgentRef(SnmpAgent agentRef)
agentRef - instance of SnmpAgent
public java.lang.String getAgentHost()
throws AgentException
public void setAgentHost(java.lang.String value)
throws AgentException
value - The Host IPAddress String to be set for this entry
public int getAgentTrapPortNumber()
throws AgentException
public void setAgentTrapPortNumber(int value)
throws AgentException
value - The port value to be set for this entry
public java.lang.String getAgentCommunity()
throws AgentException
public void setAgentCommunity(java.lang.String value)
throws AgentException
value - The Community String to be set for this entry
public java.lang.Integer getAgentStatus()
throws AgentException
public void setAgentStatus(java.lang.Integer value)
throws AgentException
value - The RowStatus int for this entrypublic void setrowStatus(java.lang.Integer value)
value - the Integer specifying the rowStatus value.public int[] getInstanceOID()
public void setInstanceOID(int[] instanceOID)
instanceOID - The Instance OID to be set.public int[] computeInstanceOID()
AgentUtil.encodeInstanceStringpublic int getCount()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||