Class semper.SemperServer.SSDaemon
All Packages Class Hierarchy This Package Previous Next Index
Class semper.SemperServer.SSDaemon
java.lang.Object
|
+----java.lang.Thread
|
+----semper.SemperServer.SSDaemon
- public class SSDaemon
- extends Thread
- implements SSTaskControl
SSDaemon implements a handler for client-server
connection requests
- Author:
- Kostas Tzelepis, Petros Pantis
-
clObj
-
-
SSDaemon(SSTimer)
- SSDaemon object constructor
-
GetFlags()
- Retrieves the state flags
-
GetID()
- Retrieves the identifier
-
GetObj()
- Returns the CLConnection object
-
GetStatus()
- Retrieves the current status
-
Handler(Object)
- Do nothing!
-
Notify()
- This method is called from the monitor object in order to notify the
suspended parser that a new client socket is ready to be parsed
-
run()
- This method blocks until a new connection request is arived.
-
SetID(int)
- Sets the identifier
-
SetPriority(int)
- Change the priority
-
SetStatus()
- Sets the default status identifier
-
Stop()
- Do nothing!
clObj
public CLConnection clObj
SSDaemon
public SSDaemon(SSTimer mo)
- SSDaemon object constructor
- Parameters:
- mo - the Monitor Timer object
run
public void run()
- This method blocks until a new connection request is arived.
After that the socket object will be returned to the SSTimer
- Overrides:
- run in class Thread
- See Also:
- WakeUp
Notify
public void Notify()
- This method is called from the monitor object in order to notify the
suspended parser that a new client socket is ready to be parsed
GetFlags
public int GetFlags()
- Retrieves the state flags
- Returns:
- value the state flags
SetPriority
public void SetPriority(int prio)
- Change the priority
- Parameters:
- prio - the new priority level
SetID
public void SetID(int id)
- Sets the identifier
- Parameters:
- id - the new identifier
GetID
public int GetID()
- Retrieves the identifier
- Returns:
- value the identifier for the current module
Stop
public void Stop()
- Do nothing!
Handler
public void Handler(Object pObj)
- Do nothing!
GetStatus
public int GetStatus()
- Retrieves the current status
- Returns:
- value the status identifier
SetStatus
public void SetStatus()
- Sets the default status identifier
GetObj
public Object GetObj()
- Returns the CLConnection object
- Returns:
- value the new created CLConnection object
All Packages Class Hierarchy This Package Previous Next Index