Ray Greenwell
7ab2c542da
Stop printing square brackets around the log level. Be more like our Java logging.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5394 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-09-25 21:04:52 +00:00
Ray Greenwell
38ab9df44a
- Print timestamps like Java (with a "," sep'ing seconds and milliseconds)
...
- when parsing set log levels, accept "warn" as an alias for "warning".
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5393 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-09-25 20:58:46 +00:00
Ray Greenwell
d48921acc2
Added deNull().
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5392 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-09-25 20:55:55 +00:00
Michael Bayne
e517ba314e
Make this guy injectable as well.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5391 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-09-25 00:10:50 +00:00
Michael Bayne
8fa16ca650
Make this repository injectable.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5390 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-09-24 18:54:47 +00:00
Jamie Doornbos
233e710d20
Removed extra comma
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5389 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-09-24 17:45:56 +00:00
Tom Conkling
137a5ac2bf
FileUtil.getDotSuffix
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5388 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-09-23 00:51:34 +00:00
Michael Bayne
cfad184d37
Added an email address validity checker.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5387 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-09-22 18:15:19 +00:00
Michael Bayne
e1d83cade0
Make it possible to create and populate a TypedArray in a single expression.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5386 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-09-22 18:15:04 +00:00
Ray Greenwell
004954113d
Oh, I like that example I used in the checkin, let's use that in the docs.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5385 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-09-19 02:01:17 +00:00
Ray Greenwell
a34b08ba34
Do varargs logging just like we do in Java now.
...
log.info("The message", "key1", value2, "key2", value2, optionalError);
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5384 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-09-19 01:57:52 +00:00
Michael Bayne
6adabaf442
Close resolved channels that have been idle for 5 minutes.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5383 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-09-18 18:07:19 +00:00
Michael Bayne
278306bb1f
A few chat channel related fixes.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5382 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-09-17 23:08:48 +00:00
Michael Bayne
f139ec53f4
That injected service needs to be transient.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5381 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-09-17 23:08:28 +00:00
Michael Bayne
dc4e4315da
If we request to invoke an action directly on a node, do the right thing if
...
that node is us.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5380 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-09-17 23:08:02 +00:00
Michael Bayne
136af2a6b9
Implement equals() with compareTo().
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5379 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-09-16 23:17:59 +00:00
Ray Greenwell
1c711f493d
Google's Predicate is an interface, and the build server uses Java 5,
...
and you can't use @Override in java 5 when implementing an interface method.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5378 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-09-16 22:59:17 +00:00
Ray Greenwell
be0849f17e
In with the new. Or rather the old. The original incarnation.
...
Does not allow null 'processed' functions.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5377 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-09-16 22:50:15 +00:00
Ray Greenwell
18bb5cc130
Remove this version...
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5376 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-09-16 22:48:38 +00:00
Ray Greenwell
1f3b968a00
Use google's Predicate class instead of samskivert's.
...
- It's probably "more" standard, and maybe when they finally add Predicate
to java.util, it will be based on google's implementation.
- Unfortunately this is a little less efficient at runtime. The samskivert
Predicate can filter into a new Collection that knows its size, google's
code just returns an Iterable that is a *view* on the Iterable passed
in, so it doesn't know how many elements are in it. When we copy it into
an array, a List is first created to receive all the filtered elements
from this view, then that List is turned into an array. Oh well, it's
less lines of code here in this class thanks to Google's fun libs.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5375 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-09-16 22:32:48 +00:00
Ray Greenwell
6294b2e955
Require the 'processed' function. If you are calling a ResultListener service,
...
you should always listen for the result! Otherwise, you are likely doing
something wrong. Listen for the result, or change the service to not report
a result if it's irrelevant.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5374 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-09-16 02:00:47 +00:00
Bruno Garcia
fa4d42db28
We allow you to omit this callback in the constructor, so make sure it's not null when we go to call it
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5373 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-09-16 01:38:32 +00:00
Matt Jensen
856319ede0
Fixed a couple tiny javadoc typ-o's.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5372 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-09-14 23:01:16 +00:00
Jamie Doornbos
d6fbde6e0d
Forgot header and props for added files
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5371 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-09-12 23:47:24 +00:00
Jamie Doornbos
4a03b20b1f
Extension of the samskivert throttle class to allow updating the operation limit, plus a small manual test class
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5370 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-09-12 23:26:58 +00:00
Dave Hoover
7ee6ace683
Javadoc warnings cleanups.
...
Note: this involves generated code from a samskivert patch I only just sent to mdb,
but he's in a meeting, so that won't show up for a little.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5369 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-09-12 17:59:26 +00:00
Michael Bayne
8114439855
Handle having a null caller.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5368 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-09-11 23:35:09 +00:00
Michael Bayne
1852e79477
Decode the action on the local server from the bytes so that we can catch a
...
failure to implement a zero arg constructor even in a developer's single server
test environment.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5367 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-09-11 23:32:57 +00:00
Ray Greenwell
3be8caecca
Comment tweak.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5366 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-09-11 21:02:55 +00:00
Ray Greenwell
059e7f760d
Shock!
...
Is that 'private' you see there? Omigod. It is.
Normally we eschew private because we feel like people should be
able to use our classes how they see fit.
However, you *really* shouldn't be futzing with these fields,
and them being protected would allow someone to write an Enum subclass
and fuck-up other unrelated Enum subclasses, so I'm making an exception here.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5365 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-09-11 21:01:10 +00:00
Ray Greenwell
c0a8e204da
Jamie points out that asdoc sucks the wet farts from dead pigeons,
...
and so @param tags just match up to parameters based on order.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5364 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-09-10 20:35:00 +00:00
Ray Greenwell
0809963ee9
formatting and commenting.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5363 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-09-09 23:58:12 +00:00
Jamie Doornbos
b4af7a0250
Allow explicit enumeration of fields for fieldsToString and simpletoString, doing automatic enumeration by default
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5362 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-09-09 23:36:05 +00:00
Tom Conkling
ccc81d4da0
Whoops!
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5361 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-09-05 00:32:38 +00:00
Tom Conkling
ca8abbaf62
Make readAvailable() non-recursive.
...
Thane apparently has a maximum stack depth of 64, and this is quickly getting eaten up by readAvailable() when lots of frames are sent down the tubes simultaneously. (mxmlc doesn't seem to optimize tail-recursive functions.)
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5360 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-09-05 00:30:19 +00:00
Ray Greenwell
d5546a37fb
Fixed suffix determination for message pluralization.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5359 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-09-04 23:19:56 +00:00
Ray Greenwell
76ebba1614
Added readLong and writeLong to our streaming classes.
...
Use that in PongResponse.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5358 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-09-04 22:21:03 +00:00
Ray Greenwell
6179c74b29
Utilize Util.equals() to compare ByteArrays.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5357 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-09-04 22:20:20 +00:00
Ray Greenwell
08522d513a
Quick fix that should fix the RoomName problem, while I contemplate
...
larger changes that may enhance performance.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5356 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-09-04 21:29:10 +00:00
Ray Greenwell
e730991df9
- Make a copy of the values array to return to callers, so they can't
...
hose our internal data structures.
- some additional comments
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5355 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-09-04 19:31:36 +00:00
Ray Greenwell
b0973478fd
Extra comments.
...
Extra booch-checking.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5354 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-09-04 01:51:20 +00:00
Ray Greenwell
9d3ff0b44d
If the server streams an array of enums, it will surely think they're final.
...
So we'd better do the same here.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5353 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-09-04 01:29:43 +00:00
Ray Greenwell
ec2b50c153
- Changed some stuff around with streaming.
...
- Before, the Input/OutputStream classes handled Streamables directly
and Streamers were never created for them. Simplified the code somewhat
by always creating a Streamer. It's now more like the Java side, too.
- No more BAD_STREAMER, since null now means "bad".
- Built-in support for streaming enums.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5352 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-09-04 01:27:18 +00:00
Ray Greenwell
85a5cc1de1
Enum base class that does most of the right things.
...
(The beginning.)
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5351 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-09-04 01:22:14 +00:00
Ray Greenwell
f22aab43ce
100 column formatting.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5350 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-09-04 00:49:26 +00:00
Ray Greenwell
2be1dc747d
Some formatting love, from the futuristic world of 100 column code.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5349 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-09-04 00:48:46 +00:00
Michael Bayne
7e7e7893d6
No need for this to be specific to persistence.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5348 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-09-03 18:40:29 +00:00
Michael Bayne
5a41c876b4
Updated to use new DatabaseException.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5347 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-09-03 16:20:30 +00:00
Mike Thomas
addb1971dd
Break out the binding of the invokers so we can bind them elsewhere in a subclass.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5346 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-08-30 00:15:04 +00:00
Jamie Doornbos
cacd096f3b
Reveal the contents of Dictionary objects in toString
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5345 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-08-27 00:42:03 +00:00