Commit Graph

586 Commits

Author SHA1 Message Date
Par Winzell 628e03beed As the first application of the new invokeNodeRequest, rip all the chat collection stuff out of CrowdPeerManager and into the chat package where it belongs.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6142 542714f4-19e9-0310-aa3c-eee0fc999fb1
2010-09-07 19:10:00 +00:00
Ray Greenwell 73900f891d Oh dear, fix already used variable name.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6099 542714f4-19e9-0310-aa3c-eee0fc999fb1
2010-07-19 18:08:54 +00:00
Ray Greenwell 353fdcd7cf I'm trying to excise uses of com.samskivert.util.Collections, which is
full of some weird old stuff, much of it replaced by using Guava or newer
1.5 features.

Instead of using a "sorted iterator", slap the elements in a TreeSet.
Insertions are O(log n), and sorting an ArrayList would be O(n log n),
so it should be pretty much the same (TreeSet probably uses more memory).

Comments welcome.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6098 542714f4-19e9-0310-aa3c-eee0fc999fb1
2010-07-19 17:53:59 +00:00
Ray Greenwell 6bff220be7 Prefer java standard libraries, then guava, then samskivert.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6095 542714f4-19e9-0310-aa3c-eee0fc999fb1
2010-07-14 19:28:14 +00:00
Dave Hoover cdebcfa71d StringUtil.replace is deprecated
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6094 542714f4-19e9-0310-aa3c-eee0fc999fb1
2010-07-13 21:45:39 +00:00
Dave Hoover 3340e270ae Whitespace
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6093 542714f4-19e9-0310-aa3c-eee0fc999fb1
2010-07-13 21:45:38 +00:00
Par Winzell 6971ce7d4d There's no reason to demand an IntSet here.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6086 542714f4-19e9-0310-aa3c-eee0fc999fb1
2010-06-22 15:19:59 +00:00
Dave Hoover c54c82da55 Slay some cyclopian variables.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6082 542714f4-19e9-0310-aa3c-eee0fc999fb1
2010-06-15 17:26:29 +00:00
Ray Greenwell 528a9d1f66 @Generated, going stag (without a date).
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6052 542714f4-19e9-0310-aa3c-eee0fc999fb1
2010-04-07 16:12:43 +00:00
Ray Greenwell 43e556fb59 @Generated annotation.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6050 542714f4-19e9-0310-aa3c-eee0fc999fb1
2010-04-07 05:33:54 +00:00
Dave Hoover 83f71c606e @Override gets the point across
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6038 542714f4-19e9-0310-aa3c-eee0fc999fb1
2010-02-10 20:32:51 +00:00
Dave Hoover 3414612462 Nix unused imports
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6037 542714f4-19e9-0310-aa3c-eee0fc999fb1
2010-02-10 20:32:49 +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
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
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
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
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
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
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
Michael Bayne ecec43418b Fluency--.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5977 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-10-04 23:26:09 +00:00
Charlie Groves 3c159a6497 Widened
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5964 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-09-22 00:05:18 +00:00
Michael Bayne 7a95df0c26 Added import for javadoc.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5933 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-08-25 22:57:34 +00:00
Michael Bayne c0c68f98d3 Added RootDObjectManager.newInterval() for creating intervals that are
automatically canceled when the omgr is shutdown (they actually cancel
themselves if they fire after the omgr has been shutdown, which stock intervals
also do, but these guys do so quietly because we know they mean to work that
way).

Made use of that new method and the fluent schedule methods in various places.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5880 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-07-20 22:43:00 +00:00
Michael Bayne 231edfa66e applyToNodes() is superfluous now that we have getNodeObjects().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5869 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-07-13 00:59:32 +00:00
Charlie Groves f80e1f07d8 Break out command prefix checking
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5842 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-06-30 22:39:31 +00:00
Charlie Groves 4d3f79d732 If we hit an exact match in looking for command handlers, return only it and ignore any other
commands that are prefixes.

Do we have something like ImmutableMap.of(key, value) for regular Maps?  It would've been nice here.



