Michael Bayne
284e8ef6ed
Made addObserver into addClientObserver because that's how we do it
...
everywhere else. Same thing for removeObserver.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@981 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-02-09 20:45:23 +00:00
Michael Bayne
1bca84927f
Added support for DObject transactions which are collections of events
...
that are dispatched over the network at once and processed all at once.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@979 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-02-09 07:50:37 +00:00
Michael Bayne
c57ff60e69
Removed ability to run server in test mode. We don't need a whole server
...
when were unit testing.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@977 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-02-09 07:49:41 +00:00
Michael Bayne
1e36cb65d8
Need to prefix heterogenous set elements with their classname.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@964 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-02-08 05:14:22 +00:00
Michael Bayne
b4d5f7da24
Have to cope with heterogenous sets in toString().
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@963 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-02-08 04:44:32 +00:00
Michael Bayne
5e303799a2
Added a field marshaller for byte arrays.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@958 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-02-07 05:27:07 +00:00
Walter Korman
bc6f66f6cd
Added ObjectAction.toString().
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@953 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-02-07 00:24:36 +00:00
Michael Bayne
670f3a71c3
Fixed javadoc.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@947 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-02-06 22:47:28 +00:00
Michael Bayne
84891c9b91
Whoops, wasn't appending field data to our buffer.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@939 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-02-05 22:27:26 +00:00
Walter Korman
1cdefe7ae1
Added marshaller for booleans.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@929 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-02-05 09:35:59 +00:00
Michael Bayne
a83e512270
Modified DObject.toString() to use fieldsToString() so that all of its
...
derived classes need not do their own toString()ing.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@928 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-02-04 01:47:20 +00:00
Michael Bayne
5bb4e3435b
Provided a mechanism by which a DSet can be populated at construct time.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@927 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-02-04 01:34:59 +00:00
Michael Bayne
c6f72ce556
Log message edit.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@926 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-02-04 00:51:15 +00:00
Michael Bayne
25717d3cce
Modified distributed sets such that they can be heterogenous or
...
homogenous, and in the latter case, they simply conserve network bandwidth
by not transmitting the classname of serialized elements when transmitting
themselves or element added/updated events.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@925 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-02-04 00:50:12 +00:00
Walter Korman
5dc68306ac
Added a byte field marshaller.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@922 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-02-03 06:06:10 +00:00
Michael Bayne
404a56dead
Per Walter's suggestion: made all of the listener interfaces extend a base
...
listener interface so that an object that attempts to add itself as a
listener to a distributed object is required to implement at least one of
the listener interfaces.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@921 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-02-03 04:38:05 +00:00
Michael Bayne
d2ee77e08e
Use safeToString() when logging the object that caused a subscriber to
...
choke so that we don't choke if DObject.toString() chokes.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@919 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-02-02 09:53:00 +00:00
Michael Bayne
9d9872f606
Made ObjectAccessException a nestable exception; modified
...
objectAvailable() error dispatching to not incorrectly report a failure to
create an object.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@918 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-02-02 09:42:36 +00:00
Michael Bayne
c6d2529e78
It doesn't get much simpler than this: objects that desire to be
...
streamable and that don't have funky requirements can simply extend
SimpleStreamableObject and magically have their public fields streamed for
them as well as have a useful default implementation of toString(). My
tired fingers are thanking me already.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@917 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-02-02 08:48:03 +00:00
Michael Bayne
373436429d
Need to create a hash map for our marshaller cache.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@914 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-02-02 01:07:20 +00:00
Michael Bayne
b7913ceb0b
Moved generic marshalling code into presents.io from presents.dobj.io as
...
it is now general purpose.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@912 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-02-01 23:32:37 +00:00
Michael Bayne
ef9e0bc53f
Modified field marshalling code to work on any object rather than being
...
DObject specific (because it didn't need to be).
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@911 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-02-01 23:26:49 +00:00
Michael Bayne
d925c5d1b4
Cause transient fields to be ignored in the DObject marshalling process.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@910 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-02-01 22:35:06 +00:00
Michael Bayne
80c9550a57
Added some debugging, but commented it out.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@895 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-01-30 18:30:43 +00:00
Michael Bayne
61730287ca
Added code for marshalling arrays of streamables.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@891 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-01-23 18:01:19 +00:00
Michael Bayne
6a5e8cd82b
Added standard ACCESS_DENIED code.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@886 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-01-22 02:50:36 +00:00
Michael Bayne
e670b076e6
Made toString() extendable. Oh God, how I wish I had multiple inheritance
...
and could just fold in a Stringable class instead of rewriting the same
code thousands of times. Three cheers for code reuse!
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@766 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-12-13 05:32:28 +00:00
Michael Bayne
a0bdcb9627
Don't claim to have authed a connection unless we accepted the auth
...
request.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@736 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-12-04 07:32:10 +00:00
Michael Bayne
60f8cca7a5
Added a means by which to set the authenticator in the auth manager.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@735 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-12-04 01:48:51 +00:00
Michael Bayne
5d2f302218
Created RootDObjectManager interface for those entities that want to look
...
up objects directly by oid. They, of course, must be on the server if they
are doing this.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@728 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-12-04 01:01:54 +00:00
Michael Bayne
a308079d70
Utilities for streaming streamables.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@725 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-12-03 23:48:38 +00:00
Michael Bayne
16efe382bd
Augmenting the AuthResponseData with server stuff turned out to be a bad
...
idea because that class is shared between the client and the server, so
instead we provide a blank object reference in which the authenticator can
provide whatever information it wants to the client services.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@723 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-12-03 22:01:57 +00:00
Michael Bayne
a0ba41c31d
Provide a mechanism for the authenticator to pass information to the
...
client object by way of passing the auth response data up to the client
after the completion of the authentication phase. This allows information
loaded by an authenticator (like a user record) to make its way into the
real world.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@722 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-12-03 20:14:51 +00:00
Michael Bayne
f506a686f9
Added unregisterReceiver().
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@650 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-11-27 21:37:58 +00:00
Michael Bayne
cc21ad8679
Javadoc fixes and cleanups.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@623 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-11-18 04:27:56 +00:00
Michael Bayne
ff94bd7799
Made it possible to disable client and connection managers for testing.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@609 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-11-08 05:39:51 +00:00
Michael Bayne
d584566899
Removed bogus imports.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@606 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-11-08 02:59:30 +00:00
Michael Bayne
304e7bd4b4
Whoops. Missing an import.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@572 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-25 23:37:13 +00:00
Michael Bayne
cd458fa3aa
Moved the default server port into the client where it is accessible by
...
various entities rather than only server code.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@571 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-25 23:36:06 +00:00
Michael Bayne
57b2e93ac3
Modified DObjectManager.createObject() to not afford optional subscription
...
because subscription no longer means receiving events.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@537 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-24 00:36:40 +00:00
Michael Bayne
660fccceb4
Don't log when we're woken up to read data but there's none available.
...
We'll debug that probable Linux JVM bug later.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@536 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-24 00:35:37 +00:00
Michael Bayne
15ff048a27
Created mechanism for listeners to hear about object death.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@535 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-23 23:56:12 +00:00
Michael Bayne
690940db47
ElementUpdatedEvent wasn't registered.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@528 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-23 20:22:47 +00:00
Michael Bayne
85fec1b758
Coerce null strings into empty strings when marshalling.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@505 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-19 18:03:28 +00:00
Michael Bayne
33b76cd711
Added standard error code for internal server errors.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@504 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-19 18:03:06 +00:00
Michael Bayne
c14b396edf
Need to remove ourselves from the listener list as well as the subscriber
...
list now that we do both.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@492 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-18 18:41:29 +00:00
Michael Bayne
8dcdfb7e8a
Added loggedOn() which indicates whether or not we're logged on and
...
modified code not to try to logoff in logoff() unless we're actually
logged on.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@491 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-18 18:40:18 +00:00
Michael Bayne
26b7f1c6bb
Fixed bug with header length decoding.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@487 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-18 01:42:42 +00:00
Michael Bayne
cd39295574
Added field marshaller for int arrays.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@470 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-17 02:56:51 +00:00
Michael Bayne
f863620d39
Added a field marshaller for string array fields.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@466 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-17 02:48:11 +00:00