Package com.redwood.scheduler.api.snmp
Class SNMPTrap
- java.lang.Object
-
- com.redwood.scheduler.api.snmp.SNMPTrap
-
public class SNMPTrap extends Object
Send SNMP traps.
-
-
Constructor Summary
Constructors Constructor Description SNMPTrap()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
sendTrap(SchedulerSession session, String host, BigDecimal port, String community, BigDecimal id, String data)
Send an SNMP trap using the parameters passed.static void
sendTrap(String host, BigDecimal port, String community, BigDecimal id, String data)
Send an SNMP trap using the parameters passed.
-
-
-
Method Detail
-
sendTrap
public static void sendTrap(SchedulerSession session, String host, BigDecimal port, String community, BigDecimal id, String data) throws UnlicensedFeatureException
Send an SNMP trap using the parameters passed. If a null value is passed for a parameter then the default value will be loaded from the registry if it exists.- Parameters:
session
- the scheduler sessionhost
- the host nameport
- the port numbercommunity
-id
- the SNMP iddata
- the SNMP data- Throws:
UnlicensedFeatureException
-
sendTrap
public static void sendTrap(String host, BigDecimal port, String community, BigDecimal id, String data) throws UnlicensedFeatureException, UnknownHostException, IOException
Send an SNMP trap using the parameters passed. All parameters are required- Parameters:
host
- the host nameport
- the port numbercommunity
-id
- the SNMP iddata
- the SNMP data- Throws:
UnlicensedFeatureException
UnknownHostException
IOException
-
-