Commit Graph

6528 Commits

Author SHA1 Message Date
Tom Conkling d2dd8c5b5d ActionScriptUtils.java:
- expose addImportAndGetShortType() and toSimpleName()
- public methods before protected ones



git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6640 542714f4-19e9-0310-aa3c-eee0fc999fb1
2011-05-19 00:39:17 +00:00
Bruno Garcia 522194e592 Run genservice with my last change to placate Bamboo.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6639 542714f4-19e9-0310-aa3c-eee0fc999fb1
2011-05-10 19:43:44 +00:00
Bruno Garcia c0a194c3cc Like the Java version, prevent superfluous whitespace from being generated from empty args lists.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6638 542714f4-19e9-0310-aa3c-eee0fc999fb1
2011-05-10 18:57:19 +00:00
Bruno Garcia 0891b9cc58 Speeling.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6637 542714f4-19e9-0310-aa3c-eee0fc999fb1
2011-05-10 18:52:43 +00:00
Andrzej Kapolka d0bde9d84d Because we have had cases where peers have become unresponsive without
actually disconnecting (due to EC2 woes, e.g.), let's try shutting down peers
if they haven't checked in for a while.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6636 542714f4-19e9-0310-aa3c-eee0fc999fb1
2011-05-04 20:58:29 +00:00
Michael Bayne ca678f6df8 Use the newly relocated Interval.Factory.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6635 542714f4-19e9-0310-aa3c-eee0fc999fb1
2011-04-27 20:43:11 +00:00
Michael Bayne cdff0031fe Same pattern here: minimize the weirding (by having createMarshallers look like
a non-weird function that just returns a useful value), and comment the
weirding (in this case, only in CustomClassStreamer.{read|write}Object, since
that's the only place where a race condition may occur.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6634 542714f4-19e9-0310-aa3c-eee0fc999fb1
2011-04-26 23:24:44 +00:00
Michael Bayne 10df7639b2 Let's test and set _marshallers in the same place, and add a comment explaining
our no synchronization at the cost of possibly doing some trivial extra work.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6633 542714f4-19e9-0310-aa3c-eee0fc999fb1
2011-04-26 23:10:10 +00:00
Mike Thomas 90e395c7bf Instead of syncrhonizing, Ray suggests just setting the shared member variable last. This should also work for our purposes and saves the overhead of the actual synchronization.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6632 542714f4-19e9-0310-aa3c-eee0fc999fb1
2011-04-26 22:43:39 +00:00
Mike Thomas a7334345fd We need to synchronize here. Otherwise, when we could be in the middle of initializing our marshallers, perhaps for another client on the same JVM, and continue on with our streaming thinking our marshallers are ready to go, only to find that they are, in fact, not yet ready to go.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6631 542714f4-19e9-0310-aa3c-eee0fc999fb1
2011-04-26 22:24:45 +00:00
Par Winzell 7faeb29c4f Open ourselves up a bit, to let subclasses pass their own data through ObjectInputStream's handy clientProps functionality. A prime example: sending along an injection context to streamed objects.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6630 542714f4-19e9-0310-aa3c-eee0fc999fb1
2011-04-22 15:58:45 +00:00
Michael Bayne b4e8609a95 PresentsConnection does not check that its handler is non-null before
processing messages, so let's put a (logging) NOOP handler in place when we
disconnect it from the PresentsSession.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6629 542714f4-19e9-0310-aa3c-eee0fc999fb1
2011-04-20 23:31:49 +00:00
Andrzej Kapolka 69f8f4ef88 Break sendSpeak out into a separate method so that we can override it.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6628 542714f4-19e9-0310-aa3c-eee0fc999fb1
2011-04-20 23:30:12 +00:00
Andrzej Kapolka ca82921db0 Clear the handler reference when we replace the connection. For some reason,
it seems like we're still getting messages from old connections.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6627 542714f4-19e9-0310-aa3c-eee0fc999fb1
2011-04-20 04:56:48 +00:00
Andrzej Kapolka 179bd880c6 I was wondering why the connection ids were all over the place.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6626 542714f4-19e9-0310-aa3c-eee0fc999fb1
2011-04-20 03:20:14 +00:00
Andrzej Kapolka 2a5da18f20 Allow customizing the ServerSocketChannelAcceptor to configure the socket
differently (specifically, we want to enable SO_REUSEADDR in Spiral Knights).


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6625 542714f4-19e9-0310-aa3c-eee0fc999fb1
2011-04-12 01:23:53 +00:00
Michael Bayne b37c054873 OK, we have to recompile against samskivert 1.4-SNAPSHOT because
add(index,observer) used to return void and now it returns boolean. Really I'd
rather add(index,observer) and add(observer) both returned void and threw an
exception if a duplicate was detected (because wtf are you doing?), but
Collection dictates a signature of boolean add (elem) and if I changed that,
then *everybody* would need to recompile. Sigh. We'll just suck it up and leave
add(i,o) consistent with add(o) and have Narya rebuild agains the latest
bytecode.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6624 542714f4-19e9-0310-aa3c-eee0fc999fb1
2011-04-10 21:24:22 +00:00
Michael Bayne 0e289a295b Not needed.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6623 542714f4-19e9-0310-aa3c-eee0fc999fb1
2011-04-10 19:51:48 +00:00
Ray Greenwell aa55ea4c17 Guava r09.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6622 542714f4-19e9-0310-aa3c-eee0fc999fb1
2011-04-10 19:39:42 +00:00
Ray Greenwell 23dd064230 Latest samskivert.
Just trying to make everything work...


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6621 542714f4-19e9-0310-aa3c-eee0fc999fb1
2011-04-10 19:36:43 +00:00
Charlie Groves 7d9366a0d2 Add isEmpty so I don't keep fucking up when I assume DSet is a Collection
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6620 542714f4-19e9-0310-aa3c-eee0fc999fb1
2011-04-09 01:31:23 +00:00
Andrzej Kapolka 018823edf6 I'm having a devil of a time figuring out why there are still subscriptions
lying around when the client reconnects.  Let's try just clearing them out
again on resumption.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6619 542714f4-19e9-0310-aa3c-eee0fc999fb1
2011-04-08 03:30:13 +00:00
Andrzej Kapolka 0765897bcc We're getting datagram PONGs on resumed connections that haven't yet sent
datagram PINGs.  Let's make sure that the connection to which we're sending
the pong is the same one from which we received the ping.  Ping, pong, ping,
pong.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6618 542714f4-19e9-0310-aa3c-eee0fc999fb1
2011-04-08 02:38:49 +00:00
Michael Bayne afe0589baf Removed ancient vestigial templates.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6617 542714f4-19e9-0310-aa3c-eee0fc999fb1
2011-04-07 21:42:32 +00:00
Jamie Doornbos b74952a097 Allow final classes to be streamed too
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6616 542714f4-19e9-0310-aa3c-eee0fc999fb1
2011-04-07 04:42:14 +00:00
Charlie Groves 807111d985 InvocationResponseEvent is no longer used for listeners
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6615 542714f4-19e9-0310-aa3c-eee0fc999fb1
2011-04-07 00:49:13 +00:00
Michael Bayne 300df7a843 Reference the proper packages here.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6614 542714f4-19e9-0310-aa3c-eee0fc999fb1
2011-04-06 21:56:45 +00:00
Michael Bayne 9647820534 Details on our numerous artifacts.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6613 542714f4-19e9-0310-aa3c-eee0fc999fb1
2011-04-06 21:56:30 +00:00
Michael Bayne 9890b968e6 Added link to javadocs.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6612 542714f4-19e9-0310-aa3c-eee0fc999fb1
2011-04-06 21:56:18 +00:00
Michael Bayne 20ded3bd14 Properly format them links.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6611 542714f4-19e9-0310-aa3c-eee0fc999fb1
2011-04-06 21:56:02 +00:00
Michael Bayne 79b272a8ab Out with the old.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6610 542714f4-19e9-0310-aa3c-eee0fc999fb1
2011-04-06 21:55:43 +00:00
Michael Bayne 4257b389bc Updated to reflect new public home.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6609 542714f4-19e9-0310-aa3c-eee0fc999fb1
2011-04-06 21:55:31 +00:00
Michael Bayne a5ad43c237 Brought the README out of the stoneage, Markdownified.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6608 542714f4-19e9-0310-aa3c-eee0fc999fb1
2011-04-06 21:55:18 +00:00
Andrzej Kapolka e318cd6697 Oops, SimpleStreamableObject handles toString.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6607 542714f4-19e9-0310-aa3c-eee0fc999fb1
2011-04-06 03:02:25 +00:00
Andrzej Kapolka cd63a86bff This got skipped when Tuple<String, Integer> became DObjectAddress, leaving
us with lots of "Requested to clear unknown proxy" warnings in Spiral
Knights.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6606 542714f4-19e9-0310-aa3c-eee0fc999fb1
2011-04-06 02:59:54 +00:00
Jamie Doornbos f3d6712cd2 Fixed some more eol issues. genservice and gendobj work for me now.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6605 542714f4-19e9-0310-aa3c-eee0fc999fb1
2011-04-05 23:33:29 +00:00
Charlie Groves c5a098119f Use the convenience creation methods on ObserverList
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6604 542714f4-19e9-0310-aa3c-eee0fc999fb1
2011-04-05 21:01:02 +00:00
Jamie Doornbos ddb30e640e Allow session observers to hook into the part of the session lifecycle before the session
subclasses start nuking things, but once it is known that it will end.

It always bugged me in msoy that the session subclass has to do this (poorly). Seems patently
observer-ish. This fix has almost no runtime overhead and is backwards compatible. The name
isn't great, but I was leaving room for more methods in there should someone else find it
useful, such as sessionWillStart or even clientObject[Will|Did]Release.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6603 542714f4-19e9-0310-aa3c-eee0fc999fb1
2011-04-05 17:46:29 +00:00
Mike Thomas 1d3b40c4dc Various generics/typesafety bits.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6602 542714f4-19e9-0310-aa3c-eee0fc999fb1
2011-04-05 17:35:59 +00:00
Mike Thomas d076ff4bb7 Missing @Overrides
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6601 542714f4-19e9-0310-aa3c-eee0fc999fb1
2011-04-05 17:15:13 +00:00
Jamie Doornbos cae3a3f1b9 Support converstion of java enum to com.threerings.util.Enum as part of actionscript streamable conversion.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6600 542714f4-19e9-0310-aa3c-eee0fc999fb1
2011-04-04 21:11:58 +00:00
Jamie Doornbos 7120c9c292 Fixed conflict in generated source merge when using native eol-styles by allowing an optional CR before the LF ($ here did not work for some reason)
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6599 542714f4-19e9-0310-aa3c-eee0fc999fb1
2011-04-04 20:15:48 +00:00
Michael Bayne dfe51acd4b Join our big brother on the new bleeding edge.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6598 542714f4-19e9-0310-aa3c-eee0fc999fb1
2011-04-04 04:53:10 +00:00
Michael Bayne fc5265b860 A 1.8 release of these artifacts, which only go to OOO's Maven Repository, to
go along with the public release I just did to Maven Central of the main jar
artifact.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6597 542714f4-19e9-0310-aa3c-eee0fc999fb1
2011-04-04 04:17:32 +00:00
Michael Bayne fe473b8446 [maven-release-plugin] prepare for next development iteration
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6596 542714f4-19e9-0310-aa3c-eee0fc999fb1
2011-04-04 04:12:20 +00:00
Michael Bayne 4f6f789e0d [maven-release-plugin] prepare release narya-1.8
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6594 542714f4-19e9-0310-aa3c-eee0fc999fb1
2011-04-04 04:12:00 +00:00
Michael Bayne 8725eaf8f9 Use stable 1.3 samskivert.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6593 542714f4-19e9-0310-aa3c-eee0fc999fb1
2011-04-04 04:09:54 +00:00
Michael Bayne bc4c9224ec Added some scaffolding for testing peer related stuffs.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6592 542714f4-19e9-0310-aa3c-eee0fc999fb1
2011-04-03 22:49:46 +00:00
Michael Bayne 560fd59f26 Put bootstrap.xml in etc with all of our other misfit .xml files.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6591 542714f4-19e9-0310-aa3c-eee0fc999fb1
2011-04-03 16:35:56 +00:00
Michael Bayne 8c740b8353 Decided to switch to using setOld{Entry|Value} instead of having two
constructors. Fixed ElementUpdatedEvent along the way.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6590 542714f4-19e9-0310-aa3c-eee0fc999fb1
2011-04-02 23:25:10 +00:00