|
|||||||||
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>
org.apache.camel.component.file.remote.RemoteFileEndpoint<T>
public abstract class RemoteFileEndpoint<T>
Remote file endpoint.
Field Summary |
---|
Fields inherited from class org.apache.camel.component.file.GenericFileEndpoint |
---|
autoCreate, bufferSize, charset, configuration, DEFAULT_IDEMPOTENT_CACHE_SIZE, DEFAULT_STRATEGYFACTORY_CLASS, delete, directoryMustExist, doneFileName, eagerDeleteTargetFile, exclude, exclusiveReadLockStrategy, fileExist, fileName, filter, flatten, idempotent, idempotentRepository, include, inProgressRepository, keepLastModified, localWorkDirectory, log, maxMessagesPerPoll, move, moveFailed, noop, preMove, processStrategy, readLock, readLockCheckInterval, readLockTimeout, recursive, sortBy, sorter, startingDirectoryMustExist, tempFileName, tempPrefix |
Constructor Summary | |
---|---|
RemoteFileEndpoint()
|
|
RemoteFileEndpoint(String uri,
RemoteFileComponent<T> component,
RemoteFileConfiguration configuration)
|
Method Summary | |
---|---|
protected void |
afterPropertiesSet()
Validates this endpoint if its configured properly. |
protected abstract RemoteFileConsumer<T> |
buildConsumer(Processor processor)
Remote File Endpoints, impl this method to create a custom consumer specific to their "protocol" etc. |
protected abstract GenericFileProducer<T> |
buildProducer()
Remote File Endpoints, impl this method to create a custom producer specific to their "protocol" etc. |
RemoteFileConsumer<T> |
createConsumer(Processor processor)
|
Exchange |
createExchange(GenericFile<T> file)
|
GenericFileProducer<T> |
createProducer()
|
abstract RemoteFileOperations<T> |
createRemoteFileOperations()
Creates the operations to be used by the consumer or producer. |
RemoteFileConfiguration |
getConfiguration()
|
char |
getFileSeparator()
|
int |
getMaximumReconnectAttempts()
|
long |
getReconnectDelay()
|
boolean |
isAbsolute(String name)
|
boolean |
isDisconnect()
|
String |
remoteServerInformation()
Returns human readable server information for logging purpose |
void |
setDisconnect(boolean disconnect)
|
void |
setMaximumReconnectAttempts(int maximumReconnectAttempts)
|
void |
setReconnectDelay(long reconnectDelay)
|
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, getId, hashCode, isLenientProperties, isSynchronous, sanitizeUri, setCamelContext, setEndpointUri, setEndpointUriIfNotSpecified, setExchangePattern, setSynchronous, start, stop, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RemoteFileEndpoint()
public RemoteFileEndpoint(String uri, RemoteFileComponent<T> component, RemoteFileConfiguration configuration)
Method Detail |
---|
public RemoteFileConfiguration getConfiguration()
getConfiguration
in class GenericFileEndpoint<T>
public Exchange createExchange(GenericFile<T> file)
createExchange
in class GenericFileEndpoint<T>
public GenericFileProducer<T> createProducer() throws Exception
createProducer
in interface Endpoint
createProducer
in class GenericFileEndpoint<T>
Exception
public RemoteFileConsumer<T> createConsumer(Processor processor) throws Exception
createConsumer
in interface Endpoint
createConsumer
in class GenericFileEndpoint<T>
Exception
protected void afterPropertiesSet() throws Exception
Exception
- is thrown if endpoint is invalid configured for its mandatory optionsprotected abstract RemoteFileConsumer<T> buildConsumer(Processor processor)
processor
- the processor
protected abstract GenericFileProducer<T> buildProducer()
public abstract RemoteFileOperations<T> createRemoteFileOperations() throws Exception
Exception
- is thrown if error creating operations.public String remoteServerInformation()
public char getFileSeparator()
getFileSeparator
in class GenericFileEndpoint<T>
public boolean isAbsolute(String name)
isAbsolute
in class GenericFileEndpoint<T>
public int getMaximumReconnectAttempts()
public void setMaximumReconnectAttempts(int maximumReconnectAttempts)
public long getReconnectDelay()
public void setReconnectDelay(long reconnectDelay)
public boolean isDisconnect()
public void setDisconnect(boolean disconnect)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |