Hmm I think this does the right thing tracking the lask 10K invocation
services that registered (ignoring unregisters) but I can't get it to cough up the problem on my machine, so it's a little hard to test. If you fine cvs readers want to take a peek that would be great. Hurray for debug code. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2836 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,10 +1,12 @@
|
|||||||
//
|
//
|
||||||
// $Id: InvocationManager.java,v 1.15 2002/10/27 22:24:59 mdb Exp $
|
// $Id: InvocationManager.java,v 1.16 2003/10/26 02:33:43 eric Exp $
|
||||||
|
|
||||||
package com.threerings.presents.server;
|
package com.threerings.presents.server;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
|
||||||
import com.samskivert.util.HashIntMap;
|
import com.samskivert.util.HashIntMap;
|
||||||
|
import com.samskivert.util.LRUHashMap;
|
||||||
import com.samskivert.util.StringUtil;
|
import com.samskivert.util.StringUtil;
|
||||||
|
|
||||||
import com.threerings.io.Streamable;
|
import com.threerings.io.Streamable;
|
||||||
@@ -108,7 +110,9 @@ public class InvocationManager
|
|||||||
bootlist.add(marsh);
|
bootlist.add(marsh);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Log.info("Registered service [marsh=" + marsh + "].");
|
_recentRegServices.put(new Integer(invCode), marsh);
|
||||||
|
|
||||||
|
// Log.info("Registered service [marsh=" + marsh + "].");
|
||||||
return marsh;
|
return marsh;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -190,6 +194,8 @@ public class InvocationManager
|
|||||||
"no registered dispatcher [code=" + invCode +
|
"no registered dispatcher [code=" + invCode +
|
||||||
", methId=" + methodId +
|
", methId=" + methodId +
|
||||||
", args=" + StringUtil.toString(args) + "].");
|
", args=" + StringUtil.toString(args) + "].");
|
||||||
|
Log.warning("Marsheller for unregistered dispatcher [march=" +
|
||||||
|
_recentRegServices.get(new Integer(invCode)) + "].");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -247,6 +253,10 @@ public class InvocationManager
|
|||||||
return _invCode++;
|
return _invCode++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// debugging action...
|
||||||
|
protected static final LRUHashMap _recentRegServices =
|
||||||
|
new LRUHashMap(10000);
|
||||||
|
|
||||||
/** The distributed object manager with which we're working. */
|
/** The distributed object manager with which we're working. */
|
||||||
protected RootDObjectManager _omgr;
|
protected RootDObjectManager _omgr;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user