|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.camel.impl.DefaultEndpoint
org.apache.camel.impl.ScheduledPollEndpoint
org.apache.camel.impl.DefaultPollingEndpoint
org.apache.camel.component.snmp.SnmpEndpoint
public class SnmpEndpoint
| Field Summary | |
|---|---|
static String |
DEFAULT_COMMUNITY
|
static int |
DEFAULT_SNMP_RETRIES
|
static int |
DEFAULT_SNMP_TIMEOUT
|
static int |
DEFAULT_SNMP_VERSION
|
| Constructor Summary | |
|---|---|
SnmpEndpoint(String uri,
SnmpComponent component)
creates a snmp endpoint |
|
| Method Summary | |
|---|---|
Consumer |
createConsumer(Processor processor)
Creates a new Event Driven Consumer which consumes messages from the endpoint using the given processor |
Exchange |
createExchange(org.snmp4j.PDU pdu)
creates an exchange for the given message |
Producer |
createProducer()
Creates a new producer which is used send messages into the endpoint |
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()
Whether this class supports being singleton or not. |
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)
|
| Methods inherited from class org.apache.camel.impl.ScheduledPollEndpoint |
|---|
configureConsumer, configureProperties, getConsumerProperties, setConsumerProperties |
| Methods inherited from class org.apache.camel.impl.DefaultEndpoint |
|---|
createEndpointUri, createExchange, createExchange, createExchange, createPollingConsumer, equals, getCamelContext, getComponent, getEndpointKey, getEndpointUri, getExchangePattern, getExchangeType, hashCode, isLenientProperties, setCamelContext, setEndpointUri, setEndpointUriIfNotSpecified, setExchangePattern, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public 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
| Constructor Detail |
|---|
public SnmpEndpoint(String uri,
SnmpComponent component)
uri - the endpoint uricomponent - the component| Method Detail |
|---|
public Consumer createConsumer(Processor processor)
throws Exception
Endpoint
createConsumer in interface EndpointcreateConsumer in class DefaultPollingEndpointprocessor - the given processor
Exception - can be thrown
public Producer createProducer()
throws Exception
Endpoint
Exception - can be thrownpublic boolean isSingleton()
IsSingleton
public Exchange createExchange(org.snmp4j.PDU pdu)
pdu - the pdu
public 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)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||