openlsd.multiple.ophandler.common.LSDOpHandlerHttpIoHandler Class Reference

Inheritance diagram for openlsd.multiple.ophandler.common.LSDOpHandlerHttpIoHandler:

Inheritance graph
[legend]
Collaboration diagram for openlsd.multiple.ophandler.common.LSDOpHandlerHttpIoHandler:

Collaboration graph
[legend]

List of all members.


Detailed Description

Http Service for the OpenLSD Server (Info, Clean, Shutdown)
Author:
Frederic BREGIER LGPL 2007

Public Member Functions

 LSDOpHandlerHttpIoHandler (LSDPoolLSDConnection poolLSDConnection)
void close (boolean wait)
void messageSent (IoSession session, Object arg1) throws Exception
void exceptionCaught (IoSession session, Throwable cause) throws Exception
void sessionIdle (IoSession session, IdleStatus status) throws Exception
void messageReceived (IoSession session, Object message) throws Exception

Public Attributes

SocketAcceptor httpAcceptor = null
OrderedThreadPoolExecutor orderedThreadPoolExecutor = null
LSDPoolLSDConnection poolLSDConnection = null

Static Public Attributes

static final String SHUTDOWN = "SHUTDOWN"
static final String INFOSESSION = "INFOSESSION"
static final String CLEAN = "CLEAN"
static final String CSV = "CSV"
static final String ORDER = "order"
static int port = 8099
static String passwd = null

Private Member Functions

void writeResponse (IoSession session, HttpRequest req, MutableHttpResponse res)
String getInfoLSDPoolConnection (LSDPoolConnection poolConnection, boolean csv)
String getMenu ()

Private Attributes

boolean isShutdown = false

Constructor & Destructor Documentation

openlsd.multiple.ophandler.common.LSDOpHandlerHttpIoHandler.LSDOpHandlerHttpIoHandler ( LSDPoolLSDConnection  poolLSDConnection  ) 

Construct one HTTP Service on pre defined port (set through XML configuration); if cannot be open, httpAcceptor will be null.

Parameters:
poolLSDConnection 


Member Function Documentation

void openlsd.multiple.ophandler.common.LSDOpHandlerHttpIoHandler.close ( boolean  wait  ) 

Close the HTTP Service

Parameters:
wait 

void openlsd.multiple.ophandler.common.LSDOpHandlerHttpIoHandler.messageSent ( IoSession  session,
Object  arg1 
) throws Exception

Parameters:
session 
arg1 (non-Javadoc)
See also:
org.apache.mina.common.IoHandlerAdapter.messageSent(org.apache.mina.common.IoSession, java.lang.Object)

void openlsd.multiple.ophandler.common.LSDOpHandlerHttpIoHandler.exceptionCaught ( IoSession  session,
Throwable  cause 
) throws Exception

Parameters:
session 
cause 
Exceptions:
Exception 

void openlsd.multiple.ophandler.common.LSDOpHandlerHttpIoHandler.writeResponse ( IoSession  session,
HttpRequest  req,
MutableHttpResponse  res 
) [private]

Parameters:
session 
req 
res 

void openlsd.multiple.ophandler.common.LSDOpHandlerHttpIoHandler.sessionIdle ( IoSession  session,
IdleStatus  status 
) throws Exception

Parameters:
session 
status 
Exceptions:
Exception 

void openlsd.multiple.ophandler.common.LSDOpHandlerHttpIoHandler.messageReceived ( IoSession  session,
Object  message 
) throws Exception

Parameters:
session 
message 
Exceptions:
Exception 

String openlsd.multiple.ophandler.common.LSDOpHandlerHttpIoHandler.getInfoLSDPoolConnection ( LSDPoolConnection  poolConnection,
boolean  csv 
) [private]

Get Info on the given LSDServerInstance

Parameters:
poolConnection 
csv 
Returns:
the String including info on LSDServerInstance

String openlsd.multiple.ophandler.common.LSDOpHandlerHttpIoHandler.getMenu (  )  [private]

Return the Menu

Returns:
the String including the menu


Member Data Documentation

SHUTDOWN COMMAND

INFO (Session statistics) COMMAND

CLEAN COMMAND

CSV OPTION

ORDER BASED URL

Port for HTTP service

Password for shutting down the OpHandler through the Web interface

SocketAcceptor for HTTP Service

OrderedThreadPoolExecutor for HTTP Service

LSDPoolLSDConnection from OpHandler

Set to True if in Shutdown Process


The documentation for this class was generated from the following file: