org.eclipse.rse.dstore.universal.miners.filesystem
Class UniversalSearchHandler
java.lang.Object
java.lang.Thread
org.eclipse.rse.dstore.universal.miners.filesystem.UniversalSearchHandler
- All Implemented Interfaces:
- ICancellableHandler, Runnable
- public class UniversalSearchHandler
- extends Thread
- implements ICancellableHandler
| Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield |
_alreadySearched
protected HashSet _alreadySearched
_isCancelled
protected boolean _isCancelled
_isDone
protected boolean _isDone
_depth
protected int _depth
_dataStore
protected org.eclipse.dstore.core.model.DataStore _dataStore
_miner
protected UniversalFileSystemMiner _miner
_status
protected org.eclipse.dstore.core.model.DataElement _status
_searchString
protected SystemSearchString _searchString
_stringMatcher
protected SystemSearchStringMatcher _stringMatcher
_isFileSearch
protected boolean _isFileSearch
_fileNameMatcher
protected SystemSearchFileNameMatcher _fileNameMatcher
_classificationString
protected String _classificationString
_deGrep
protected org.eclipse.dstore.core.model.DataElement _deGrep
_deFile
protected org.eclipse.dstore.core.model.DataElement _deFile
_deFolder
protected org.eclipse.dstore.core.model.DataElement _deFolder
_deArchiveFile
protected org.eclipse.dstore.core.model.DataElement _deArchiveFile
_deVirtualFile
protected org.eclipse.dstore.core.model.DataElement _deVirtualFile
_fsCaseSensitive
protected boolean _fsCaseSensitive
UniversalSearchHandler
public UniversalSearchHandler(org.eclipse.dstore.core.model.DataStore dataStore,
UniversalFileSystemMiner miner,
SystemSearchString searchString,
boolean fsCaseSensitive,
File theFile,
org.eclipse.dstore.core.model.DataElement status)
run
public void run()
- Specified by:
run in interface Runnable
isCancelled
public boolean isCancelled()
- Specified by:
isCancelled in interface ICancellableHandler
isDone
public boolean isDone()
- Specified by:
isDone in interface ICancellableHandler
cancel
public void cancel()
- Specified by:
cancel in interface ICancellableHandler
hasSearchedDirectory
protected boolean hasSearchedDirectory(File file)
internalSearch
protected void internalSearch(File theFile,
int depth)
internalSearchWithinFile
protected boolean internalSearchWithinFile(org.eclipse.dstore.core.model.DataElement remoteFile,
String absPath,
File theFile)
doesFilePatternMatch
protected boolean doesFilePatternMatch(String compareStr)
doesClassificationMatch
protected boolean doesClassificationMatch(String absolutePath)
- Returns whether classification matches.
- Parameters:
absolutePath - the absolute path of the file for which we want to check classification.
- Returns:
true if the classification matches, false otherwise.
convert
protected void convert(org.eclipse.dstore.core.model.DataElement deObj,
String absPath,
SystemSearchLineMatch[] lineMatches)
- Converts from system line matches to data elements that will be sent back.
- Parameters:
deObj - the element representing the file for which matches have been found.absPath - the absolute path of the file.lineMatches - an array of line matches, or empty if no matches.
Copyright (c) IBM Corporation and others 2000, 2006. All Rights Reserved.