Commit Graph

4668 Commits

Author SHA1 Message Date
Mike Thomas 7101012413 A new type of general communication between peers - the NodeRequest - it's a lot like a NodeAction but produces a result which is sent back via the ResultListener.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6070 542714f4-19e9-0310-aa3c-eee0fc999fb1
2010-06-01 23:48:50 +00:00
Andrzej Kapolka 3c2c86da60 Use the InetAddress obtained for the TCP socket for the datagram
channel as well, instead of re-resolving the hostname.  This is because
we plan to use round-robin resolution for the game server, and I don't
want to chance getting different IPs for TCP and UDP.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6069 542714f4-19e9-0310-aa3c-eee0fc999fb1
2010-05-28 23:12:17 +00:00
Charlie Groves 4ab52e1c1e Pull in imports from added methods and fields, and kill the extra space between fields
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6067 542714f4-19e9-0310-aa3c-eee0fc999fb1
2010-05-11 22:05:09 +00:00
Andrzej Kapolka 9043e99f7a Separated TCP and UDP bind hostnames (we want to be able to bind to the
wildcard address for TCP in order to accept connections on both the
public hostname and the internal hostname used for peers, but bind to the
public hostname for UDP because binding to the wildcard address seems to
cause problems receiving packets).


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6066 542714f4-19e9-0310-aa3c-eee0fc999fb1
2010-05-07 01:12:55 +00:00
Tom Conkling 45694bc0f0 This ActionScript constructor generator doesn't seem particularly useful, since it requires the developer to fill in the body
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6065 542714f4-19e9-0310-aa3c-eee0fc999fb1
2010-05-01 02:40:29 +00:00
Tom Conkling f2f88f5e3c Get rid of debugging code
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6064 542714f4-19e9-0310-aa3c-eee0fc999fb1
2010-05-01 02:37:31 +00:00
Tom Conkling f4bc4a2680 - Properly parse out ActionScript member variables, and insert them back into the generated code
- Eclipse keeps rejiggering my imports

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6063 542714f4-19e9-0310-aa3c-eee0fc999fb1
2010-05-01 02:35:39 +00:00
Tom Conkling 98b63122d4 Properly handle getter and setter methods
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6062 542714f4-19e9-0310-aa3c-eee0fc999fb1
2010-05-01 00:38:34 +00:00
Mike Thomas 50fb782b03 Slightly scary change, but this makes Name more "correct" - Since equals() cares about the class of the Name and not just the normal string, make compareTo() care about that too. I've set it up so that the specific class of the Name has priority in the sort and thus all the "BuildingName" entries will group together.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6061 542714f4-19e9-0310-aa3c-eee0fc999fb1
2010-04-27 01:03:33 +00:00
Ray Greenwell 401e71fa51 Nixed this commented out alternate code.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6060 542714f4-19e9-0310-aa3c-eee0fc999fb1
2010-04-20 21:00:20 +00:00
Jamie Doornbos 19b6edcc98 Fix service generation for classes that use java.lang.Integer. Some day I will clean this up and fix the big TODO. It probably isn't actually that hard now I know more.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6059 542714f4-19e9-0310-aa3c-eee0fc999fb1
2010-04-19 18:58:54 +00:00
Ray Greenwell 406344529a Updated deprecated usage.
Added alternate implementation in comments. One copies the array,
the other creates two wrapper Lists.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6058 542714f4-19e9-0310-aa3c-eee0fc999fb1
2010-04-13 21:00:52 +00:00
Ray Greenwell b34cf47668 Whoops.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6056 542714f4-19e9-0310-aa3c-eee0fc999fb1
2010-04-07 21:24:06 +00:00
Ray Greenwell 2f855ff35e When generating dobj files, add or remove the Generated import depending
on whether we need it.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6055 542714f4-19e9-0310-aa3c-eee0fc999fb1
2010-04-07 21:22:53 +00:00
Dave Hoover 4b61decebb Remove trailing whitespace/unused imports
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6054 542714f4-19e9-0310-aa3c-eee0fc999fb1
2010-04-07 20:32:47 +00:00
Dave Hoover fefff841c3 Fix typoo
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6053 542714f4-19e9-0310-aa3c-eee0fc999fb1
2010-04-07 20:32:46 +00:00
Ray Greenwell 528a9d1f66 @Generated, going stag (without a date).
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6052 542714f4-19e9-0310-aa3c-eee0fc999fb1
2010-04-07 16:12:43 +00:00
Ray Greenwell 4496ec9ae4 Mdb dislikes the date and points out that our tasks regenerate these
files every time, so it'll get in the way of version control. Mrmph.
So: make the date optional, and leave it out for now.

