Class semper.SemperServer.SSHTTParser
All Packages Class Hierarchy This Package Previous Next Index
Class semper.SemperServer.SSHTTParser
java.lang.Object
|
+----java.lang.Thread
|
+----semper.SemperServer.SSHTTParser
- public class SSHTTParser
- extends Thread
- implements SSTaskControl
This class is responsible for the parsing of the client request.
Additional this object tries to find the BAapplication class
and if this class exists it invokes the appropriate BA .
- Author:
- Kostas Tzelepis, Petros Pantis
-
SSHTTParser(int, SSTimer)
- starts a new SSHTTParser, this is called at run time
(minimal number of SSHTTParsers) or by the Monitor object
when it feels more SSHTTParsers are needed to handle
the load.
-
GetFlags()
- Retrieves the state flags
-
GetID()
- Retrieves the identifier
-
GetObj()
- Returns always null
-
GetStatus()
- Retrieves the current status
-
Handler(Object)
- Called from the Monitor object in order to associate a
new client connection with a idle SSHTTParser object
-
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 parses the client request, retrieves the requested BA
from the Session Manager and invokes the appropriated BA
-
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 SSHTTParser object
SSHTTParser
public SSHTTParser(int id,
SSTimer dismnt)
- starts a new SSHTTParser, this is called at run time
(minimal number of SSHTTParsers) or by the Monitor object
when it feels more SSHTTParsers are needed to handle
the load.
- Parameters:
- id - the Id of the SSHTTParser object
- dismnt - a reference to the Monitor Timer object
- See Also:
- SSMonitor
Stop
public void Stop()
- Called from the Monitor object to destroys the SSHTTParser object
- See Also:
- Stop
Handler
public void Handler(Object cliSock)
- Called from the Monitor object in order to associate a
new client connection with a idle SSHTTParser object
- Parameters:
- cliSock - the new client connection socket
- See Also:
- LaunchExtraThread SSMonitor#RequestActive
run
public void run()
- This method parses the client request, retrieves the requested BA
from the Session Manager and invokes the appropriated BA
- Overrides:
- run in class Thread
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
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 always null
All Packages Class Hierarchy This Package Previous Next Index