Commit Graph

4609 Commits

Author SHA1 Message Date
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
Michael Bayne de3e23baac The JVM's heap status at server startup is not hugely useful.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5836 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-06-22 22:26:13 +00:00
Michael Bayne 2c2e28f5ed Move our EHCache peer coordinator down here where other projects can use it.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5835 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-06-22 22:10:34 +00:00
Michael Bayne fcda0f3156 Added internal hostname reporting, documented other PeerNode methods.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5834 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-06-22 22:05:06 +00:00
Michael Bayne 55f66f01da Use AuthException.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5833 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-06-22 19:05:51 +00:00
Michael Bayne dcc04247ab Provide AuthException to simplify auth failure handling for Authenticator
implementations.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5832 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-06-22 18:52:17 +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
Jamie Doornbos a08e21e840 Removed unused code
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5830 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-06-20 21:40:12 +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
Dave Hoover 09b965dae5 This may no longer be one of those since we can scroll the tabs on our
config editor


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5825 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-06-16 22:13:45 +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
Dave Hoover 4d01f18906 We've got enough of these in yohoho now that with some
text settings, you get two columns of tabs, which is...Bad.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5819 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-06-09 17:36:27 +00:00
Andrzej Kapolka a707fa6234 Let's get stack traces for these.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5816 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-06-04 22:50:11 +00:00
Andrzej Kapolka 37801c3cf0 Avoid creating sublist when unnecessary.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5815 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-06-04 21:52:24 +00:00
Jamie Doornbos f3c3269342 Optionally generate action script listener adapters for designated services.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5814 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-06-04 05:37:45 +00:00
Michael Bayne 1e6c35f9c1 If we have no socket or a closed socket when trying to write overflow queue
messages, treat that like a network failure which will clear out that queue and
shutdown the connection. Overflow queues are only meant to handle sockets that
are backed up, not closed or non-existent.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5813 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-06-02 22:59:23 +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 755c27c41c Bring AdminService into line with the "a manager implements the provider" world
order that came about ages ago.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5811 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-06-02 17:32:57 +00:00
Michael Bayne ae6535583a Use getKey() for updatePartial().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5809 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-05-29 19:14:34 +00:00
Michael Bayne f565fa0e42 Update to match Depot API changes.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5808 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-05-29 00:19:32 +00:00
Andrzej Kapolka 1ef1f31f1f Get the config objects on add, rather than on construction. That
way we can remove and re-add the same panel (if it's in a tabbed 
pane, for instance).


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5807 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-05-27 21:38:37 +00:00
Michael Bayne ff4e05749f Make Lifecycle a singleton without having to introduce a Guice dependency in
samskivert.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5806 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-05-27 20:39:32 +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 d855eb184a Oops, nix duplicated method.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5803 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-05-27 18:38:44 +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
Andrzej Kapolka eb77929940 As on the server, provide a means to detect whether we can
transmit datagrams.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5801 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-05-26 20:10:46 +00:00
Andrzej Kapolka 510e6982bf Note actual transport on the client, too.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5800 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-05-26 19:57:00 +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
Andrzej Kapolka 1bdb2cae16 Added methods and @Intern annotation to stream pooled strings (a
la String.intern) as we do class names, by sending the value the 
first time and a short code thereafter (with special handling for 
datagrams, where me must continue sending the mapping until we 
know they've been received).  This is mostly useful for the 
lengthy config names and parameter names of Project X, but it 
could conceivably also be used for things like NamedEvents, which 
stream the same object field names many times in the course of a 
stream.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5797 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-05-22 22:43:19 +00:00
Andrzej Kapolka e5172053c8 The utility of printing out the message as a byte array seems
limited.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5796 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-05-21 23:47:47 +00:00
Andrzej Kapolka 13251b0d79 Accessor for datagram transmission flag.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5795 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-05-21 23:36:18 +00:00
Andrzej Kapolka 31e9807c05 Note the actual transport with which events are transmitted.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5794 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-05-21 18:41:42 +00:00
Andrzej Kapolka d45b0bdb00 Added an option to bind the datagram socket to a specific
hostname, in hopes of fixing the issue with receiving datagrams 
from the staging server.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5793 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-05-21 18:04:09 +00:00
Andrzej Kapolka 6dd16483be Added an extra step to the datagram negotation process. Before
the server starts sending datagrams willy-nilly, it must wait for 
a (reliable) go-ahead from the client.  Otherwise, it's possible 
that the server may be successfully receiving datagrams but not 
sending them.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5792 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-05-21 04:16:41 +00:00
Dave Hoover 0f70a5c8d2 Much like NamedSetAdapter, we had this kicking around in yohoho, also.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5791 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-05-19 19:29:29 +00:00
Michael Bayne a6c43b3436 Enough of this verbosity.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5789 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-05-19 05:16:34 +00:00
Dave Hoover 3b574d3f0e Make TabbedDSetEditor smart enough to add tabs as needed when values
in the dset change (and slap in the todo to make it smart enough to prune
tabs if they should go away, though not showing a now-empty tab is far less
important than actually letting you get at new values)


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5788 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-05-18 17:44:46 +00:00
Dave Hoover 01721df0b8 Split those up because I'm doing evil things in yohoho & need to override
part of it.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5787 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-05-18 17:43:33 +00:00
Charlie Groves c6dd5ba201 Add imports for generic types in method arguments
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5785 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-05-13 08:40:28 +00:00
Dave Hoover 497ade64e8 Last rejiggering, I promise! (I hope)
Let entries be in multiple groups.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5782 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-05-12 23:52:37 +00:00
Dave Hoover 7cfee2eabd Complexity++!
Turns out when I went to use TabbedDSetEditor in my scary real-world 
application instead of nice small test cases, I wanted to do fancier
stuff where I hide certain fields for some groups, etc. Break things
up into chunks so it's possible to override the various exciting bits
of functionality and do things like that.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5781 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-05-12 23:29:31 +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