Other comments?


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6051 542714f4-19e9-0310-aa3c-eee0fc999fb1
2010-04-07 16:12:04 +00:00
Ray Greenwell 43e556fb59 @Generated annotation.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6050 542714f4-19e9-0310-aa3c-eee0fc999fb1
2010-04-07 05:33:54 +00:00
Ray Greenwell e5b45f2ef0 Add the @Generated annotation to Marshaller/Receiver classes
and various dobj bits. The @Generated annotation is "@Documented" and
retained at source only.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6049 542714f4-19e9-0310-aa3c-eee0fc999fb1
2010-04-07 05:32:11 +00:00
Charlie Groves d5d9b7f9ea RootDObjectManager already implements RunQueue and Executor
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6048 542714f4-19e9-0310-aa3c-eee0fc999fb1
2010-03-31 19:26:46 +00:00
Andrzej Kapolka bd6a35677a Track datagrams received out of order and missed datagrams.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6047 542714f4-19e9-0310-aa3c-eee0fc999fb1
2010-03-18 20:36:25 +00:00
Mike Thomas 5ecfff4bcb Some types of DSet may be okay with larger sizes before warning, break out the cutoff so we can override.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6046 542714f4-19e9-0310-aa3c-eee0fc999fb1
2010-03-18 16:49:38 +00:00
Michael Bayne 7eb35b5dc1 Some code hygiene.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6045 542714f4-19e9-0310-aa3c-eee0fc999fb1
2010-03-16 23:57:28 +00:00
Ray Greenwell 90a6d78a3c Revert. We'll roll something together when Zell's not trying to release.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6042 542714f4-19e9-0310-aa3c-eee0fc999fb1
2010-02-22 20:26:31 +00:00
Ray Greenwell 90ff35b3a0 In theory, this should work as well to read strings.
It could be more effecient w/r/t generating garbage.

I would have just replaced readUTF() in ObjectInputStream and switch
us to unmodified-UTF8 for all streaming needs. Wouldn't that be
simpler?


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6041 542714f4-19e9-0310-aa3c-eee0fc999fb1
2010-02-22 20:03:45 +00:00
Par Winzell 42dbe1e11d Java's built-in read/writeUTF() methods in ObjectInput/OutputStream use 'Modified UTF-8' for its encoding, which is cleverly designed to be almost exactly like UTF-8, until it's not and it bites you in the behind. Two new methods read/writeUnmodifiedUTF() may be used when real UTF-8 is required. At the current time Narya provides no further wiring-in of this functionality. See Whirled for a brilliant hack that does make use of it.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6040 542714f4-19e9-0310-aa3c-eee0fc999fb1
2010-02-22 14:12:50 +00:00
Ray Greenwell cbaa8e480e Using finalizers like this is a bad idea. I did this years ago.
At least call super() in a finally block, but I'll see if this can
be cleaned.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6039 542714f4-19e9-0310-aa3c-eee0fc999fb1
2010-02-17 02:38:11 +00:00
Dave Hoover 83f71c606e @Override gets the point across
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6038 542714f4-19e9-0310-aa3c-eee0fc999fb1
2010-02-10 20:32:51 +00:00
Dave Hoover 3414612462 Nix unused imports
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6037 542714f4-19e9-0310-aa3c-eee0fc999fb1
2010-02-10 20:32:49 +00:00
Michael Bayne 0b90f21fe3 No need for this null check. We already dereferenced _client earlier to obtain
our connection id.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6035 542714f4-19e9-0310-aa3c-eee0fc999fb1
2010-02-09 19:55:22 +00:00
Michael Bayne c7ac36ac51 This is dubious. We define an _omgr that shadows super._omgr, assign it in our
constructor and then never use it. This is almost a noop, except that
ClientDObjectMgr registers and starts a flusher interval that will never be
shutdown. Since ServerCommunicator lives for the lifetime of the server, this
has not caused problems.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6034 542714f4-19e9-0310-aa3c-eee0fc999fb1
2010-02-09 19:54:15 +00:00
Michael Bayne f9524a1a9e PeerManager already injects an InvocationManager.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6033 542714f4-19e9-0310-aa3c-eee0fc999fb1
2010-02-09 19:51:44 +00:00
Dave Hoover ca3d96920a Generics
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6032 542714f4-19e9-0310-aa3c-eee0fc999fb1
2010-02-04 23:06:14 +00:00
Mike Thomas 493352c933 A little explanatory commenting.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6031 542714f4-19e9-0310-aa3c-eee0fc999fb1
2010-02-04 22:30:58 +00:00
Mike Thomas e206d26515 I've broken out how the FieldEditors access their data into a separate Accessor plugin. This way, we can replace the default DObjectAccessor with (for example) an accessor that deals with multiple DObjects simultaneously.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6030 542714f4-19e9-0310-aa3c-eee0fc999fb1
2010-02-04 22:22:49 +00:00
Ray Greenwell c326538c07 Regenerated: DSet's just clone() now.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6029 542714f4-19e9-0310-aa3c-eee0fc999fb1
2010-02-04 21:49:00 +00:00
Ray Greenwell 961fa75665 DSet.clone() has been modernized for a while now, rendering typedClone()
pointless. Let's deprecate it and auto-generate DObjects that just use clone().


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6028 542714f4-19e9-0310-aa3c-eee0fc999fb1
2010-02-04 21:48:37 +00:00
Dave Hoover 38782be051 Publicize getSuffix.
Down in yohoho, I've hit a case where I need to explicitly look up
a pluralized key of my very own.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6026 542714f4-19e9-0310-aa3c-eee0fc999fb1
2010-02-03 01:33:29 +00:00
Dave Hoover 49de1913d9 Whitespace
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6025 542714f4-19e9-0310-aa3c-eee0fc999fb1
2010-02-03 01:06:50 +00:00
Charlie Groves 1420b06d3b Clear the ThreadLocal after finishing with a method to keep from hanging onto the Stack and thereby
the Stack's classloader from that thread



