There are zillions of invocation dispatchers registered with a multitude
of codes. Currently the unit dump that is done once every 15 minutes is chock-full of one-off units. Let us report the short class name of the dispatcher, rather than the code with which an instance is registered. Also: Thou shalt always iterate over the entrySet of a Map if thou planneth to utilize both the key and the value. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3694 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -151,6 +151,19 @@ public class InvocationManager
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the class that is being used to dispatch the specified
|
||||
* invocation code, for informational purposes.
|
||||
*
|
||||
* @return the Class, or null if no dispatcher is registered with
|
||||
* the specified code.
|
||||
*/
|
||||
public Class getDispatcherClass (int invCode)
|
||||
{
|
||||
Object dispatcher = _dispatchers.get(invCode);
|
||||
return (dispatcher == null) ? null : dispatcher.getClass();
|
||||
}
|
||||
|
||||
public void objectAvailable (DObject object)
|
||||
{
|
||||
// this must be our invocation object
|
||||
|
||||
Reference in New Issue
Block a user