input
Class DTN2Events.ParserHandler
java.lang.Object
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 classes/interfaces inherited from interface fi.tkk.netlab.dtn.ecla.CLAInterface |
fi.tkk.netlab.dtn.ecla.CLAInterface.BundleTransferReceipt |
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 |
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 toeventsHandler
- Reference to the events handlerconsoleHost
- Hostname of the dtndconsolePort
- Console port of the dtnd
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