Commit Graph

5964 Commits

Author SHA1 Message Date
Michael Bayne 0b90f21fe3 No need for this null check. We already dereferenced _client earlier to obtain
our connection id.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6035 542714f4-19e9-0310-aa3c-eee0fc999fb1
2010-02-09 19:55:22 +00:00
Michael Bayne c7ac36ac51 This is dubious. We define an _omgr that shadows super._omgr, assign it in our
constructor and then never use it. This is almost a noop, except that
ClientDObjectMgr registers and starts a flusher interval that will never be
shutdown. Since ServerCommunicator lives for the lifetime of the server, this
has not caused problems.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6034 542714f4-19e9-0310-aa3c-eee0fc999fb1
2010-02-09 19:54:15 +00:00
Michael Bayne f9524a1a9e PeerManager already injects an InvocationManager.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6033 542714f4-19e9-0310-aa3c-eee0fc999fb1
2010-02-09 19:51:44 +00:00
Dave Hoover ca3d96920a Generics
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6032 542714f4-19e9-0310-aa3c-eee0fc999fb1
2010-02-04 23:06:14 +00:00
Mike Thomas 493352c933 A little explanatory commenting.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6031 542714f4-19e9-0310-aa3c-eee0fc999fb1
2010-02-04 22:30:58 +00:00
Mike Thomas e206d26515 I've broken out how the FieldEditors access their data into a separate Accessor plugin. This way, we can replace the default DObjectAccessor with (for example) an accessor that deals with multiple DObjects simultaneously.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6030 542714f4-19e9-0310-aa3c-eee0fc999fb1
2010-02-04 22:22:49 +00:00
Ray Greenwell c326538c07 Regenerated: DSet's just clone() now.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6029 542714f4-19e9-0310-aa3c-eee0fc999fb1
2010-02-04 21:49:00 +00:00
Ray Greenwell 961fa75665 DSet.clone() has been modernized for a while now, rendering typedClone()
pointless. Let's deprecate it and auto-generate DObjects that just use clone().


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6028 542714f4-19e9-0310-aa3c-eee0fc999fb1
2010-02-04 21:48:37 +00:00
Ray Greenwell 3496da8b28 Cruft removal.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6027 542714f4-19e9-0310-aa3c-eee0fc999fb1
2010-02-04 21:47:21 +00:00
Dave Hoover 38782be051 Publicize getSuffix.
Down in yohoho, I've hit a case where I need to explicitly look up
a pluralized key of my very own.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6026 542714f4-19e9-0310-aa3c-eee0fc999fb1
2010-02-03 01:33:29 +00:00
Dave Hoover 49de1913d9 Whitespace
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6025 542714f4-19e9-0310-aa3c-eee0fc999fb1
2010-02-03 01:06:50 +00:00
Charlie Groves 1420b06d3b Clear the ThreadLocal after finishing with a method to keep from hanging onto the Stack and thereby
the Stack's classloader from that thread



git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6024 542714f4-19e9-0310-aa3c-eee0fc999fb1
2010-01-28 23:12:27 +00:00
Andrzej Kapolka d8b59b64c9 Specify the last chat mode so that we can define new ones without
fear of overlap.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6023 542714f4-19e9-0310-aa3c-eee0fc999fb1
2010-01-28 21:10:33 +00:00
Charlie Groves a996fe44a6 Turns out Double.MIN_VALUE is a completely different thing than Integer.MIN_VALUE
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6022 542714f4-19e9-0310-aa3c-eee0fc999fb1
2010-01-26 22:47:20 +00:00
Andrzej Kapolka df356599fc Don't complain if we didn't init our PeerManager; we don't do that if
we're not running in a peered environment.  Technically it might be
better to add the PeerManager to the lifecycle in init, but I don't
want to screw with the shutdown order, and this is the lowest-impact
solution.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6021 542714f4-19e9-0310-aa3c-eee0fc999fb1
2010-01-26 03:10:53 +00:00
Charlie Groves be61ed2f50 Record min and max samples as well
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6020 542714f4-19e9-0310-aa3c-eee0fc999fb1
2010-01-25 00:07:29 +00:00
Charlie Groves c86c71d2f9 Creator is now just Function
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6019 542714f4-19e9-0310-aa3c-eee0fc999fb1
2010-01-25 00:05:10 +00:00
Charlie Groves 9c92618773 Break the stat collection out from MethodProfiler, and use a calculating map from MapMaker to keep
from needing to synchronize around profile access.



