cleanup of things moved to GarlicMessageReceiver long ago

This commit is contained in:
zzz
2009-08-30 16:21:38 +00:00
parent 9a95122c7c
commit 15f0cda41f

View File

@ -31,14 +31,18 @@ import net.i2p.util.Log;
public class HandleGarlicMessageJob extends JobImpl implements GarlicMessageReceiver.CloveReceiver { public class HandleGarlicMessageJob extends JobImpl implements GarlicMessageReceiver.CloveReceiver {
private Log _log; private Log _log;
private GarlicMessage _message; private GarlicMessage _message;
private RouterIdentity _from; //private RouterIdentity _from;
private Hash _fromHash; //private Hash _fromHash;
private Map _cloves; // map of clove Id --> Expiration of cloves we've already seen //private Map _cloves; // map of clove Id --> Expiration of cloves we've already seen
//private MessageHandler _handler; //private MessageHandler _handler;
private GarlicMessageParser _parser; //private GarlicMessageParser _parser;
private final static int FORWARD_PRIORITY = 50; private final static int FORWARD_PRIORITY = 50;
/**
* @param from ignored
* @param fromHash ignored
*/
public HandleGarlicMessageJob(RouterContext context, GarlicMessage msg, RouterIdentity from, Hash fromHash) { public HandleGarlicMessageJob(RouterContext context, GarlicMessage msg, RouterIdentity from, Hash fromHash) {
super(context); super(context);
_log = context.logManager().getLog(HandleGarlicMessageJob.class); _log = context.logManager().getLog(HandleGarlicMessageJob.class);
@ -46,11 +50,11 @@ public class HandleGarlicMessageJob extends JobImpl implements GarlicMessageRece
if (_log.shouldLog(Log.DEBUG)) if (_log.shouldLog(Log.DEBUG))
_log.debug("New handle garlicMessageJob called w/ message from [" + from + "]", new Exception("Debug")); _log.debug("New handle garlicMessageJob called w/ message from [" + from + "]", new Exception("Debug"));
_message = msg; _message = msg;
_from = from; //_from = from;
_fromHash = fromHash; //_fromHash = fromHash;
_cloves = new HashMap(); //_cloves = new HashMap();
//_handler = new MessageHandler(context); //_handler = new MessageHandler(context);
_parser = new GarlicMessageParser(context); //_parser = new GarlicMessageParser(context);
} }
public String getName() { return "Handle Inbound Garlic Message"; } public String getName() { return "Handle Inbound Garlic Message"; }