Package com.adaptris.filesystem.smbj
Class SMBProducer
java.lang.Object
com.adaptris.core.AdaptrisMessageWorkerImp
com.adaptris.core.AdaptrisMessageProducerImp
com.adaptris.core.ProduceOnlyProducerImp
com.adaptris.filesystem.smbj.SMBProducer
- All Implemented Interfaces:
AdaptrisComponent,AdaptrisMessageProducer,AdaptrisMessageSender,AdaptrisMessageWorker,ComponentLifecycle,ComponentLifecycleExtension,MessageEventGenerator
@ComponentProfile(summary="Write to an SMB location",
tag="samba,smb",
recommended=SMBConnection.class,
since="3.10.1")
public class SMBProducer
extends ProduceOnlyProducerImp
Produce to a SMB share.
In the adapter configuration file this class is aliased as smb-producer which is the preferred alternative to the fully qualified classname when building your configuration.
-
Field Summary
Fields inherited from class com.adaptris.core.AdaptrisMessageWorkerImp
log -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoProduce(AdaptrisMessage msg, String uncPath) endpoint(AdaptrisMessage msg) getMode()Specify the mode in which the write of the file happens.getPath()The SMB Path to write files to in the form\\server-name\shareName\path\to\dir.voidprepare()voidsetFilenameCreator(FileNameCreator filenameCreator) voidSpecify the mode in which the write of the file happens.voidThe SMB Path to write files to in the form\\server-name\shareName\path\to\dir.Methods inherited from class com.adaptris.core.ProduceOnlyProducerImp
produce, request, requestMethods inherited from class com.adaptris.core.AdaptrisMessageProducerImp
createNameMethods inherited from class com.adaptris.core.AdaptrisMessageWorkerImp
createQualifier, decode, encode, getEncoder, getIsTrackingEndpoint, getMessageFactory, getUniqueId, handleConnectionException, isTrackingEndpoint, registerConnection, registerEncoderMessageFactory, retrieveConnection, setEncoder, setIsTrackingEndpoint, setMessageFactory, setUniqueId, withMessageFactory, withUniqueIDMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.adaptris.core.AdaptrisComponent
getUniqueIdMethods inherited from interface com.adaptris.core.AdaptrisMessageWorker
decode, encode, getEncoder, getMessageFactory, handleConnectionException, registerConnection, retrieveConnection, setEncoder, setMessageFactoryMethods inherited from interface com.adaptris.core.ComponentLifecycle
close, init, start, stopMethods inherited from interface com.adaptris.core.MessageEventGenerator
createQualifier, isTrackingEndpoint
-
Constructor Details
-
SMBProducer
public SMBProducer()
-
-
Method Details
-
prepare
- Throws:
CoreException
-
doProduce
- Specified by:
doProducein classProduceOnlyProducerImp- Throws:
ProduceException
-
withFilenameCreator
-
withMode
-
withPath
-
endpoint
- Specified by:
endpointin classAdaptrisMessageProducerImp- Throws:
ProduceException
-
getFilenameCreator
-
setFilenameCreator
-
getMode
Specify the mode in which the write of the file happens.If not specified then the default is
CreateModewhich means the produce will fail if the file already exists. We consider this the safest mode since we aren't using intermediate staging files to ensure atomic operations. -
setMode
Specify the mode in which the write of the file happens.If not specified then the default is
CreateModewhich means the produce will fail if the file already exists. We consider this the safest mode since we aren't using intermediate staging files to ensure atomic operations. -
getPath
The SMB Path to write files to in the form\\server-name\shareName\path\to\dir. -
setPath
The SMB Path to write files to in the form\\server-name\shareName\path\to\dir.
-