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 com.redwood.scheduler.api.exception.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:
com.redwood.scheduler.api.exception.UnlicensedFeatureException
-
sendTrap
public static void sendTrap(String host, BigDecimal port, String community, BigDecimal id, String data) throws com.redwood.scheduler.api.exception.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:
com.redwood.scheduler.api.exception.UnlicensedFeatureException
UnknownHostException
IOException
-
-