@UriEndpoint(scheme="snmp",
title="SNMP",
syntax="snmp:host:port",
consumerOnly=true,
label="monitoring")
public class SnmpEndpoint
extends org.apache.camel.impl.DefaultPollingEndpoint
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_COMMUNITY |
static int |
DEFAULT_SNMP_RETRIES |
static int |
DEFAULT_SNMP_TIMEOUT |
static int |
DEFAULT_SNMP_VERSION |
| Constructor and Description |
|---|
SnmpEndpoint(String uri,
SnmpComponent component)
creates a snmp endpoint
|
| Modifier and Type | Method and Description |
|---|---|
org.apache.camel.Consumer |
createConsumer(org.apache.camel.Processor processor) |
org.apache.camel.Exchange |
createExchange(org.snmp4j.PDU pdu)
creates an exchange for the given message
|
org.apache.camel.Exchange |
createExchange(org.snmp4j.PDU pdu,
org.snmp4j.CommandResponderEvent event)
creates an exchange for the given message
|
org.apache.camel.Producer |
createProducer() |
protected void |
doStart() |
String |
getAddress() |
String |
getAuthenticationPassphrase() |
String |
getAuthenticationProtocol() |
long |
getDelay() |
OIDList |
getOids() |
String |
getPrivacyPassphrase() |
String |
getPrivacyProtocol() |
String |
getProtocol() |
int |
getRetries() |
int |
getSecurityLevel() |
String |
getSecurityName() |
String |
getSnmpCommunity() |
String |
getSnmpContextEngineId() |
String |
getSnmpContextName() |
int |
getSnmpVersion() |
int |
getTimeout() |
SnmpActionType |
getType() |
void |
initiate()
Deprecated.
use
ServiceSupport.start() instead |
boolean |
isSingleton() |
void |
setAddress(String address) |
void |
setAuthenticationPassphrase(String authenticationPassphrase) |
void |
setAuthenticationProtocol(String authenticationProtocol) |
void |
setDelay(long updateEvery)
Sets update rate in seconds
|
void |
setOids(OIDList oids) |
void |
setPrivacyPassphrase(String privacyPassphrase) |
void |
setPrivacyProtocol(String privacyProtocol) |
void |
setProtocol(String protocol) |
void |
setRetries(int retries) |
void |
setSecurityLevel(int securityLevel) |
void |
setSecurityName(String securityName) |
void |
setSnmpCommunity(String snmpCommunity) |
void |
setSnmpContextEngineId(String snmpContextEngineId) |
void |
setSnmpContextName(String snmpContextName) |
void |
setSnmpVersion(int snmpVersion) |
void |
setTimeout(int timeout) |
void |
setType(SnmpActionType type) |
String |
toString() |
configurePollingConsumer, configureProperties, configureScheduledPollConsumerProperties, doStop, getBackoffErrorThreshold, getBackoffIdleThreshold, getBackoffMultiplier, getInitialDelay, getPollStrategy, getRunLoggingLevel, getScheduledExecutorService, getScheduler, getSchedulerProperties, getTimeUnit, initConsumerProperties, isGreedy, isSendEmptyMessageWhenIdle, isStartScheduler, isUseFixedDelay, setBackoffErrorThreshold, setBackoffIdleThreshold, setBackoffMultiplier, setGreedy, setInitialDelay, setPollStrategy, setRunLoggingLevel, setScheduledExecutorService, setScheduler, setScheduler, setSchedulerProperties, setSendEmptyMessageWhenIdle, setStartScheduler, setTimeUnit, setUseFixedDelayconfigureConsumer, createEndpointConfiguration, createEndpointUri, createExchange, createExchange, createExchange, createPollingConsumer, equals, getCamelContext, getComponent, getConsumerProperties, getEndpointConfiguration, getEndpointKey, getEndpointUri, getExchangePattern, getId, getPollingConsumerQueueSize, hashCode, isLenientProperties, isPollingConsumerBlockWhenFull, isSynchronous, setCamelContext, setConsumerProperties, setEndpointConfiguration, setEndpointUri, setEndpointUriIfNotSpecified, setExchangePattern, setPollingConsumerBlockWhenFull, setPollingConsumerQueueSize, setProperties, setSynchronousdoResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendpublic static final String DEFAULT_COMMUNITY
public static final int DEFAULT_SNMP_VERSION
public static final int DEFAULT_SNMP_RETRIES
public static final int DEFAULT_SNMP_TIMEOUT
public SnmpEndpoint(String uri, SnmpComponent component)
uri - the endpoint uricomponent - the componentpublic org.apache.camel.Consumer createConsumer(org.apache.camel.Processor processor)
throws Exception
createConsumer in interface org.apache.camel.EndpointcreateConsumer in class org.apache.camel.impl.DefaultPollingEndpointExceptionpublic boolean isSingleton()
public org.apache.camel.Exchange createExchange(org.snmp4j.PDU pdu)
pdu - the pdupublic org.apache.camel.Exchange createExchange(org.snmp4j.PDU pdu,
org.snmp4j.CommandResponderEvent event)
pdu - the pduevent - a snmp4j CommandResponderEvent@Deprecated public void initiate() throws Exception
ServiceSupport.start() insteadException - if unable to setup connectionpublic long getDelay()
getDelay in class org.apache.camel.impl.ScheduledPollEndpointpublic void setDelay(long updateEvery)
setDelay in class org.apache.camel.impl.ScheduledPollEndpointupdateEvery - the update rate in secondspublic SnmpActionType getType()
public void setType(SnmpActionType type)
public OIDList getOids()
public void setOids(OIDList oids)
public String getAddress()
public void setAddress(String address)
public int getRetries()
public void setRetries(int retries)
public int getTimeout()
public void setTimeout(int timeout)
public int getSnmpVersion()
public void setSnmpVersion(int snmpVersion)
public String getSnmpCommunity()
public void setSnmpCommunity(String snmpCommunity)
public String getProtocol()
public void setProtocol(String protocol)
protected void doStart()
throws Exception
doStart in class org.apache.camel.impl.ScheduledPollEndpointExceptionpublic int getSecurityLevel()
public void setSecurityLevel(int securityLevel)
public String getSecurityName()
public void setSecurityName(String securityName)
public String getAuthenticationProtocol()
public void setAuthenticationProtocol(String authenticationProtocol)
public String getAuthenticationPassphrase()
public void setAuthenticationPassphrase(String authenticationPassphrase)
public String getPrivacyProtocol()
public void setPrivacyProtocol(String privacyProtocol)
public String getPrivacyPassphrase()
public void setPrivacyPassphrase(String privacyPassphrase)
public String getSnmpContextName()
public void setSnmpContextName(String snmpContextName)
public String getSnmpContextEngineId()
public void setSnmpContextEngineId(String snmpContextEngineId)
public String toString()
toString in class org.apache.camel.impl.DefaultEndpointApache Camel