|
||||||||||
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.component.file.GenericFileEndpoint<T>
public abstract class GenericFileEndpoint<T>
Generic FileEndpoint
Constructor Summary | |
---|---|
GenericFileEndpoint()
|
|
GenericFileEndpoint(String endpointUri,
Component component)
|
Method Summary | |
---|---|
void |
configureMessage(GenericFile<T> file,
Message message)
Configures the given message with the file which sets the body to the file object. |
protected String |
configureMoveOrPreMoveExpression(String expression)
Strategy to configure the move or premove option based on a String input. |
abstract GenericFileConsumer<T> |
createConsumer(Processor processor)
Creates a new Event Driven Consumer which consumes messages from the endpoint using the given processor |
abstract GenericFileExchange<T> |
createExchange(GenericFile<T> file)
|
protected GenericFileProcessStrategy<T> |
createGenericFileStrategy()
A strategy method to lazily create the file strategy |
abstract GenericFileProducer<T> |
createProducer()
Creates a new producer which is used send messages into the endpoint |
int |
getBufferSize()
|
GenericFileConfiguration |
getConfiguration()
|
String |
getExclude()
|
GenericFileExclusiveReadLockStrategy |
getExclusiveReadLockStrategy()
|
Expression |
getFileName()
|
abstract char |
getFileSeparator()
|
GenericFileFilter<T> |
getFilter()
|
String |
getGeneratedFileName(Message message)
Return the file name that will be auto-generated for the given message if none is provided |
GenericFileProcessStrategy<T> |
getGenericFileProcessStrategy()
|
IdempotentRepository |
getIdempotentRepository()
|
String |
getInclude()
|
String |
getLocalWorkDirectory()
|
Expression |
getMove()
|
GenericFileOperations<T> |
getOperations()
|
protected Map<String,Object> |
getParamsAsMap()
|
Expression |
getPreMove()
|
GenericFileProcessStrategy<T> |
getProcessStrategy()
|
String |
getReadLock()
|
long |
getReadLockTimeout()
|
abstract String |
getScheme()
|
Comparator<GenericFileExchange> |
getSortBy()
|
Comparator<GenericFile<T>> |
getSorter()
|
String |
getTempPrefix()
|
abstract boolean |
isAbsolute(String name)
|
boolean |
isAppend()
|
boolean |
isAutoCreate()
|
boolean |
isDelete()
|
boolean |
isFlattern()
|
boolean |
isIdempotent()
|
boolean |
isNoop()
|
boolean |
isRecursive()
|
boolean |
isSingleton()
Wheter this class supports being singleton or not. |
void |
setAppend(boolean append)
|
void |
setAutoCreate(boolean autoCreate)
|
void |
setBufferSize(int bufferSize)
|
void |
setConfiguration(GenericFileConfiguration configuration)
|
void |
setDelete(boolean delete)
|
void |
setExclude(String exclude)
|
void |
setExclusiveReadLockStrategy(GenericFileExclusiveReadLockStrategy exclusiveReadLockStrategy)
|
void |
setFileName(Expression fileName)
|
void |
setFileName(String fileLanguageExpression)
Sets the file expression based on FileLanguage |
void |
setFilter(GenericFileFilter<T> filter)
|
void |
setFlattern(boolean flattern)
|
void |
setGenericFileProcessStrategy(GenericFileProcessStrategy<T> genericFileProcessStrategy)
|
void |
setIdempotent(boolean idempotent)
|
void |
setIdempotentRepository(IdempotentRepository idempotentRepository)
|
void |
setInclude(String include)
|
void |
setLocalWorkDirectory(String localWorkDirectory)
|
void |
setMove(Expression move)
|
void |
setMove(String fileLanguageExpression)
Sets the move expression based on FileLanguage |
void |
setNoop(boolean noop)
|
void |
setOperations(GenericFileOperations<T> operations)
|
void |
setPreMove(Expression preMove)
|
void |
setPreMove(String fileLanguageExpression)
Sets the pre move expression based on FileLanguage |
void |
setProcessStrategy(GenericFileProcessStrategy<T> processStrategy)
|
void |
setReadLock(String readLock)
|
void |
setReadLockTimeout(long readLockTimeout)
|
void |
setRecursive(boolean recursive)
|
void |
setSortBy(Comparator<GenericFileExchange> sortBy)
|
void |
setSortBy(String expression)
|
void |
setSortBy(String expression,
boolean reverse)
|
void |
setSorter(Comparator<GenericFile<T>> sorter)
|
void |
setTempPrefix(String tempPrefix)
Enables and uses temporary prefix when writing files, after write it will be renamed to the correct name. |
Methods inherited from class org.apache.camel.impl.ScheduledPollEndpoint |
---|
configureConsumer, configureProperties, getConsumerProperties, setConsumerProperties |
Methods inherited from class org.apache.camel.impl.DefaultEndpoint |
---|
convertTo, createEndpointUri, createExchange, createExchange, createExchange, createExecutorService, createPollingConsumer, equals, getCamelContext, getComponent, getEndpointUri, getExchangePattern, getExchangeType, getExecutorService, hashCode, isLenientProperties, setCamelContext, setEndpointUri, setEndpointUriIfNotSpecified, setExchangePattern, setExecutorService, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected static final transient String DEFAULT_STRATEGYFACTORY_CLASS
protected static final transient int DEFAULT_IDEMPOTENT_CACHE_SIZE
protected final transient org.apache.commons.logging.Log log
protected GenericFileProcessStrategy<T> processStrategy
protected GenericFileOperations<T> operations
protected GenericFileConfiguration configuration
protected String localWorkDirectory
protected boolean autoCreate
protected int bufferSize
protected boolean append
protected boolean noop
protected boolean recursive
protected boolean delete
protected boolean flattern
protected String tempPrefix
protected String include
protected String exclude
protected Expression fileName
protected Expression move
protected Expression preMove
protected boolean idempotent
protected IdempotentRepository idempotentRepository
protected GenericFileFilter<T> filter
protected Comparator<GenericFile<T>> sorter
protected Comparator<GenericFileExchange> sortBy
protected String readLock
protected long readLockTimeout
protected GenericFileExclusiveReadLockStrategy exclusiveReadLockStrategy
Constructor Detail |
---|
public GenericFileEndpoint()
public GenericFileEndpoint(String endpointUri, Component component)
Method Detail |
---|
public boolean isSingleton()
IsSingleton
public abstract GenericFileConsumer<T> createConsumer(Processor processor) throws Exception
Endpoint
processor
- the given processor
Exception
- can be thrownpublic abstract GenericFileProducer<T> createProducer() throws Exception
Endpoint
Exception
- can be thrownpublic abstract GenericFileExchange<T> createExchange(GenericFile<T> file)
public abstract String getScheme()
public abstract char getFileSeparator()
public abstract boolean isAbsolute(String name)
public String getGeneratedFileName(Message message)
public GenericFileProcessStrategy<T> getGenericFileProcessStrategy()
protected GenericFileProcessStrategy<T> createGenericFileStrategy()
public void setGenericFileProcessStrategy(GenericFileProcessStrategy<T> genericFileProcessStrategy)
public boolean isNoop()
public void setNoop(boolean noop)
public boolean isRecursive()
public void setRecursive(boolean recursive)
public String getInclude()
public void setInclude(String include)
public String getExclude()
public void setExclude(String exclude)
public boolean isDelete()
public void setDelete(boolean delete)
public boolean isFlattern()
public void setFlattern(boolean flattern)
public Expression getMove()
public void setMove(Expression move)
public void setMove(String fileLanguageExpression)
FileLanguage
public Expression getPreMove()
public void setPreMove(Expression preMove)
public void setPreMove(String fileLanguageExpression)
FileLanguage
public Expression getFileName()
public void setFileName(Expression fileName)
public void setFileName(String fileLanguageExpression)
FileLanguage
public boolean isIdempotent()
public void setIdempotent(boolean idempotent)
public IdempotentRepository getIdempotentRepository()
public void setIdempotentRepository(IdempotentRepository idempotentRepository)
public GenericFileFilter<T> getFilter()
public void setFilter(GenericFileFilter<T> filter)
public Comparator<GenericFile<T>> getSorter()
public void setSorter(Comparator<GenericFile<T>> sorter)
public Comparator<GenericFileExchange> getSortBy()
public void setSortBy(Comparator<GenericFileExchange> sortBy)
public void setSortBy(String expression)
public void setSortBy(String expression, boolean reverse)
public String getTempPrefix()
public void setTempPrefix(String tempPrefix)
public GenericFileConfiguration getConfiguration()
public void setConfiguration(GenericFileConfiguration configuration)
public GenericFileExclusiveReadLockStrategy getExclusiveReadLockStrategy()
public void setExclusiveReadLockStrategy(GenericFileExclusiveReadLockStrategy exclusiveReadLockStrategy)
public String getReadLock()
public void setReadLock(String readLock)
public long getReadLockTimeout()
public void setReadLockTimeout(long readLockTimeout)
public int getBufferSize()
public void setBufferSize(int bufferSize)
public boolean isAppend()
public void setAppend(boolean append)
public boolean isAutoCreate()
public void setAutoCreate(boolean autoCreate)
public GenericFileOperations<T> getOperations()
public void setOperations(GenericFileOperations<T> operations)
public GenericFileProcessStrategy<T> getProcessStrategy()
public void setProcessStrategy(GenericFileProcessStrategy<T> processStrategy)
public String getLocalWorkDirectory()
public void setLocalWorkDirectory(String localWorkDirectory)
public void configureMessage(GenericFile<T> file, Message message)
protected String configureMoveOrPreMoveExpression(String expression)
expression
- the original string input
protected Map<String,Object> getParamsAsMap()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |