Class semper.SemperServer.SSTimer
All Packages Class Hierarchy This Package Previous Next Index
Class semper.SemperServer.SSTimer
java.lang.Object
|
+----semper.SemperServer.SSTimer
- public class SSTimer
- extends Object
- implements Runnable
This class defines methods for the implementation of
an external interruptable timer.
- Author:
- Petros Pantis, Kostas Tzelepis
- See Also:
- SSMonitor
-
monitorProc
-
-
SSTimer(SSMonitor)
- Constructor for the SSTimer object
-
ReadFrom(int)
- This method is called from the SSHTTParser or SSActionEngine
in order to get a new Socket or SSActionData object
respectively.
-
run()
- This method calls implements the timer loop
-
starting()
- Starts the timer thread
-
WaitTimer(long)
- Waits until an internal or external notification message will
occur
-
WakeUp()
- Called from the currently running thread in order
to interrupt the counting
-
WriteTo(int, Object)
- This method is called from the SSDaemon or SSHTTParser
in order to store a Socket or SSActionData object
respectively.
monitorProc
public SSMonitor monitorProc
SSTimer
public SSTimer(SSMonitor mProc)
- Constructor for the SSTimer object
- Parameters:
- mProc - the reference to the Monitor object
- See Also:
- SSMonitor
WakeUp
public synchronized void WakeUp()
- Called from the currently running thread in order
to interrupt the counting
- Parameters:
- proc - always true
- flag - the execution state for the current thread proccess
- See Also:
- SSDaemon
WaitTimer
public synchronized void WaitTimer(long time)
- Waits until an internal or external notification message will
occur
- Parameters:
- time - the timeout
starting
public void starting()
- Starts the timer thread
WriteTo
public boolean WriteTo(int loc,
Object obj)
- This method is called from the SSDaemon or SSHTTParser
in order to store a Socket or SSActionData object
respectively.
- Parameters:
- loc - the storage structure identifier
- obj - the new object that have to be stored
- Returns:
- value true on success
- See Also:
- SSHTTParser
ReadFrom
public Object ReadFrom(int loc)
- This method is called from the SSHTTParser or SSActionEngine
in order to get a new Socket or SSActionData object
respectively.
- Parameters:
- loc - the storage structure identifier
- Returns:
- value the object reference
- See Also:
- SSActionEngine
run
public void run()
- This method calls implements the timer loop
All Packages Class Hierarchy This Package Previous Next Index