Commit Graph

4945 Commits

Author SHA1 Message Date
Tom Conkling 855b4f27d4 copy-paste typo fix
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5003 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-04-17 19:11:12 +00:00
Tom Conkling f0bf02796e ArrayUtil.findIf convenience function
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5002 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-04-17 19:04:18 +00:00
Michael Bayne f017673964 Disallow streaming of non-static inner classes to avoid the inevitable
freakoutery as we try to stream the instance's implicit reference to its
containing class.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5001 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-04-17 02:48:04 +00:00
Michael Bayne 784b087ed0 Stop our peer refresher interval when we are shut down.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5000 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-04-16 22:22:09 +00:00
Ray Greenwell 6736267388 Jamie has discovered that the MultiLoader can sometimes be gc'd before
calling the callback. Loaders are not supposed to do this, but that may
only be when loading over the network and not from a ByteArray.

We know that retaining a reference to the MultiLoader fixes it, but
that increases the burden on the users of this class. Let's try this
instead, I think it will work: just retain references to active MultiLoaders
in the class.

Jamie's going to test this, as well.

(Also: in foreach mode, free references to results after reporting them.)


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4999 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-04-15 21:08:25 +00:00
Ray Greenwell 9f51434a57 Bugfix: in foreach mode, we need to report back if a source is already complete.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4998 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-04-14 03:00:31 +00:00
Charlie Groves 1c4cfe501f Delay notifying the client about the under ass rug yanking until we're in finishResolved in case UserChangeListener.changeReported performs a long operation off the omgr thread and allows the client to respond before _clobj has actually been switched
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4997 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-04-11 21:04:48 +00:00
Nathan Curtis b82dbb416c Modify requestTell() to accept an optional localFeedback parameter, defaulting to
ChatCodes.PLACE_CHAT_TYPE that gets used for any feedback generated from the tell process.  This 
will allow chat systems that display tells in a custom way (tabs) to distinguish tell-related
feedback from other feedback.  


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4996 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-04-11 17:03:24 +00:00
Nathan Curtis 6b217c0b2b Sorry little buddy, you're not good enough.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4995 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-04-10 23:31:43 +00:00
Nathan Curtis 74cb0fa9b9 ExpiringSet, from com.threerings.msoy.chat.client.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4994 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-04-10 22:49:50 +00:00
Charlie Groves b65487f318 Cut the number of times a service class needs to be specified to two
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4993 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-04-10 01:18:32 +00:00
Tom Conkling 839d722abf whoops - this was performing an unstable sort, backwards
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4992 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-04-08 20:24:56 +00:00
Ray Greenwell 9ce195b99d Made the Comparator optional.
Match the coding style already present in file (use ii for loop counter..)


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4991 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-04-08 19:37:00 +00:00
Tom Conkling 7fd7a8dc5b Added ArrayUtil.stableSort
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4990 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-04-08 19:19:24 +00:00
Michael Bayne b690315196 It's a glorious new year.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4989 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-04-05 22:46:04 +00:00
Michael Bayne 4c5fc71417 Annotations for documenting methods and classes as "distributed object event
dispatch thread only", "blocking thread only" or "callable from any thread."

As the comment says, some day we'll look into enforcing these annotations with
some bytecode rewriting.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4988 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-04-05 22:06:59 +00:00
Ray Greenwell 6559b163ed This only need to be unique, not meaningful.
(And yes, code running in a security boundary cannot set aliases, thank god)
Network traffic--.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4987 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-04-01 02:02:34 +00:00
Ray Greenwell 766643c702 Tested and verified Dictionaries.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4986 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-04-01 01:50:23 +00:00
Michael Bayne 7853f2fb94 Log the _username instead of the _clobj which might go away.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4985 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-03-29 17:53:56 +00:00
Michael Bayne 964b68a0fa Beans, frank.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4984 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-03-28 22:22:34 +00:00
Ray Greenwell 5b29ca6a24 RandomUtil.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4983 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-03-28 21:02:07 +00:00
Charlie Groves c7126f07d5 The transition needs to happen in ConfigRegistry so it can reserialize the object in its new format, otherwise we're just writing the same String back out to the db
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4982 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-03-27 21:18:26 +00:00
Charlie Groves c50e78030c * Allow subclasses of ConfigRepository to create the ObjectInputStream used to
read in serialized config values.  
*  Use a transitioning flag in DatabaseConfigRegistry to indicate that it
   should immediately write out config values after reading them in.



