public class RemoteFileProducer<T>
extends org.apache.camel.component.file.GenericFileProducer<T>
implements org.apache.camel.ServicePoolAware
| Modifier | Constructor and Description |
|---|---|
protected |
RemoteFileProducer(RemoteFileEndpoint<T> endpoint,
RemoteFileOperations<T> operations) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
connectIfNecessary() |
void |
disconnect() |
protected void |
doStart() |
protected void |
doStop() |
RemoteFileEndpoint<T> |
getEndpoint() |
String |
getFileSeparator() |
protected RemoteFileOperations<T> |
getOperations() |
void |
handleFailedWrite(org.apache.camel.Exchange exchange,
Exception exception)
The file could not be written.
|
boolean |
isSingleton() |
String |
normalizePath(String name) |
void |
postWriteCheck() |
void |
preWriteCheck() |
void |
process(org.apache.camel.Exchange exchange) |
protected void |
recoverableConnectIfNecessary() |
String |
toString() |
createFileName, createTempFileName, processExchange, setOperations, writeFilecreateExchange, createExchange, createExchangedoResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, resume, shutdown, start, stop, suspendprotected RemoteFileProducer(RemoteFileEndpoint<T> endpoint, RemoteFileOperations<T> operations)
public String getFileSeparator()
getFileSeparator in class org.apache.camel.component.file.GenericFileProducer<T>public String normalizePath(String name)
normalizePath in class org.apache.camel.component.file.GenericFileProducer<T>public void process(org.apache.camel.Exchange exchange)
throws Exception
protected RemoteFileOperations<T> getOperations()
public RemoteFileEndpoint<T> getEndpoint()
getEndpoint in interface org.apache.camel.ProducergetEndpoint in class org.apache.camel.impl.DefaultProducerpublic void handleFailedWrite(org.apache.camel.Exchange exchange,
Exception exception)
throws Exception
public void disconnect()
throws org.apache.camel.component.file.GenericFileOperationFailedException
org.apache.camel.component.file.GenericFileOperationFailedExceptionpublic void preWriteCheck()
throws Exception
public void postWriteCheck()
postWriteCheck in class org.apache.camel.component.file.GenericFileProducer<T>protected void doStart()
throws Exception
protected void doStop()
throws Exception
protected void recoverableConnectIfNecessary()
throws Exception
Exceptionprotected void connectIfNecessary()
throws org.apache.camel.component.file.GenericFileOperationFailedException
org.apache.camel.component.file.GenericFileOperationFailedExceptionpublic boolean isSingleton()
isSingleton in interface org.apache.camel.IsSingletonisSingleton in class org.apache.camel.impl.DefaultProducerpublic String toString()
toString in class org.apache.camel.impl.DefaultProducerApache Camel