openlsd.network.server.LSDMsgInfoHandler Class Reference

Inheritance diagram for openlsd.network.server.LSDMsgInfoHandler:

Inheritance graph
[legend]
Collaboration diagram for openlsd.network.server.LSDMsgInfoHandler:

Collaboration graph
[legend]

List of all members.


Detailed Description

Handler for Info Message

Author:
Frederic Bregier LGPL

Public Member Functions

String getSessionInfo ()
void handleMessage (IoSession arg0, LSDMsgInfo arg1) throws Exception
void exceptionCaught (IoSession session, Throwable arg1) throws Exception

Private Member Functions

void messageReceived (IoSession session, LSDMsgInfo arg1) throws Exception
String getAExist (String triple)
String getAExistMD5 (String triple)

Member Function Documentation

void openlsd.network.server.LSDMsgInfoHandler.messageReceived ( IoSession  session,
LSDMsgInfo  arg1 
) throws Exception [private]

Handler for SIZE, EXIST, COPY commands.

Parameters:
session the associated session
arg1 the Info message
Exceptions:
Exception 

String openlsd.network.server.LSDMsgInfoHandler.getSessionInfo (  ) 

Get the string of sessions and their status

Returns:
the string of (name,remoteAddress,CreationTimeMs,LastReadTimeMs,LastWriteTimeMs, NbReadMsg,NbWriteMsg,isIdle,isConnected,isClosing,Command[,Status,Running,isClosed, unique,legacy,storage,document] if Command != LSDConstants.LSD_UNAVAILABLE) First 2 data are previous free memory -> next free memory (after gc)

String openlsd.network.server.LSDMsgInfoHandler.getAExist ( String  triple  )  [private]

Get the string of non existing files from triple (lid,sid,did)

Parameters:
triple String containing series of "lid sid did" separated by blank
Returns:
the string of (lid,sid,did) that do not exist in LSD

String openlsd.network.server.LSDMsgInfoHandler.getAExistMD5 ( String  triple  )  [private]

Get the string of non existing files from triple (lid,sid,did) + MD5

Parameters:
triple String containing series of "lid sid did" separated by blank
Returns:
the string of (lid,sid,did) that do not exist in LSD

void openlsd.network.server.LSDMsgInfoHandler.handleMessage ( IoSession  arg0,
LSDMsgInfo  arg1 
) throws Exception

Interface for Receive only message

Parameters:
arg0 
arg1 
Exceptions:
Exception 
See also:
org.apache.mina.handler.demux.MessageHandler.handleMessage(org.apache.mina.common.IoSession, java.lang.Object)

void openlsd.network.server.LSDMsgInfoHandler.exceptionCaught ( IoSession  session,
Throwable  arg1 
) throws Exception

Close the session and, if there is an attribute, release the lock of the attribute for all blocks.

Parameters:
session 
arg1 
Exceptions:
Exception 
See also:
org.apache.mina.common.IoHandlerAdapter.exceptionCaught(org.apache.mina.common.IoSession, java.lang.Throwable)


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