input
Class DTN2Events.ParserHandler

java.lang.Object
  extended by input.DTN2Events.ParserHandler
All Implemented Interfaces:
fi.tkk.netlab.dtn.ecla.CLAInterface
Enclosing class:
DTN2Events

public class DTN2Events.ParserHandler
extends java.lang.Object
implements fi.tkk.netlab.dtn.ecla.CLAInterface

Inner class that implements the CLA interface for receiving bundles from dtnd.

Author:
teemuk

Nested Class Summary
 
Nested classes/interfaces inherited from interface fi.tkk.netlab.dtn.ecla.CLAInterface
fi.tkk.netlab.dtn.ecla.CLAInterface.BundleTransferReceipt
 
Constructor Summary
DTN2Events.ParserHandler(int hostID, DTN2Events eventsHandler, java.lang.String consoleHost, int consolePort)
          Creates a new parser handler.
 
Method Summary
 void connected()
           
 boolean error(java.lang.String reason, java.lang.Exception exception, boolean fatal)
           
 fi.tkk.netlab.dtn.ecla.CLAInterface.BundleTransferReceipt incomingBundle(java.lang.String location, fi.tkk.netlab.dtn.ecla.CLAParser.BundleAttributes attributes)
           
 boolean parseError(java.lang.String reason)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DTN2Events.ParserHandler

public DTN2Events.ParserHandler(int hostID,
                                DTN2Events eventsHandler,
                                java.lang.String consoleHost,
                                int consolePort)
Creates a new parser handler.

Parameters:
hostID - ID of the host that this parser corresponds to
eventsHandler - Reference to the events handler
consoleHost - Hostname of the dtnd
consolePort - Console port of the dtnd
Method Detail

incomingBundle

public fi.tkk.netlab.dtn.ecla.CLAInterface.BundleTransferReceipt incomingBundle(java.lang.String location,
                                                                                fi.tkk.netlab.dtn.ecla.CLAParser.BundleAttributes attributes)
Specified by:
incomingBundle in interface fi.tkk.netlab.dtn.ecla.CLAInterface

connected

public void connected()
Specified by:
connected in interface fi.tkk.netlab.dtn.ecla.CLAInterface

error

public boolean error(java.lang.String reason,
                     java.lang.Exception exception,
                     boolean fatal)
Specified by:
error in interface fi.tkk.netlab.dtn.ecla.CLAInterface

parseError

public boolean parseError(java.lang.String reason)
Specified by:
parseError in interface fi.tkk.netlab.dtn.ecla.CLAInterface