|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--com.adventnet.utils.agent.AgentEventObject
|
+--com.adventnet.snmp.snmp2.agent.TrapRequestEvent
The TrapRequestEvent is fired by sources which are interested in sending traps to managers at specified ports The data source for the manager could be specified by users either through a TrapForwardingTable , in the Event itself or through acl files which are loaded by the TrapListeners
TrapRequestListener,
SnmpTrapService,
MicroSnmpTrapService,
TrapForwardingTableInterface, Serialized Form| Field Summary | |
static int |
ACL
Use this value to indicate the Source for trap information This indicates that information is in the ACL files |
static int |
DEFAULT
Use these values in the source DEFAULT value picks up the trap details including the managerHost and port from the Event itself |
(package private) java.lang.String |
enterpriseOID
|
static int |
MIBS
Use this when MIB support is available |
static int |
MIBS_TFTABLE
Use this when MIB support and TrapForwarding Table suuport is available |
(package private) OidandValue[] |
oidvalues
|
(package private) int |
sourceForTrapInfo
|
(package private) boolean |
subAgent
|
static int |
TFTABLE
Use this value when the TrapRequestListener has a TrapForwardingTable associated with it |
(package private) long |
timeticks
|
(package private) int |
trapIndex
|
(package private) java.util.Vector |
varbinds
|
| Fields inherited from class com.adventnet.utils.agent.AgentEventObject |
source |
| Constructor Summary | |
TrapRequestEvent(java.lang.Object source)
This constructor is used when there are no variables for TrapRequestEvent |
|
TrapRequestEvent(java.lang.Object source,
int sourceForTrapInfo,
long timeticks)
This constructor is used when there are no variables for TrapRequestEvent |
|
TrapRequestEvent(java.lang.Object source,
java.util.Vector varbinds,
int sourceForTrapInfo,
long timeticks)
The constructor for TrapRequestEvent |
|
TrapRequestEvent(java.lang.Object source,
java.util.Vector varbinds,
int sourceForTrapInfo,
java.lang.String enterpriseOID,
int index)
The constructor for TrapRequestEvent |
|
| Method Summary | |
java.lang.String |
getAgentAddress()
Gets the agent address to be used for the TrapRequest to be sent. |
java.lang.String |
getEnterpriseOID()
gets the enterprise oid associated with this TrapRequestEvent. |
OidandValue[] |
getOidandValueList()
Getter for OidandValueList |
int |
getSourceForTrapInfo()
The source of the MibTrap valid values are DEFAULT , MIBS and ACL a value DEFAULT indicates the event contains all the details |
boolean |
getSubAgent()
gets whether the agent is running as standalone or sub-agent |
long |
getTimeTicks()
Getter for timeticks |
int |
getTrapIndex()
gets the enterprise specific trap index associated with this TrapRequestEvent. |
java.util.Vector |
getVarBinds()
Getter for varbinds which are used to send in the trap PDU. |
void |
setAgentAddress(java.lang.String agentAddress)
Sets the agent address to be used for the TrapRequest to be sent. |
void |
setOidandValueList(OidandValue[] val)
Setter for OidandValueList. |
void |
setSourceForTrapInfo(int source)
setter for the source of the MibTrap, valid values are DEFAULT , MIBS and ACL. |
void |
setSubAgent(boolean val)
If this flag is set to true, traps will be forwaded to windows-master agent. |
void |
setTimeTicks(long timeticks)
Setter for timeticks |
| Methods inherited from class com.adventnet.utils.agent.AgentEventObject |
getSource,
toString |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
java.lang.String enterpriseOID
int trapIndex
public static final int DEFAULT
public static final int TFTABLE
public static final int ACL
public static final int MIBS
public static final int MIBS_TFTABLE
int sourceForTrapInfo
OidandValue[] oidvalues
java.util.Vector varbinds
long timeticks
boolean subAgent
| Constructor Detail |
public TrapRequestEvent(java.lang.Object source,
java.util.Vector varbinds,
int sourceForTrapInfo,
long timeticks)
source - - source of the eventvarbinds - - list of varbindsourceForTrapInfo - - the source for Trap Informationtimeticks - - timer valuegetSource
public TrapRequestEvent(java.lang.Object source,
int sourceForTrapInfo,
long timeticks)
source - - source of the eventsourceForTrapInfo - - the source for Trap Informationtimeticks - - timer valuegetSourcepublic TrapRequestEvent(java.lang.Object source)
source - source of the event
public TrapRequestEvent(java.lang.Object source,
java.util.Vector varbinds,
int sourceForTrapInfo,
java.lang.String enterpriseOID,
int index)
source - source of the eventvarbinds - list of varbindenterpriseOID - the EnterpriseOID for Trap InformationsourceForTrapInfo - the source for Trap Informationtimeticks - timer valueindex - the trap index(enterprise-specific).| Method Detail |
public java.lang.String getEnterpriseOID()
public int getTrapIndex()
public int getSourceForTrapInfo()
public void setSourceForTrapInfo(int source)
source - the Source for this Trap info.public java.lang.String getAgentAddress()
public void setAgentAddress(java.lang.String agentAddress)
agentAddress - the agent address for this Trap Request Eventpublic void setOidandValueList(OidandValue[] val)
val - the Oidandvalue[]public OidandValue[] getOidandValueList()
public java.util.Vector getVarBinds()
public long getTimeTicks()
public void setTimeTicks(long timeticks)
timeticks - the TimeTicks value to be set.public boolean getSubAgent()
public void setSubAgent(boolean val)
true - to set windows SubAgent.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||