Remote Systems
v6.4.1

com.ibm.etools.systems.dstore.core.model
Class Handler

java.lang.Object
  extended byjava.lang.Thread
      extended bycom.ibm.etools.systems.dstore.core.model.Handler
All Implemented Interfaces:
Runnable
Direct Known Subclasses:
CommandHandler, OutputHandler, ProcessTracker, UpdateHandler

public abstract class Handler
extends Thread

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.


Field Summary
protected  DataStore _dataStore
           
protected  int _waitIncrement
           
static String Copyright
           
 
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 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
 
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

_waitIncrement

protected int _waitIncrement

_dataStore

protected DataStore _dataStore
Constructor Detail

Handler

public Handler()
Constructor

Method Detail

setWaitTime

public void setWaitTime(int value)
Sets the time interval to wait between handling

Parameters:
value - the wait interval

getWaitTime

public int getWaitTime()
Returns the time interval to wait between handling

Returns:
the wait interval

setDataStore

public void setDataStore(DataStore dataStore)
Sets the associated DataStore

Parameters:
dataStore -

isFinished

public boolean isFinished()
Indicates whether the handler is finished or not

Returns:
whether the handler is finished or not

finish

public void finish()
Finish handling


handle

public abstract void handle()
Implemented to provide the periodic activity to be done in a handler. This method is called between wait intervals by the handler thread.


run

public void run()
Runs the handler loop in a thread.


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.