git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6024 542714f4-19e9-0310-aa3c-eee0fc999fb1
2010-01-28 23:12:27 +00:00
Andrzej Kapolka d8b59b64c9 Specify the last chat mode so that we can define new ones without
fear of overlap.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6023 542714f4-19e9-0310-aa3c-eee0fc999fb1
2010-01-28 21:10:33 +00:00
Charlie Groves a996fe44a6 Turns out Double.MIN_VALUE is a completely different thing than Integer.MIN_VALUE
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6022 542714f4-19e9-0310-aa3c-eee0fc999fb1
2010-01-26 22:47:20 +00:00
Andrzej Kapolka df356599fc Don't complain if we didn't init our PeerManager; we don't do that if
we're not running in a peered environment.  Technically it might be
better to add the PeerManager to the lifecycle in init, but I don't
want to screw with the shutdown order, and this is the lowest-impact
solution.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6021 542714f4-19e9-0310-aa3c-eee0fc999fb1
2010-01-26 03:10:53 +00:00
Charlie Groves be61ed2f50 Record min and max samples as well
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6020 542714f4-19e9-0310-aa3c-eee0fc999fb1
2010-01-25 00:07:29 +00:00
Charlie Groves c86c71d2f9 Creator is now just Function
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6019 542714f4-19e9-0310-aa3c-eee0fc999fb1
2010-01-25 00:05:10 +00:00
Charlie Groves 9c92618773 Break the stat collection out from MethodProfiler, and use a calculating map from MapMaker to keep
from needing to synchronize around profile access.



git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6018 542714f4-19e9-0310-aa3c-eee0fc999fb1
2010-01-22 03:53:25 +00:00
Charlie Groves d86971592a Use the rolling variance calculation from http://en.wikipedia.org/wiki/Algorithms_for_calculating_variance#On-line_algorithm as whatever one is in here currently was getting out of whack in biteme
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6017 542714f4-19e9-0310-aa3c-eee0fc999fb1
2010-01-22 02:46:06 +00:00
Dave Hoover 1926012bc5 Remove now spurious casts
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6016 542714f4-19e9-0310-aa3c-eee0fc999fb1
2010-01-13 19:19:15 +00:00
Ray Greenwell c4d132b232 clone() modernization.
Apologies for the redundant cast warnings this is sure to introduce.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6015 542714f4-19e9-0310-aa3c-eee0fc999fb1
2010-01-13 18:19:48 +00:00