git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6018 542714f4-19e9-0310-aa3c-eee0fc999fb1
2010-01-22 03:53:25 +00:00
Charlie Groves d86971592a Use the rolling variance calculation from http://en.wikipedia.org/wiki/Algorithms_for_calculating_variance#On-line_algorithm as whatever one is in here currently was getting out of whack in biteme
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6017 542714f4-19e9-0310-aa3c-eee0fc999fb1
2010-01-22 02:46:06 +00:00
Dave Hoover 1926012bc5 Remove now spurious casts
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6016 542714f4-19e9-0310-aa3c-eee0fc999fb1
2010-01-13 19:19:15 +00:00
Ray Greenwell c4d132b232 clone() modernization.
Apologies for the redundant cast warnings this is sure to introduce.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6015 542714f4-19e9-0310-aa3c-eee0fc999fb1
2010-01-13 18:19:48 +00:00
Ray Greenwell 3954ec5153 Updated to call ObjectInputStream.readObject() and readField() the new way.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6014 542714f4-19e9-0310-aa3c-eee0fc999fb1
2010-01-13 00:14:46 +00:00
Ray Greenwell 4c009f7a5f Simplify this, which was complexified so that it could avoid logging
when posted to a shutdown queue. There's a method we can override for that now.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6013 542714f4-19e9-0310-aa3c-eee0fc999fb1
2010-01-06 20:18:11 +00:00
Dave Hoover e571cd9e70 I swear; sometime before 2011 I'll be done stumbling across ways my
copyright updating missed things


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6012 542714f4-19e9-0310-aa3c-eee0fc999fb1
2010-01-06 01:09:57 +00:00
Ray Greenwell 29d99f655b Moved to samskivert.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6011 542714f4-19e9-0310-aa3c-eee0fc999fb1
2010-01-05 18:54:18 +00:00
Ray Greenwell 9a5a43341f Ditch these. They are a debugging tool that is rather primitive
and not necessarily even useful. I have found that using finalizers
seems to change how things get collected, even without doing
any funny tricks. Besides, we can use good modern profilers nowadays.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6010 542714f4-19e9-0310-aa3c-eee0fc999fb1
2010-01-04 23:19:17 +00:00
Nathan Curtis 0a98e25304 Add a utility class for creating easy mappings from Charlie. Bumping this up from BiteMe because
I'm also bumping BiteMe's Kontagent implementation into a more accessible place, and it relies on
this class.  Also, it can be pretty handy.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6009 542714f4-19e9-0310-aa3c-eee0fc999fb1
2010-01-04 22:23:56 +00:00
Dave Hoover fdf51a634a Welcome to the future.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6008 542714f4-19e9-0310-aa3c-eee0fc999fb1
2010-01-04 21:47:46 +00:00
Charlie Groves 67e88e2df5 Fuck off with that inject.internal shit
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6007 542714f4-19e9-0310-aa3c-eee0fc999fb1
2010-01-04 21:27:53 +00:00
Charlie Groves 2ba4d6a0d0 Wait to check if an interdependent invoker has posted back to the presents invoker until all the
interdependents have indicated they're blocking to check.  Otherwise the unit running before the
last BlockingUnit can post to the presents invoker and those newly posted units will be skipped.



git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6006 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-12-29 07:44:09 +00:00
Mike Thomas cb5aac620c It looks very much to me like we were able to occasionally sneak by the checks and shutdown the omgr too early in the following condition:
- PresentsInvoker decides it's empty
- It waits on other dependencies
- During the wait, something (probably from one of the other dependencies) posts to the PresentsInvoker
- We loop back around, the dependencies are empty
- We end early, with the posted bit still to be done...

