dsnserver
Class CmdParserDSNID

java.lang.Object
  extended by dsnserver.CmdParserDSNID
All Implemented Interfaces:
CmdParser

public class CmdParserDSNID
extends java.lang.Object
implements CmdParser

It is for parsing the ID messages which are sent back due to a ping request. It is used to update the dsninfo table which shows all DSNnode which was seen since the DSNServer has started and to detect reoobts of the nodes

Author:
kaltt

Constructor Summary
CmdParserDSNID()
           
 
Method Summary
 void parseLine(java.lang.String line)
          It is responsible for the lines which start with ":DP".
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CmdParserDSNID

public CmdParserDSNID()
Method Detail

parseLine

public void parseLine(java.lang.String line)
It is responsible for the lines which start with ":DP". It parses the DSNID an write it to the DB if this DSNID doesn't already exist, otherwise it will update the existing row with the new time. Additionaly it detect reboots of the nodes. If a reboot was detected it will write a log message to the log table.

Specified by:
parseLine in interface CmdParser