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
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
Andrzej Kapolka
a707c8b515
Set the traffic class for datagrams to low-delay. I doubt this will
...
actually reduce latency, but wouldn't it be cool if it did?
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5985 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-11-06 20:56:37 +00:00
Michael Bayne
6137fbfb79
As Charlie points out, we can use the protected constructor if we're creating
...
an anonymous extension of DefaultMap and any other creation is better done
through the static factory methods, so don't present the user with a pointless
choice.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5982 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-10-23 04:58:49 +00:00
Charlie Groves
90c97a54b3
Turns out USR1 is reserved by the JVM on pretty much every platform but Mac, so only expose USR2 for
...
injected handling by subclasses.
I had a nice version of this that allowed user controlled handling for any signal to be injected.
Unfortunately it used multibindings from guice, and I'm loathe to add a dependency to narya just for
that.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5980 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-10-21 20:47:55 +00:00
Charlie Groves
9284f1b4b6
Expose USR1 and USR2 signals to users of AbstractSignalHandler if they bind instances of a
...
SignalReceiver class for those signals.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5979 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-10-19 20:58:03 +00:00
Mike Thomas
644de92f7b
toString() is being overridden, mark as such.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5978 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-10-08 20:28:09 +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
Michael Bayne
5f3f1ad5c9
As Ray points out, we don't need a special interface for this. The creator is
...
simply a function from K to V. Sorry to break users but I know you're few and
being able to integrate with all the excellent Google Collections functional
stuff is a juicy reward for a little egg breaking.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5976 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-10-01 01:07:28 +00:00
Andrzej Kapolka
dd15495810
Avoid NPE for final datagrams sent/received after client cleanup.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5975 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-09-28 21:51:08 +00:00
Andrzej Kapolka
8cbc3fcf1a
Throttle datagrams as well as streamed messages.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5974 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-09-27 02:23:17 +00:00
Charlie Groves
2d044ec3f5
Fix the docs now that fetch has shown up and break out a factory for instance Creators separate from
...
newInstanceMap.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5973 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-09-26 00:35:13 +00:00
Ray Greenwell
c42cb490cf
Every "case" should have a "break", even the last one.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5972 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-09-24 21:17:15 +00:00
Nathan Curtis
ea49d70129
* Add Msoy's MethodProfiler so I can use it in Riposte.
...
* Apparently, a couple of whitespace cleanups my gvim did awhile ago while I was looking around in
here.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5971 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-09-24 20:40:48 +00:00
Michael Bayne
a6a008cb50
Turns out we want to highlight the difference between normal getting and
...
getting that adds the default value to the map. I opted for fetch() which at
least means something close to get() and can be documented as also inserting
the default value. I also considered obtain() and acquire() but those both felt
like they had something to do with locks. apply() seemed too functional.
wangle() seemed like a strong contender for a while.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5965 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-09-22 20:25:05 +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
293ec52255
Some Galileo inspired raw type and dead code elimination.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5956 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-09-14 22:20:16 +00:00
Dave Hoover
26d982ae54
Document those so eclipse with strict docbook warnings doesn't get
...
cranky that they're never used.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5955 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-09-14 22:18:31 +00:00
Michael Bayne
66af5d397b
There's no especial need to disallow use of the constructor.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5954 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-09-12 01:17:49 +00:00
Michael Bayne
bba467be39
Slight description editing.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5953 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-09-12 01:15:53 +00:00
Michael Bayne
9b946dfbd5
DefaultMap extracted from Yohoho, simpl- and and MDB-ified. For Charlie's
...
inspection and approval and Matt's eventual use.
Note that we can't put this in samskivert as it depends on Google
Collections. Perhaps we should create an ooo-utils library for things like this
(and possibly move Narya's Serialization replacement therein since it is pretty
general purpose; Nate is using it for Riposte, for example).
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5952 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-09-12 01:13:19 +00:00
Andrzej Kapolka
00569e651f
Added a system for tracking the messages sent to and received from the
...
server for the purpose of statistics tracking.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5948 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-09-11 00:19:10 +00:00
Michael Bayne
05e37f4f42
This log message is not strictly necessary. The connection manager immediately
...
logs that it's listening on its configured ports, when start() is called. It
does so on a separate thread, but I don't believe the subtle ordering
possibilities there are something that's actually causing/likely to cause
problems and/or needs to be called out.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5947 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-09-10 19:42:18 +00:00
Michael Bayne
179c66f46a
Missed a spot.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5946 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-09-10 19:39:03 +00:00
Michael Bayne
03ff9f8220
PresentsDObjectMgr.isRunning() is really isNotShutdown() and we need to
...
preserve those semantics. Sigh.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5945 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-09-10 19:38:36 +00:00
Michael Bayne
f92350f1b3
Bah, don't include the PresentsDObjectMgr's state when trying to assert our
...
invariants.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5944 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-09-10 19:36:33 +00:00
Michael Bayne
a8d3227fb5
You too. Naughty misreporter.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5943 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-09-10 19:32:06 +00:00
Michael Bayne
1c60b9cc75
Promote the datagramHostname to the bindHostname and use it for our TCP
...
connections as well.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5942 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-09-10 18:34:42 +00:00
Jamie Doornbos
701d885222
Keep track of the total number of units run independently of Stats so it is not reset every 3 minutes by pulse.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5941 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-09-09 23:59:02 +00:00
Par Winzell
6f7c9831d8
Comment tweak.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5940 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-09-09 14:50:30 +00:00
Michael Bayne
f3fd4d28a5
We need to use the thread context classloader if one has not been specified.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5939 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-09-07 20:39:32 +00:00
Mike Thomas
2acedb91a4
Better protection against divide-by-zero - if we have less than a second, we'll just round up to 1 second.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5938 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-09-04 22:42:27 +00:00
Ray Greenwell
bf5d3c666f
Avast, thar be bugs here too.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5936 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-08-30 00:37:08 +00:00
Charlie Groves
e27f0ed5e2
No more setHours
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5935 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-08-26 22:51:48 +00:00
Charlie Groves
90e11d00b7
More fluency, less effluent
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5934 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-08-25 23:14:59 +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
Ray Greenwell
4848fe4b29
Now that ByteEnum has been liberated from depot, lets
...
support streaming them as bytes.
It's better than writing a modified UTF String, but
it'd be even nicer if we could avoid the short to read the class name
(Enums are final), but I suppose we still have to know whether one is null
or not. Hm.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5920 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-08-19 02:18:14 +00:00