So... after waiting, do a quick check for emptyness and if not satisfied, start the whole dern cycle over.



git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6005 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-12-23 19:58:34 +00:00
Dave Hoover 6ab0c7c95e As Charlie points out, that makes more sense being abstract. Shame on me for copying
NamedSetAdapter on autopilot; there you have multiple things that you might not want
to bother with, but here you damned well BETTER implement that one method yourself.

Also, while I'm at it, make that protected since I really doubt you're going to find
yourself sitting on top of an EntryAddedEvent that you're REALLY SURE is the right
one & want to pass it in to one of these by hand. And if you do, suck it up and let
the string compare burn the couple extra cycles to make sure. (I feel like making
the same change to the other Named* things here real quick, but I should really 
double check that I don't break anybody's stuff/change anything I see using it that
would now be making the named versions more visible for now good reason)


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6004 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-12-15 23:56:39 +00:00
Dave Hoover 9269d5b617 Much like NamedSetAdapter and NamedAttributeListener, I'd like to conveniently
listen for ElementUpdatedEvents on specific bits on dobjs.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6003 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-12-15 23:38:06 +00:00
Ray Greenwell cd88ba7634 All Executors, all the time.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6002 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-12-08 19:58:55 +00:00
Ray Greenwell fc77b1bb0b Prefer Executor over RunQueue...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6001 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-12-08 19:05:06 +00:00
Ray Greenwell f546167ca7 RootDObjectManager (PresentsDObjectMgr) implements Executor.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6000 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-12-07 21:26:44 +00:00
Jamie Doornbos 72ce4370af Fixed incorrect import. Luckily this suddenly started not compiling for me locally. But, bizarrely, it has been working on the build machine and at runtime since 11/09.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5999 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-11-30 17:24:45 +00:00
Andrzej Kapolka ded9f02350 This is not that interesting.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5998 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-11-13 20:54:20 +00:00
Dave Hoover f3e5682f8c Sometimes a short is still excessively long.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5997 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-11-12 21:38:10 +00:00
Dave Hoover b65bfae2e3 recordToChatHistory(UserMessage, Name...) went away.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5996 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-11-10 18:49:13 +00:00
Dave Hoover 51dc6e65d7 Make build in 1.5
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5995 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-11-10 03:57:38 +00:00
Jamie Doornbos c71c2379fc Oops, missed the boilerplate stuff for invocation service transmissable objecthood upon final multi-node testing in msoy.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5994 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-11-10 01:47:35 +00:00
Jamie Doornbos fd7b3ae383 Method to poll all peers for chat history and asynchronously return the result.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5993 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-11-10 01:13:58 +00:00
Jamie Doornbos 90a21319f1 Expose the chat history between crowd peers.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5992 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-11-10 00:34:41 +00:00
Jamie Doornbos 5e6cf46926 Backtrack a bit for recording channel speaks to the history. Instead of weighing down UserMessage with extra stuff (there is a lot of infrastructure that seems intent on avoiding this), record the value only in the server's history by wrapping messages in a new value class.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5991 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-11-10 00:05:56 +00:00
Jamie Doornbos 09c7229fa6 Add channel-based communications to the chat history logs as well. This groud work for msoy issue 286, which has probably been around since the channel system was added.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5990 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-11-09 20:31:46 +00:00
Ray Greenwell 6c65caeb1b readField() also gets an untyped return type.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5989 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-11-06 23:09:26 +00:00
Andrzej Kapolka c88ca10d26 Provide a means of adjusting the select loop time.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5988 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-11-06 22:00:30 +00:00
Ray Greenwell 00c4777460 Example text.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5987 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-11-06 21:50:21 +00:00
Ray Greenwell d82a926ca1 Add an example to the docs.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5986 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-11-06 21:18:43 +00:00