input
Class DTN2Events.ParserHandler
java.lang.Object
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.
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 |
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 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)