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() |
String |
getAddress() |
int |
getDelay() |
OIDList |
getOids() |
String |
getProtocol() |
int |
getRetries() |
String |
getSnmpCommunity() |
int |
getSnmpVersion() |
int |
getTimeout() |
SnmpActionType |
getType() |
void |
initiate()
creates and configures the endpoint
|
boolean |
isSingleton() |
void |
setAddress(String address) |
void |
setDelay(int updateEvery)
Sets update rate in seconds
|
void |
setOids(OIDList oids) |
void |
setProtocol(String protocol) |
void |
setRetries(int retries) |
void |
setSnmpCommunity(String snmpCommunity) |
void |
setSnmpVersion(int snmpVersion) |
void |
setTimeout(int timeout) |
void |
setType(SnmpActionType type) |
String |
toString() |
configurePollingConsumer, configureProperties, configureScheduledPollConsumerPropertiesconfigureConsumer, createEndpointConfiguration, createEndpointUri, createExchange, createExchange, createExchange, createPollingConsumer, doStart, doStop, equals, getCamelContext, getComponent, getConsumerProperties, getEndpointConfiguration, getEndpointKey, getEndpointUri, getExchangePattern, getId, hashCode, isLenientProperties, isSynchronous, setCamelContext, setConsumerProperties, setEndpointConfiguration, setEndpointUri, setEndpointUriIfNotSpecified, setExchangePattern, setProperties, setSynchronousdoResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, 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 CommandResponderEventpublic void initiate()
throws Exception
Exception - if unable to setup connectionpublic int getDelay()
public void setDelay(int updateEvery)
updateEvery - 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)
public String toString()
toString in class org.apache.camel.impl.DefaultEndpointApache Camel