git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5841 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-06-30 22:15:20 +00:00
Dave Hoover 0df7b9681a Instead of hiding a default for that switch up at comic,
let's name all the legal values for that enum, yell in
the one wacky case that shouldn't be possible, and let the
compiler yell at us if we ever add more things to CurseFilter.Mode
and forget them in that switch


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5837 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-06-22 23:46:06 +00:00
Dave Hoover 7db51dafdb Mark overrides
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5831 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-06-22 17:36:32 +00:00
Michael Bayne 6e9077780c Added/updated source headers.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5829 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-06-20 21:09:34 +00:00
Michael Bayne a1aa2d77ae Revamping/cleanup of how we handle authentication usernames as well as chained
authenticators and chained session factories. We can share a lot more code this
way and the implicit requirement that the default authenticator/factory had to
be configured before anyone else configured a chanied author/factory is gone.

The other big change is that Credentials doesn't require a username
(UsernamePasswordCreds inherits that username so most derived classes don't
notice any difference). Instead we require that a canonical authentication
username be determined and configured in AuthingConnection during the
authentication process. This canonical username is then used to resolve the
client session and map everything in the client manager.

This is pretty much exactly what was going on before except that we were doing
it all in an ad hoc way by jamming a new name into Credentials during the
authentication process and also doing jiggery pokery in
PresentsSession.assignStartingUsername. That all goes away and/or becomes
cleaner and more explicit.

This is going to impact some Yohoho jiggery pokery, which I will shortly commit
a patch for, but we're going to need to test it. Omelets, eggs, etc.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5828 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-06-20 00:56:01 +00:00
Charlie Groves 7d125bec73 KeepNoHistory is implemented by data objects, so it needs to live in data
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5827 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-06-17 01:33:15 +00:00
Charlie Groves 501e62616c Add a marker interface that Names can implement to indicate to SpeakUtil that they don't need chat history
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5826 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-06-17 00:07:24 +00:00
Michael Bayne 3a2fe8329c @Singleton annotations are not inherited (unfortunately), so it does not make
sense to annotate an abstract class as a @Singleton. Guice 2.0 disallows it.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5824 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-06-15 22:17:56 +00:00
Dave Hoover 647897cd6d This may cause small breakage for folks extending ChatDirector, but
let's make these things that just add & remove from our collections of
things return the values from their collections.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5823 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-06-10 21:17:51 +00:00
Dave Hoover d85244e4e9 s/validator/filter/ in an appropriate place, and some other comment widening
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5822 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-06-10 21:01:33 +00:00
Dave Hoover c016fab8e8 Break a few parts out for use in subclasses
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5821 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-06-09 21:00:21 +00:00
Michael Bayne 52795a8664 Broke out speak handler creation so that we can customize it.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5812 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-06-02 20:59:58 +00:00
Michael Bayne 3f19fcacf2 Moved Lifecycle to samskivert (my initial desire to do this came from a
non-work project). I promise to stop fooling around now.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5805 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-05-27 19:16:49 +00:00
Michael Bayne e87c86dc2c Let's make the Lifecycle a bit more abstract and decouple it from all the
server business. I'd move the whole kit and kaboodle to samskivert but that
would mean moving the DependencyGraph as well...


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5804 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-05-27 19:09:47 +00:00
Michael Bayne 0a20b36c8e Out with ShutdownManager, in with LifecycleManager which handles both
initialization and shutdown. This will obviate the need for a lot of manual
wiring up. ShutdownManager still works and passes through to LifecycleManager,
but switching to the new deal is encouraged.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5802 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-05-27 18:32:45 +00:00
Dave Hoover e13aca6570 Prune trailing whitespace & foreachize loops.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5799 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-05-23 01:56:35 +00:00
Dave Hoover b222eed2fd A healthy dash of google-collections
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5798 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-05-23 01:04:08 +00:00
Dave Hoover e740f387cc Some widening/foreaching I had lying around.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5780 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-05-12 23:25:07 +00:00