Class AbstractSmbDirectoryListerBasedSearchlet
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.flow.source.filesystemsearch.AbstractFileSystemSearchlet
-
- adams.flow.source.filesystemsearch.AbstractSmbDirectoryListerBasedSearchlet
-
- All Implemented Interfaces:
Destroyable
,GlobalInfoSupporter
,LoggingLevelHandler
,LoggingSupporter
,OptionHandler
,QuickInfoSupporter
,ShallowCopySupporter<AbstractFileSystemSearchlet>
,SizeOfHandler
,Stoppable
,StoppableWithFeedback
,FlowContextHandler
,Serializable
- Direct Known Subclasses:
SmbDirectorySearch
,SmbDirectorySearchWithComparator
,SmbDirectorySearchWithCustomSort
,SmbFileSearch
public abstract class AbstractSmbDirectoryListerBasedSearchlet extends AbstractFileSystemSearchlet
Ancestor for search algorithms that useSmbDirectoryLister
under the hood.- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected SmbDirectoryLister
m_Lister
for listing the contents.-
Fields inherited from class adams.flow.source.filesystemsearch.AbstractFileSystemSearchlet
m_FlowContext, m_Stopped
-
Fields inherited from class adams.core.option.AbstractOptionHandler
m_OptionManager
-
Fields inherited from class adams.core.logging.LoggingObject
m_Logger, m_LoggingIsEnabled, m_LoggingLevel
-
-
Constructor Summary
Constructors Constructor Description AbstractSmbDirectoryListerBasedSearchlet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
check()
Performs a setup check before search.void
defineOptions()
Adds options to the internal list of options.protected List<String>
doSearch()
Performs the actual search.String
getHost()
Returns the host to connect to.String
hostTipText()
Returns the tip text for this property.protected void
initialize()
Initializes the members.void
setHost(String value)
Sets the host to connect to.void
setLoggingLevel(LoggingLevel value)
Sets the logging level.void
stopExecution()
Stops the execution.-
Methods inherited from class adams.flow.source.filesystemsearch.AbstractFileSystemSearchlet
getFlowContext, getQuickInfo, isStopped, search, setFlowContext, shallowCopy, shallowCopy
-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, destroy, finishInit, getDefaultLoggingLevel, getOptionManager, globalInfo, loggingLevelTipText, newOptionManager, reset, toCommandLine, toString
-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface adams.core.logging.LoggingLevelHandler
getLoggingLevel
-
-
-
-
Field Detail
-
m_Lister
protected SmbDirectoryLister m_Lister
for listing the contents.
-
-
Method Detail
-
defineOptions
public void defineOptions()
Adds options to the internal list of options.- Specified by:
defineOptions
in interfaceOptionHandler
- Overrides:
defineOptions
in classAbstractOptionHandler
-
initialize
protected void initialize()
Initializes the members.- Overrides:
initialize
in classAbstractOptionHandler
-
setLoggingLevel
public void setLoggingLevel(LoggingLevel value)
Sets the logging level.- Specified by:
setLoggingLevel
in interfaceLoggingLevelHandler
- Overrides:
setLoggingLevel
in classAbstractOptionHandler
- Parameters:
value
- the level
-
setHost
public void setHost(String value)
Sets the host to connect to.- Parameters:
value
- the host
-
getHost
public String getHost()
Returns the host to connect to.- Returns:
- the hsot
-
hostTipText
public String hostTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
check
protected void check() throws Exception
Performs a setup check before search.- Overrides:
check
in classAbstractFileSystemSearchlet
- Throws:
Exception
- if checks failed
-
doSearch
protected List<String> doSearch() throws Exception
Performs the actual search.- Specified by:
doSearch
in classAbstractFileSystemSearchlet
- Returns:
- the search result
- Throws:
Exception
- if search failed
-
stopExecution
public void stopExecution()
Stops the execution.- Specified by:
stopExecution
in interfaceStoppable
- Specified by:
stopExecution
in classAbstractFileSystemSearchlet
-
-