|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
de.root1.simon.PublicationSearcher
public class PublicationSearcher
TODO document me
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
Field Summary |
---|
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
protected |
PublicationSearcher(SearchProgressListener listener,
int searchTime)
Creates a searcher instance that searches for published remote objects on the local network |
Method Summary | |
---|---|
java.util.List<SimonPublication> |
getNewPublications()
Returns new found publications |
int |
getSearchProgress()
Returns a value from 0..100 indicating the search progress. 0 is at beginning, 100 at end. |
boolean |
isSearching()
Returns if thread is still busy with searching |
void |
run()
|
void |
shutdown()
Signals a shutdown to the search thread and waits until the shutdown is processed completely. |
void |
signalShutdown()
Signals a shutdown request to the search thread. |
Methods inherited from class java.lang.Thread |
---|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, 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 |
Constructor Detail |
---|
protected PublicationSearcher(SearchProgressListener listener, int searchTime) throws java.io.IOException
listener
- a SearchProgressListener
implementation which is
informed about the current search progresssearchTime
- the time the background search thread spends for searching
published remote objects
java.io.IOException
Method Detail |
---|
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
public void signalShutdown()
public void shutdown()
public java.util.List<SimonPublication> getNewPublications()
getNewPublications()
public int getSearchProgress()
public boolean isSearching()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |