Class semper.SemperClient.SCDaemon
All Packages Class Hierarchy This Package Previous Next Index
Class semper.SemperClient.SCDaemon
java.lang.Object
|
+----java.lang.Thread
|
+----semper.SemperClient.SCDaemon
- public class SCDaemon
- extends Thread
- implements SCTaskControl
SCDaemon implements a handler for client-server
connection requests
- Author:
- Kostas Tzelepis, Petros Pantis
-
clientsocket
-
-
SCDaemon(ServerSocket, SCTimer)
- SCDaemon object constructor
-
GetFlags()
- Retrieves the state flags
-
GetID()
- Retrieves the identifier
-
GetObj()
- Returns the socket object
-
GetStatus()
- Retrieves the current status
-
Handler(Object)
- Never called!
-
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()
- Called from the Monitor object to destroys the SCHTTParser object
clientsocket
public Socket clientsocket
SCDaemon
public SCDaemon(ServerSocket sock,
SCTimer mo)
- SCDaemon object constructor
- Parameters:
- sock - the ServerSocket object
- 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 SCTimer
- 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()
- Called from the Monitor object to destroys the SCHTTParser object
- See Also:
- Stop
Handler
public void Handler(Object pObj)
- Never called!
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 socket object
- Returns:
- value the new socket connection
All Packages Class Hierarchy This Package Previous Next Index