public class SnmpOIDPoller
extends org.apache.camel.support.ScheduledPollConsumer
implements org.snmp4j.event.ResponseListener
| Constructor and Description |
|---|
SnmpOIDPoller(SnmpEndpoint endpoint,
org.apache.camel.Processor processor) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doStart() |
protected void |
doStop() |
org.snmp4j.Target |
getTarget() |
void |
onResponse(org.snmp4j.event.ResponseEvent event) |
protected int |
poll() |
void |
processPDU(org.snmp4j.PDU pdu)
processes the pdu message
|
void |
setTarget(org.snmp4j.Target target) |
afterPoll, beforePoll, doInit, doShutdown, doSuspend, getBackoffCounter, getBackoffErrorThreshold, getBackoffIdleThreshold, getBackoffMultiplier, getDelay, getInitialDelay, getPollStrategy, getRepeatCount, getRunLoggingLevel, getScheduledExecutorService, getScheduler, getSchedulerProperties, getTimeUnit, isGreedy, isPollAllowed, isPolling, isSchedulerStarted, isSendEmptyMessageWhenIdle, isStartScheduler, isUseFixedDelay, onInit, processEmptyMessage, run, setBackoffErrorThreshold, setBackoffIdleThreshold, setBackoffMultiplier, setDelay, setGreedy, setInitialDelay, setPollStrategy, setRepeatCount, setRunLoggingLevel, setScheduledExecutorService, setScheduler, setSchedulerProperties, setSendEmptyMessageWhenIdle, setStartScheduler, setTimeUnit, setUseFixedDelay, startSchedulercreateUoW, doneUoW, getAsyncProcessor, getEndpoint, getExceptionHandler, getProcessor, getRoute, getRouteId, handleException, handleException, setExceptionHandler, setRoute, setRouteId, toStringbuild, doBuild, doFail, doLifecycleChange, doResume, fail, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic SnmpOIDPoller(SnmpEndpoint endpoint, org.apache.camel.Processor processor)
protected void doStart()
throws Exception
doStart in class org.apache.camel.support.ScheduledPollConsumerExceptionprotected void doStop()
throws Exception
doStop in class org.apache.camel.support.ScheduledPollConsumerExceptionprotected int poll()
throws Exception
poll in class org.apache.camel.support.ScheduledPollConsumerExceptionpublic void onResponse(org.snmp4j.event.ResponseEvent event)
onResponse in interface org.snmp4j.event.ResponseListenerpublic void processPDU(org.snmp4j.PDU pdu)
pdu - the pdupublic org.snmp4j.Target getTarget()
public void setTarget(org.snmp4j.Target target)
target - The target to set.Apache Camel