Michael Bayne
dfa60bb344
Find java in our path instead of requiring JAVA_HOME be set.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5419 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-10-08 18:25:47 +00:00
Jamie Doornbos
c614d0d625
Nixed unused import
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5418 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-10-07 23:44:44 +00:00
Jamie Doornbos
d336a5a3a9
Implement upstream message overflow for presents sessions
...
* Subclasses use setOverflowLimit to enable
* handleMessage appends to overflow queue and starts interval if overflow is currently active or if the throttle fails a message
* handleMessage ends session if overflow limit is reached
* New handleOverflowMessages dispatches messages from the overflow queue until none are left or throttle fails
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5417 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-10-07 23:42:02 +00:00
Jamie Doornbos
efa2cfaa3e
For bureau log redirection, expose a method to detect if it is still running. Throw in the bureau id accessor too.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5416 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-10-07 18:51:55 +00:00
Jamie Doornbos
3bbd9da353
Fixed spurious warnings about sockets on bureau shut down:
...
* socketClosed was issuing a warning, presumably because whirled doesn't normally disconnect flash client. Anyway, seems like overkill since the server can disconnect whenever it choosed
* Accoring to adobe, calling Socket.close after the Socket.close event should throw an IOError. Thane holds to this, while flash apparently does not. Make our code neutral by checking for connected prior to calling close
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5415 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-10-07 16:06:45 +00:00
Jamie Doornbos
f782ba7f07
Uncommenting log messages (these are very useful for the thane AVRG controller in msoy and can be configured without commenting them out)
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5414 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-10-03 23:03:23 +00:00
Michael Bayne
8629e37b6c
We can log something useful in this case.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5413 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-10-02 17:49:45 +00:00
Michael Bayne
62c1164da2
Two things: we shouldn't reference _conn outside the two synchronized methods
...
that read and write it, and we need to cope if a client manages to go away
before we can send it its bootstrap response.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5412 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-10-02 17:25:37 +00:00
Michael Bayne
e0aea87f62
Moved the Presents overview out of the javadocs. Added some simple top-level
...
pages which give us something useful to link to when we want to point to all of
the javadocs for a particular subtree of the Narya packages.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5411 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-10-02 00:47:06 +00:00
Jamie Doornbos
4d65dfb3ec
keywords and file header
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5410 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-10-01 22:59:38 +00:00
Jamie Doornbos
af72be4496
Bureau log redirector (from msoy)
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5409 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-10-01 22:57:13 +00:00
Jamie Doornbos
5adcafcc64
Fixed javadoc typo
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5408 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-10-01 22:45:57 +00:00
Dave Hoover
f05b9eb9ae
Javadoc fixes plus svn keywords.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5407 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-10-01 17:35:59 +00:00
Jamie Doornbos
f4111247d7
Make the bureau registry's client factory optional, must now be explicitly invoked using a new method
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5406 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-09-30 23:21:04 +00:00
Jamie Doornbos
7e49edd3eb
Weird, what was that doing there?
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5405 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-09-30 22:36:01 +00:00
Michael Bayne
bb8d04bea0
Tone down verbose logging.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5404 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-09-30 21:36:51 +00:00
Michael Bayne
2bffe8569b
Deverbosified logging.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5403 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-09-30 21:30:48 +00:00
Michael Bayne
6851fc1b28
And import those annotations as well.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5402 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-09-29 18:00:48 +00:00
Michael Bayne
053c179f69
Annotate some of these methods since PresentsClient is one place where we have
...
to do our little dance on different threads.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5401 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-09-29 18:00:15 +00:00
Dave Hoover
657aafaedb
And of course, if I were thinking this morning, I would've rerun the organize imports
...
thing before committing instead of just going "oh yeah, I've been having this stuff
sitting around uncommitted for a while waiting on it to be blessed" and missing
out on things that'd changed in the meantime.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5400 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-09-26 17:35:29 +00:00
Dave Hoover
8856120403
Import cleanups
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5399 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-09-26 17:29:59 +00:00
Ray Greenwell
c04adc6a6e
Brevify.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5398 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-09-25 23:54:58 +00:00
Nathan Curtis
d4e02b71d8
This is why MultiLoader didn't work in Air. Explanatory comment below.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5397 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-09-25 23:47:11 +00:00
Jamie Doornbos
59534c1ee6
May as well go totally ISO with date stamp, same as log4j %d
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5396 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-09-25 21:21:23 +00:00
Ray Greenwell
46e0585e0a
- Oh right, change WARNING to WARN (be more like our Java logging)
...
- Added an ERROR level, along with an error() method.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5395 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-09-25 21:11:07 +00:00
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