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(java.lang.String ip, int port, int securityLevel, java.lang.String securityname, java.lang.String authPassPhrase, java.lang.String authProtocol, java.lang.String privPassPhrase, java.lang.String privprotocol, int timeout, int retries, SnmpTrapHelper snmpTrapHelper)
SnmpTrapForwarderHelper(java.lang.String ip, int port, int securityLevel, java.lang.String securityname, java.lang.String authPassPhrase, java.lang.String authProtocol, java.lang.String privPassPhrase, java.lang.String privprotocol, SnmpTrapHelper snmpTrapHelper)
SnmpTrapForwarderHelper(java.lang.String ip, int port, java.lang.String community, int timeout, int retries, SnmpTrapHelper snmpTrapHelper)
SnmpTrapForwarderHelper(java.lang.String ip, int port, java.lang.String community, SnmpTrapHelper snmpTrapHelper)
SnmpTrapForwarderHelper(java.lang.String source_ip, java.lang.String ip, int port, java.lang.String community, SnmpTrapHelper snmpTrapHelper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getAuthPassPhrase()
java.lang.String
getAuthProtocol()
java.lang.String
getCommunity()
java.lang.String
getIp()
int
getPort()
java.lang.String
getPrivPassPhrase()
java.lang.String
getPrivprotocol()
int
getRetries()
int
getSecurityLevel()
java.lang.String
getSecurityname()
SnmpTrapHelper
getSnmpTrapHelper()
java.lang.String
getSource_ip()
int
getTimeout()
void
sendV1AlarmTrap(Event event, boolean sync)
void
sendV1EndSyncTrap()
void
sendV1EventTrap(Event event)
void
sendV1StartSyncTrap()
void
sendV2AlarmInform(Event event, boolean sync)
void
sendV2AlarmTrap(Event event, boolean sync)
void
sendV2EndSyncInform()
void
sendV2EndSyncTrap()
void
sendV2EventInform(Event event)
void
sendV2EventTrap(Event event)
void
sendV2StartSyncInform()
void
sendV2StartSyncTrap()
void
sendV3AlarmInform(Event event, boolean sync)
void
sendV3AlarmTrap(Event event, boolean sync)
void
sendV3EndSyncInform()
void
sendV3EndSyncTrap()
void
sendV3EventInform(Event event)
void
sendV3EventTrap(Event event)
void
sendV3StartSyncInform()
void
sendV3StartSyncTrap()
void
setAuthPassPhrase(java.lang.String authPassPhrase)
void
setAuthProtocol(java.lang.String authProtocol)
void
setCommunity(java.lang.String community)
void
setIp(java.lang.String ip)
void
setPort(int port)
void
setPrivPassPhrase(java.lang.String privPassPhrase)
void
setPrivprotocol(java.lang.String privprotocol)
void
setRetries(int retries)
void
setSecurityLevel(int securityLevel)
void
setSecurityname(java.lang.String securityname)
void
setSnmpTrapHelper(SnmpTrapHelper snmpTrapHelper)
void
setSource_ip(java.lang.String source_ip)
void
setTimeout(int timeout)
-
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(java.lang.String source_ip, java.lang.String ip, int port, java.lang.String community, SnmpTrapHelper snmpTrapHelper)
-
SnmpTrapForwarderHelper
public SnmpTrapForwarderHelper(java.lang.String ip, int port, java.lang.String community, SnmpTrapHelper snmpTrapHelper)
-
SnmpTrapForwarderHelper
public SnmpTrapForwarderHelper(java.lang.String ip, int port, java.lang.String community, int timeout, int retries, SnmpTrapHelper snmpTrapHelper)
-
SnmpTrapForwarderHelper
public SnmpTrapForwarderHelper(java.lang.String ip, int port, int securityLevel, java.lang.String securityname, java.lang.String authPassPhrase, java.lang.String authProtocol, java.lang.String privPassPhrase, java.lang.String privprotocol, SnmpTrapHelper snmpTrapHelper)
-
SnmpTrapForwarderHelper
public SnmpTrapForwarderHelper(java.lang.String ip, int port, int securityLevel, java.lang.String securityname, java.lang.String authPassPhrase, java.lang.String authProtocol, java.lang.String privPassPhrase, java.lang.String privprotocol, int timeout, int retries, 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 java.net.UnknownHostException
- Throws:
java.net.UnknownHostException
-
sendV2AlarmTrap
public void sendV2AlarmTrap(Event event, boolean sync) throws java.net.UnknownHostException, SnmpTrapHelperException
- Throws:
java.net.UnknownHostException
SnmpTrapHelperException
-
sendV3AlarmTrap
public void sendV3AlarmTrap(Event event, boolean sync) throws java.net.UnknownHostException, SnmpTrapHelperException
- Throws:
java.net.UnknownHostException
SnmpTrapHelperException
-
sendV2AlarmInform
public void sendV2AlarmInform(Event event, boolean sync) throws java.net.UnknownHostException, SnmpTrapHelperException
- Throws:
java.net.UnknownHostException
SnmpTrapHelperException
-
sendV3AlarmInform
public void sendV3AlarmInform(Event event, boolean sync) throws java.net.UnknownHostException, SnmpTrapHelperException
- Throws:
java.net.UnknownHostException
SnmpTrapHelperException
-
sendV1EventTrap
public void sendV1EventTrap(Event event) throws java.net.UnknownHostException
- Throws:
java.net.UnknownHostException
-
sendV2EventTrap
public void sendV2EventTrap(Event event) throws java.net.UnknownHostException, SnmpTrapHelperException
- Throws:
java.net.UnknownHostException
SnmpTrapHelperException
-
sendV3EventTrap
public void sendV3EventTrap(Event event) throws java.net.UnknownHostException, SnmpTrapHelperException
- Throws:
java.net.UnknownHostException
SnmpTrapHelperException
-
sendV2EventInform
public void sendV2EventInform(Event event) throws java.net.UnknownHostException, SnmpTrapHelperException
- Throws:
java.net.UnknownHostException
SnmpTrapHelperException
-
sendV3EventInform
public void sendV3EventInform(Event event) throws java.net.UnknownHostException, SnmpTrapHelperException
- Throws:
java.net.UnknownHostException
SnmpTrapHelperException
-
getSource_ip
public java.lang.String getSource_ip()
-
setSource_ip
public void setSource_ip(java.lang.String source_ip)
-
getIp
public java.lang.String getIp()
-
setIp
public void setIp(java.lang.String ip)
-
getCommunity
public java.lang.String getCommunity()
-
setCommunity
public void setCommunity(java.lang.String community)
-
getPort
public int getPort()
-
setPort
public void setPort(int port)
-
getSecurityLevel
public int getSecurityLevel()
-
setSecurityLevel
public void setSecurityLevel(int securityLevel)
-
getSecurityname
public java.lang.String getSecurityname()
-
setSecurityname
public void setSecurityname(java.lang.String securityname)
-
getAuthPassPhrase
public java.lang.String getAuthPassPhrase()
-
setAuthPassPhrase
public void setAuthPassPhrase(java.lang.String authPassPhrase)
-
getAuthProtocol
public java.lang.String getAuthProtocol()
-
setAuthProtocol
public void setAuthProtocol(java.lang.String authProtocol)
-
getPrivPassPhrase
public java.lang.String getPrivPassPhrase()
-
setPrivPassPhrase
public void setPrivPassPhrase(java.lang.String privPassPhrase)
-
getPrivprotocol
public java.lang.String getPrivprotocol()
-
setPrivprotocol
public void setPrivprotocol(java.lang.String privprotocol)
-
-