Remote Systems
v6.4.1

com.ibm.etools.systems.localfilesubsys.impl
Class LocalSearchHandler

java.lang.Object
  extended byjava.lang.Thread
      extended bycom.ibm.etools.systems.localfilesubsys.impl.LocalSearchHandler
All Implemented Interfaces:
Runnable

public class LocalSearchHandler
extends Thread

Class used to collect local search results.


Nested Class Summary
protected  class LocalSearchHandler.OutputRefresh
           
 
Field Summary
protected  HashSet _alreadySearched
           
protected  String _classificationString
           
protected  int _depth
           
protected  SystemSearchFileNameMatcher _fileNameMatcher
           
protected  RemoteFileSubSystem _fs
           
protected  boolean _isCancelled
           
protected  boolean _isDone
           
protected  boolean _isFileSearch
           
protected  LocalSearchResultConfigurationImpl _searchConfig
           
protected  SystemSearchString _searchString
           
protected  Shell _shell
           
protected  SystemSearchStringMatcher _stringMatcher
           
protected  File _theFile
           
protected  RemoteFileImpl _theRmtFile
           
static String Copyright
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
LocalSearchHandler(Shell shell, LocalSearchResultConfigurationImpl searchConfig)
          Constructor for local search handler.
 
Method Summary
 void cancel()
           
protected  boolean doesClassificationMatch(String absolutePath)
          Returns whether classification matches.
protected  boolean doesFilePatternMatch(String compareStr)
           
 boolean isDone()
           
 void run()
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

Copyright

public static final String Copyright
See Also:
Constant Field Values

_alreadySearched

protected HashSet _alreadySearched

_searchConfig

protected LocalSearchResultConfigurationImpl _searchConfig

_shell

protected Shell _shell

_theRmtFile

protected RemoteFileImpl _theRmtFile

_theFile

protected File _theFile

_depth

protected int _depth

_fs

protected RemoteFileSubSystem _fs

_isDone

protected boolean _isDone

_isCancelled

protected boolean _isCancelled

_searchString

protected SystemSearchString _searchString

_stringMatcher

protected SystemSearchStringMatcher _stringMatcher

_isFileSearch

protected boolean _isFileSearch

_fileNameMatcher

protected SystemSearchFileNameMatcher _fileNameMatcher

_classificationString

protected String _classificationString
Constructor Detail

LocalSearchHandler

public LocalSearchHandler(Shell shell,
                          LocalSearchResultConfigurationImpl searchConfig)
Constructor for local search handler.

Parameters:
shell - a shell.
searchConfig - a search configuration.
Method Detail

run

public void run()

isDone

public boolean isDone()

cancel

public void cancel()

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.

Remote Systems
v6.4.1

Copyright © 2005 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.