git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4981 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-03-27 01:51:15 +00:00
Michael Bayne 640eb27564 Make leavePlace() properly NOOP if we're not in a place.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4980 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-03-27 00:58:32 +00:00
Dave Hoover 4d77995e06 Store off a reference to the interval that generates our server reports so that subclasses can play with it if they want.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4979 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-03-24 21:11:30 +00:00
Ray Greenwell 49b893d933 Good news, it appears that flash blocks things in another security domain
from screwing with our registered aliases. This might make points and
rectangles work.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4978 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-03-22 01:41:15 +00:00
Michael Bayne 474ba03a8e Allow clients other than peer clients to be ignored.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4977 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-03-21 00:47:43 +00:00
Ray Greenwell 933183a53a Revert.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4976 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-03-19 07:37:41 +00:00
Ray Greenwell d0a3fa4c8e Occam's razor: presumably getDefinitionByName() returns the same class
for the same name each time it's called. :)


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4975 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-03-19 07:30:33 +00:00
Ray Greenwell bb5c4c224c The 'constructor' property is not to be trusted.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4974 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-03-19 07:28:05 +00:00
Par Winzell 51bb4d8e92 I am tentatively meddling with Ray's code because pointer comparison on the class fails for objects that are instantiated... elsewhere. Different application domain? Testing on the full class name ought to be safe.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4973 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-03-19 07:25:36 +00:00
Ray Greenwell 76f77b9748 Support Dictionary, too.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4972 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-03-18 22:13:53 +00:00
Ray Greenwell 783ea0d166 - use isPlainObject()
- support Point and Rectangle.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4971 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-03-18 22:01:49 +00:00
Ray Greenwell 95e27a7943 Let's print a stack trace when there's an error in the completeCallback,
it could be a ways inside it and we want to help people debug.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4970 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-03-14 23:08:21 +00:00
Ray Greenwell bb23a5caf1 Two fixes:
- Added a mechanism for testing if something is already loaded after
generation. DataPacks load immediately if passed a ByteArray. Loaders will
always wait a frame, so I was going to change DataPack to follow that
behavior, but it's nice that it just works right after construction.
- If a singleton source was passed in and resulted in an error (or, now,
it can already be loaded as well) then it would incorrectly return
as the result the internal wrapper object for the single result.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4969 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-03-12 00:31:19 +00:00
Mike Thomas 6e0bd68148 Roll back the interrupt() yet again - 1) it didn't fix the problem we were trying to fix and 2) it was causing problems with logoff.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4968 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-03-10 17:20:03 +00:00
Mike Thomas 1076052701 Remove the temporary debug logging.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4967 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-03-08 01:34:42 +00:00
Ray Greenwell a5506cdbad Avoid putting an empty String at the end of the array in parseURLs().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4966 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-03-08 01:20:48 +00:00
Mike Thomas b097e46637 Need a default constructor visible to our descendants.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4965 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-03-08 00:35:07 +00:00
Mike Thomas 4fabfcf0f3 Resort to adding some temporary logging printouts to BlockingCommunicator to figure out what's keeping the reader thread from being shut down.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4964 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-03-07 23:53:19 +00:00
Ray Greenwell 7480630c3b Touched up the examples.
Added an example for the advanced case of loading classes at runtime.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4963 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-03-07 22:21:59 +00:00
Mike Thomas 0af0ce8469 Re-instate the interrupt() but setup some additional exception handling so we don't spew to the logs unnecessarily due to this.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4962 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-03-07 20:09:13 +00:00
Mike Thomas 69646f624b Roll this back - calling interrupt() in this way caused the other end's writer to get fairly upset.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4961 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-03-06 21:43:08 +00:00
Michael Bayne d153a06aa2 Reinstate the kick in the pants for the reader thread. Previously we relied on
the LogoffRequest being received by the server which resulted in the server
closing its end of the socket which resulted in the reader being woken up to
hear that its socket was closed and then it exited. We'll just have it exit
immediately. It's possible that messages in transit to the reader that would
have been read prior to full shutdown will now be dropped instead of delivered,
but the client has already requested to logoff, so they can't really care about
additional messages coming from the server.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4960 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-03-06 19:14:19 +00:00
Michael Bayne 8a745b30e0 Listen for SIGTERM as well and gracefully shutdown in that case.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4959 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-03-05 23:28:28 +00:00
Mike Thomas e8b5d41fb8 Split out the way we handle the preferred port so we can override that.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4958 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-03-05 19:09:36 +00:00
Ray Greenwell 8a35738654 Fixed asdoc bug. Boy it's annoying when this happens, asdoc just
gives "Error #1083" without telling you what happened or even which file.

Take note: you can't just invent "@" tags, asdoc freaks out if you use one
it doesn't understand.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4957 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-03-05 02:32:00 +00:00
Ray Greenwell e1ee1162f9 A bit of commenting touch-up.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4956 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-03-05 00:52:52 +00:00
Ray Greenwell aae7eb4e58 This isn't actually a valid asdoc tag.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4955 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-03-05 00:21:23 +00:00
Ray Greenwell a82ead698b Let's deprecate but not remove EmbeddedSwfLoader.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4954 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-03-05 00:20:05 +00:00