More progress on the invocation services.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@74 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2001-07-19 18:08:20 +00:00
parent 406d181d1a
commit f8ccff8f23
8 changed files with 157 additions and 20 deletions
@@ -1,5 +1,5 @@
//
// $Id: Client.java,v 1.9 2001/07/19 07:48:25 mdb Exp $
// $Id: Client.java,v 1.10 2001/07/19 18:08:20 mdb Exp $
package com.threerings.cocktail.cher.client;
@@ -254,6 +254,14 @@ public class Client
// create our invocation manager
_invmgr = new InvocationManager(this, data.invOid);
// we can't quite call initialization completed at this point
// because we need for the invocation manager to fully initialize
// (which requires a round trip to the server) before turning the
// client loose to do things like request invocation services
}
void invocationManagerReady ()
{
// let the client know that logon has now fully succeeded
notifyObservers(Client.CLIENT_DID_LOGON, null);
}
@@ -1,5 +1,5 @@
//
// $Id: InvocationDirector.java,v 1.2 2001/07/19 07:09:16 mdb Exp $
// $Id: InvocationDirector.java,v 1.3 2001/07/19 18:08:20 mdb Exp $
package com.threerings.cocktail.cher.client;
@@ -44,6 +44,7 @@ public class InvocationManager
*/
public InvocationManager (Client client, int imoid)
{
_client = client;
_omgr = client.getDObjectManager();
_imoid = imoid;
@@ -97,12 +98,17 @@ public class InvocationManager
public void objectAvailable (DObject object)
{
// nothing doing
// let the client know that we're ready to go now that we've got
// our subscription to the client object
_client.invocationManagerReady();
}
public void requestFailed (int oid, ObjectAccessException cause)
{
// nothing doing
// aiya! we were unable to subscribe to the client object. we're
// hosed, hosed, hosed
Log.warning("Invocation manager unable to subscribe to client " +
"object. All is wrong in the universe.");
}
/**
@@ -176,6 +182,7 @@ public class InvocationManager
}
}
protected Client _client;
protected DObjectManager _omgr;
protected int _imoid;
protected ClientObject _clobj;