|
Remote System Explorer DataStore Release 3.4 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Thread
org.eclipse.dstore.core.server.SecuredThread
org.eclipse.dstore.core.model.Handler
public abstract class Handler
The Handler class is the base class for the threaded mechanisms in the DataStore. This is a thread that periodically does some activity. The frequency of handling can be configured.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
Thread.State, Thread.UncaughtExceptionHandler |
| Field Summary | |
|---|---|
protected boolean |
_keepRunning
|
protected int |
_waitIncrement
|
| Fields inherited from class org.eclipse.dstore.core.server.SecuredThread |
|---|
_dataStore |
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
|---|---|
Handler()
Constructor |
|
| Method Summary | |
|---|---|
void |
finish()
Finish handling |
int |
getWaitTime()
Returns the time interval to wait between handling |
abstract void |
handle()
Implemented to provide the periodic activity to be done in a handler. |
boolean |
isFinished()
Indicates whether the handler is finished or not |
void |
notifyInput()
Causes all threads waiting for this class request to be filled to wake up. |
void |
run()
Runs the handler loop in a thread. |
void |
setDataStore(DataStore dataStore)
Sets the associated DataStore |
void |
setWaitTime(int value)
Sets the time interval to wait between handling |
void |
waitForInput()
Causes the current thread to wait until this class request has been fulfilled. |
| Methods inherited from class org.eclipse.dstore.core.server.SecuredThread |
|---|
start |
| 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, stop, stop, suspend, toString, yield |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected int _waitIncrement
protected boolean _keepRunning
| Constructor Detail |
|---|
public Handler()
| Method Detail |
|---|
public void setWaitTime(int value)
value - the wait intervalpublic int getWaitTime()
public void setDataStore(DataStore dataStore)
setDataStore in class SecuredThreaddataStore - public boolean isFinished()
public void finish()
public abstract void handle()
public void run()
run in interface Runnablerun in class SecuredThreadpublic void waitForInput()
public void notifyInput()
|
Remote System Explorer DataStore Release 3.4 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||