input
Class DTN2Events.ParserHandler

java.lang.Object
  extended by input.DTN2Events.ParserHandler
Enclosing class:
DTN2Events

public class DTN2Events.ParserHandler
extends java.lang.Object

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


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)
           
 BundleTransferReceipt incomingBundle(java.lang.String location, 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 BundleTransferReceipt incomingBundle(java.lang.String location,
                                            CLAParser.BundleAttributes attributes)

connected

public void connected()

error

public boolean error(java.lang.String reason,
                     java.lang.Exception exception,
                     boolean fatal)

parseError

public boolean parseError(java.lang.String reason)