Class SmbStreamingMessageSource
java.lang.Object
org.springframework.integration.util.AbstractExpressionEvaluator
org.springframework.integration.endpoint.AbstractMessageSource<InputStream>
org.springframework.integration.endpoint.AbstractFetchLimitingMessageSource<InputStream>
org.springframework.integration.file.remote.AbstractRemoteFileStreamingMessageSource<jcifs.smb.SmbFile>
org.springframework.integration.smb.inbound.SmbStreamingMessageSource
- All Implemented Interfaces:
Aware,BeanFactoryAware,BeanNameAware,DisposableBean,InitializingBean,Lifecycle,MessageSource<InputStream>,IntegrationPattern,NamedComponent,IntegrationInboundManagement,IntegrationManagement,ManageableLifecycle,MessageSourceManagement
public class SmbStreamingMessageSource
extends AbstractRemoteFileStreamingMessageSource<jcifs.smb.SmbFile>
Message source for streaming SMB remote file contents.
- Since:
- 6.0
- Author:
- Gregory Bragg, Artem Bilan
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.springframework.integration.support.management.IntegrationManagement
IntegrationManagement.ManagementOverrides -
Field Summary
Fields inherited from class org.springframework.integration.util.AbstractExpressionEvaluator
EXPRESSION_PARSER, loggerFields inherited from interface org.springframework.integration.support.management.IntegrationManagement
METER_PREFIX, RECEIVE_COUNTER_NAME, SEND_TIMER_NAME -
Constructor Summary
ConstructorsConstructorDescriptionSmbStreamingMessageSource(RemoteFileTemplate<jcifs.smb.SmbFile> template) Construct an instance with the supplied template.SmbStreamingMessageSource(RemoteFileTemplate<jcifs.smb.SmbFile> template, @Nullable Comparator<jcifs.smb.SmbFile> comparator) Construct an instance with the supplied template and comparator. -
Method Summary
Modifier and TypeMethodDescriptionprotected List<AbstractFileInfo<jcifs.smb.SmbFile>> asFileInfoList(Collection<jcifs.smb.SmbFile> files) protected booleanisDirectory(jcifs.smb.SmbFile file) Methods inherited from class org.springframework.integration.file.remote.AbstractRemoteFileStreamingMessageSource
clearFetchedCache, doInit, doReceive, doSetFilter, getRemoteFileTemplate, isRunning, onInit, poll, remotePath, rollbackFromFileToListEnd, setFileInfoJson, setFilter, setRemoteDirectory, setRemoteDirectoryExpression, setRemoteFileSeparator, setStrictOrder, start, stopMethods inherited from class org.springframework.integration.endpoint.AbstractFetchLimitingMessageSource
doReceive, getMaxFetchSize, setMaxFetchSizeMethods inherited from class org.springframework.integration.endpoint.AbstractMessageSource
buildMessage, destroy, getComponentName, getManagedName, getManagedType, getOverrides, isLoggingEnabled, receive, registerMetricsCaptor, setBeanName, setHeaderExpressions, setLoggingEnabled, setManagedName, setManagedTypeMethods inherited from class org.springframework.integration.util.AbstractExpressionEvaluator
afterPropertiesSet, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, getBeanFactory, getEvaluationContext, getEvaluationContext, getMessageBuilderFactory, setBeanFactory, setConversionService, setSimpleEvaluationContextMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.integration.support.management.IntegrationManagement
getThisAs, isObserved, registerObservationRegistryMethods inherited from interface org.springframework.integration.core.MessageSource
getIntegrationPatternTypeMethods inherited from interface org.springframework.integration.support.context.NamedComponent
getBeanName
-
Constructor Details
-
SmbStreamingMessageSource
Construct an instance with the supplied template.- Parameters:
template- the template.
-
SmbStreamingMessageSource
public SmbStreamingMessageSource(RemoteFileTemplate<jcifs.smb.SmbFile> template, @Nullable Comparator<jcifs.smb.SmbFile> comparator) Construct an instance with the supplied template and comparator. Note: the comparator is applied each time the remote directory is listed which only occurs when the previous list is exhausted.- Parameters:
template- the template.comparator- the comparator.
-
-
Method Details
-
getComponentType
-
asFileInfoList
protected List<AbstractFileInfo<jcifs.smb.SmbFile>> asFileInfoList(Collection<jcifs.smb.SmbFile> files) - Specified by:
asFileInfoListin classAbstractRemoteFileStreamingMessageSource<jcifs.smb.SmbFile>
-
isDirectory
protected boolean isDirectory(jcifs.smb.SmbFile file) - Specified by:
isDirectoryin classAbstractRemoteFileStreamingMessageSource<jcifs.smb.SmbFile>
-