org.apache.axis.transport.http
public class SimpleAxisServer extends Object implements Runnable
Field Summary | |
---|---|
protected static Log | log |
static int | MAX_SESSIONS_DEFAULT |
static int | sessionIndex |
Constructor Summary | |
---|---|
SimpleAxisServer()
create a server with the default threads and sessions. | |
SimpleAxisServer(int maxPoolSize)
Create a server with a configurable pool side; sessions set to the default
limit | |
SimpleAxisServer(int maxPoolSize, int maxSessions)
Constructor |
Method Summary | |
---|---|
protected Session | createSession(String cooky)
demand create a session if there is not already one for the string |
protected void | finalize()
stop the server if not already told to. |
AxisServer | getAxisServer()
demand create an axis server; return an existing one if one exists.
|
boolean | getDoThreads() |
int | getMaxSessions()
get max session count |
EngineConfiguration | getMyConfig() |
static ThreadPool | getPool()
get the thread pool |
ServerSocket | getServerSocket()
Obtain the serverSocket that that SimpleAxisServer is listening on. |
protected boolean | isSessionUsed() |
static void | main(String[] args)
Server process. |
void | run()
Accept requests from a given TCP port and send them through the
Axis engine for processing. |
void | setDoThreads(boolean value)
turn threading on or off. |
void | setMaxSessions(int maxSessions)
Resize the session map |
void | setMyConfig(EngineConfiguration myConfig) |
void | setServerSocket(ServerSocket serverSocket)
Set the serverSocket this server should listen on.
(note : changing this will not affect a running server, but if you
stop() and then start() the server, the new socket will be used). |
void | start(boolean daemon)
Start this server.
|
void | start()
Start this server as a NON-daemon. |
void | stop()
Stop this server. |
Parameters: maxPoolSize maximum thread pool size
Parameters: maxPoolSize max number of threads maxSessions maximum sessions
Parameters: cooky
Returns: a session.
Throws: Throwable
Returns:
Returns:
Returns:
Parameters: value
Parameters: maxSessions maximum sessions
Parameters: daemon a boolean indicating if the thread should be a daemon.