|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.camel.support.ServiceSupport org.apache.camel.impl.DefaultEndpoint org.apache.camel.component.mock.MockEndpoint org.apache.camel.component.dataset.DataSetEndpoint
public class DataSetEndpoint
Endpoint for DataSet.
Field Summary |
---|
Fields inherited from class org.apache.camel.component.mock.MockEndpoint |
---|
copyOnExchange, reporter |
Fields inherited from class org.apache.camel.support.ServiceSupport |
---|
shutdown, shuttingdown, started, starting, stopped, stopping, suspended, suspending |
Constructor Summary | |
---|---|
DataSetEndpoint()
Deprecated. |
|
DataSetEndpoint(String endpointUri,
Component component,
DataSet dataSet)
|
Method Summary | |
---|---|
static void |
assertEquals(String description,
Object expected,
Object actual,
Exchange exchange)
|
protected void |
assertMessageExpected(long index,
Exchange expected,
Exchange actual)
|
Consumer |
createConsumer(Processor processor)
Creates a new Event Driven Consumer which consumes messages from the endpoint using the given processor |
Exchange |
createExchange(long messageIndex)
Creates a message exchange for the given index in the DataSet |
protected ThroughputLogger |
createReporter()
|
protected void |
doStart()
Implementations override this method to support customized start/stop. |
long |
getConsumeDelay()
|
DataSet |
getDataSet()
|
long |
getInitialDelay()
|
int |
getMinRate()
|
long |
getPreloadSize()
|
long |
getProduceDelay()
|
int |
getReceivedCounter()
|
protected void |
performAssertions(Exchange actual,
Exchange copy)
Performs the assertions on the incoming exchange. |
void |
reset()
|
void |
setConsumeDelay(long consumeDelay)
Allows a delay to be specified which causes consumers to pause - to simulate slow consumers |
void |
setDataSet(DataSet dataSet)
|
void |
setInitialDelay(long initialDelay)
|
void |
setMinRate(int minRate)
|
void |
setPreloadSize(long preloadSize)
Sets how many messages should be preloaded (sent) before the route completes its initialization |
void |
setProduceDelay(long produceDelay)
Allows a delay to be specified which causes producers to pause - to simulate slow producers |
protected void |
waitForCompleteLatch(long timeout)
|
Methods inherited from class org.apache.camel.support.ServiceSupport |
---|
doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspended, isSuspending, resume, shutdown, start, stop, suspend |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.apache.camel.Service |
---|
start, stop |
Methods inherited from interface org.apache.camel.Endpoint |
---|
configureProperties, createExchange, createExchange, createExchange, createPollingConsumer, getCamelContext, getEndpointConfiguration, getEndpointKey, getEndpointUri, setCamelContext |
Constructor Detail |
---|
@Deprecated public DataSetEndpoint()
public DataSetEndpoint(String endpointUri, Component component, DataSet dataSet)
Method Detail |
---|
public static void assertEquals(String description, Object expected, Object actual, Exchange exchange)
public Consumer createConsumer(Processor processor) throws Exception
Endpoint
createConsumer
in interface Endpoint
createConsumer
in class MockEndpoint
processor
- the given processor
Exception
- can be thrownpublic void reset()
reset
in class MockEndpoint
public int getReceivedCounter()
getReceivedCounter
in class MockEndpoint
public Exchange createExchange(long messageIndex) throws Exception
DataSet
Exception
public int getMinRate()
public void setMinRate(int minRate)
protected void waitForCompleteLatch(long timeout) throws InterruptedException
waitForCompleteLatch
in class MockEndpoint
InterruptedException
public DataSet getDataSet()
public void setDataSet(DataSet dataSet)
public long getPreloadSize()
public void setPreloadSize(long preloadSize)
public long getConsumeDelay()
public void setConsumeDelay(long consumeDelay)
public long getProduceDelay()
public void setProduceDelay(long produceDelay)
public long getInitialDelay()
public void setInitialDelay(long initialDelay)
protected void performAssertions(Exchange actual, Exchange copy) throws Exception
MockEndpoint
performAssertions
in class MockEndpoint
actual
- the actual exchangecopy
- a copy of the exchange (only store this)
Exception
- can be thrown if something went wrongprotected void assertMessageExpected(long index, Exchange expected, Exchange actual) throws Exception
Exception
protected ThroughputLogger createReporter()
protected void doStart() throws Exception
ServiceSupport
ServiceSupport.doStop()
for more details.
doStart
in class DefaultEndpoint
Exception
ServiceSupport.doStop()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |