Bureaucracy

* Fixed signature of Receiver methods
* Implemented create/destroy mechanism and bootstrap request in BureauDirector
* Added BureauContext class to expose bureau information on top of usual 
  presents stuff
* Added BureauContext implementation in BureauClient
* Added code to kick off the director when the client logs on
* Added credentials for a bureau logon, which is just a token passed to 
  command line launcher
* Added concept of bureau types to distinguish between executable and command 
  line arguments; includes interface BureauRegistry.Launcher
* Implemented backend for the registry


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5027 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Jamie Doornbos
2008-04-28 18:34:57 +00:00
parent b10cc3643d
commit 74dac11f97
11 changed files with 724 additions and 73 deletions
@@ -23,7 +23,6 @@ package com.threerings.bureau.client;
import com.threerings.bureau.client.BureauReceiver;
import com.threerings.presents.client.InvocationDecoder;
import com.threerings.presents.data.ClientObject;
/**
* Dispatches calls to a {@link BureauReceiver} instance.
@@ -62,13 +61,13 @@ public class BureauDecoder extends InvocationDecoder
switch (methodId) {
case CREATE_AGENT:
((BureauReceiver)receiver).createAgent(
(ClientObject)args[0], ((Integer)args[1]).intValue()
((Integer)args[0]).intValue()
);
return;
case DESTROY_AGENT:
((BureauReceiver)receiver).destroyAgent(
(ClientObject)args[0], ((Integer)args[1]).intValue()
((Integer)args[0]).intValue()
);
return;