Class SnmpTrapForwarderHelper
- java.lang.Object
-
- org.opennms.netmgt.scriptd.helper.AbstractEventForwarder
-
- org.opennms.netmgt.scriptd.helper.SnmpTrapForwarderHelper
-
- All Implemented Interfaces:
EventForwarder
- Direct Known Subclasses:
SnmpV1TrapAlarmForwarder
,SnmpV1TrapEventForwarder
,SnmpV2InformAlarmForwarder
,SnmpV2InformEventForwarder
,SnmpV2TrapAlarmForwarder
,SnmpV2TrapEventForwarder
,SnmpV3InformAlarmForwarder
,SnmpV3InformEventForwarder
,SnmpV3TrapAlarmForwarder
,SnmpV3TrapEventForwarder
public abstract class SnmpTrapForwarderHelper extends AbstractEventForwarder implements EventForwarder
-
-
Constructor Summary
Constructors Constructor Description SnmpTrapForwarderHelper(String ip, int port, int securityLevel, String securityname, String authPassPhrase, String authProtocol, String privPassPhrase, String privprotocol, int timeout, int retries, SnmpTrapHelper snmpTrapHelper)
SnmpTrapForwarderHelper(String ip, int port, int securityLevel, String securityname, String authPassPhrase, String authProtocol, String privPassPhrase, String privprotocol, SnmpTrapHelper snmpTrapHelper)
SnmpTrapForwarderHelper(String ip, int port, String community, int timeout, int retries, SnmpTrapHelper snmpTrapHelper)
SnmpTrapForwarderHelper(String ip, int port, String community, SnmpTrapHelper snmpTrapHelper)
SnmpTrapForwarderHelper(String source_ip, String ip, int port, String community, SnmpTrapHelper snmpTrapHelper)
-
Method Summary
-
Methods inherited from class org.opennms.netmgt.scriptd.helper.AbstractEventForwarder
filter, setEventPolicyRule
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.opennms.netmgt.scriptd.helper.EventForwarder
flushEvent, flushSyncEvent, sendEndSync, sendStartSync, setEventPolicyRule
-
-
-
-
Constructor Detail
-
SnmpTrapForwarderHelper
public SnmpTrapForwarderHelper(String source_ip, String ip, int port, String community, SnmpTrapHelper snmpTrapHelper)
-
SnmpTrapForwarderHelper
public SnmpTrapForwarderHelper(String ip, int port, String community, SnmpTrapHelper snmpTrapHelper)
-
SnmpTrapForwarderHelper
public SnmpTrapForwarderHelper(String ip, int port, String community, int timeout, int retries, SnmpTrapHelper snmpTrapHelper)
-
SnmpTrapForwarderHelper
public SnmpTrapForwarderHelper(String ip, int port, int securityLevel, String securityname, String authPassPhrase, String authProtocol, String privPassPhrase, String privprotocol, SnmpTrapHelper snmpTrapHelper)
-
-
Method Detail
-
getSnmpTrapHelper
public SnmpTrapHelper getSnmpTrapHelper()
-
setSnmpTrapHelper
public void setSnmpTrapHelper(SnmpTrapHelper snmpTrapHelper)
-
getTimeout
public int getTimeout()
-
setTimeout
public void setTimeout(int timeout)
-
getRetries
public int getRetries()
-
setRetries
public void setRetries(int retries)
-
sendV1StartSyncTrap
public void sendV1StartSyncTrap()
-
sendV1EndSyncTrap
public void sendV1EndSyncTrap()
-
sendV2StartSyncTrap
public void sendV2StartSyncTrap()
-
sendV2EndSyncTrap
public void sendV2EndSyncTrap()
-
sendV2StartSyncInform
public void sendV2StartSyncInform()
-
sendV2EndSyncInform
public void sendV2EndSyncInform()
-
sendV3StartSyncTrap
public void sendV3StartSyncTrap()
-
sendV3EndSyncTrap
public void sendV3EndSyncTrap()
-
sendV3StartSyncInform
public void sendV3StartSyncInform()
-
sendV3EndSyncInform
public void sendV3EndSyncInform()
-
sendV1AlarmTrap
public void sendV1AlarmTrap(Event event, boolean sync) throws UnknownHostException
- Throws:
UnknownHostException
-
sendV2AlarmTrap
public void sendV2AlarmTrap(Event event, boolean sync) throws UnknownHostException, SnmpTrapHelperException
-
sendV3AlarmTrap
public void sendV3AlarmTrap(Event event, boolean sync) throws UnknownHostException, SnmpTrapHelperException
-
sendV2AlarmInform
public void sendV2AlarmInform(Event event, boolean sync) throws UnknownHostException, SnmpTrapHelperException
-
sendV3AlarmInform
public void sendV3AlarmInform(Event event, boolean sync) throws UnknownHostException, SnmpTrapHelperException
-
sendV1EventTrap
public void sendV1EventTrap(Event event) throws UnknownHostException
- Throws:
UnknownHostException
-
sendV2EventTrap
public void sendV2EventTrap(Event event) throws UnknownHostException, SnmpTrapHelperException
-
sendV3EventTrap
public void sendV3EventTrap(Event event) throws UnknownHostException, SnmpTrapHelperException
-
sendV2EventInform
public void sendV2EventInform(Event event) throws UnknownHostException, SnmpTrapHelperException
-
sendV3EventInform
public void sendV3EventInform(Event event) throws UnknownHostException, SnmpTrapHelperException
-
getSource_ip
public String getSource_ip()
-
setSource_ip
public void setSource_ip(String source_ip)
-
getIp
public String getIp()
-
setIp
public void setIp(String ip)
-
getCommunity
public String getCommunity()
-
setCommunity
public void setCommunity(String community)
-
getPort
public int getPort()
-
setPort
public void setPort(int port)
-
getSecurityLevel
public int getSecurityLevel()
-
setSecurityLevel
public void setSecurityLevel(int securityLevel)
-
getSecurityname
public String getSecurityname()
-
setSecurityname
public void setSecurityname(String securityname)
-
getAuthPassPhrase
public String getAuthPassPhrase()
-
setAuthPassPhrase
public void setAuthPassPhrase(String authPassPhrase)
-
getAuthProtocol
public String getAuthProtocol()
-
setAuthProtocol
public void setAuthProtocol(String authProtocol)
-
getPrivPassPhrase
public String getPrivPassPhrase()
-
setPrivPassPhrase
public void setPrivPassPhrase(String privPassPhrase)
-
getPrivprotocol
public String getPrivprotocol()
-
setPrivprotocol
public void setPrivprotocol(String privprotocol)
-
-