ff3c59799b
No longer need atunit.jar.
Michael Bayne
2009-07-21 00:30:16 +00:00
5985d4086a
Added a unit test for shutting down intervals when the omgr shuts down.
Michael Bayne
2009-07-21 00:29:56 +00:00
9d93ea7a90
Nixed our ATUnit dependency which wasn't working. Better that we just do the Guicing we need ourselves.
Michael Bayne
2009-07-21 00:29:37 +00:00
0cd0a67679
Include the Runnable's toString in the toString of Intervals created by PresentsDObjectMgr
Charlie Groves
2009-07-20 23:57:24 +00:00
c82c8bdf9b
We need to cancel ourselves before we're posted to the RunQueue and in order to preserve Interval's behavior of not executing an interval that was canceled after it was posted to its runqueue but before it was executed we have to do some nested craziness.
Michael Bayne
2009-07-20 23:50:19 +00:00
8c2a1d9b37
Factor out our report interval specification so that Yohoho can change it without hackery.
Michael Bayne
2009-07-20 22:58:39 +00:00
c0c68f98d3
Added RootDObjectManager.newInterval() for creating intervals that are automatically canceled when the omgr is shutdown (they actually cancel themselves if they fire after the omgr has been shutdown, which stock intervals also do, but these guys do so quietly because we know they mean to work that way).
Michael Bayne
2009-07-20 22:43:00 +00:00
57b630727e
Unused import
Dave Hoover
2009-07-20 21:37:15 +00:00
db2ef0f8f0
Judging by this method from RMISynchronousCacheReplicator:
Michael Bayne
2009-07-18 00:55:50 +00:00
7e8a42487d
Only return cache information on the cache requested.
Michael Bayne
2009-07-17 22:26:57 +00:00
eceae381af
Move ObjectSet to narya from contrib
Tom Conkling
2009-07-17 18:58:45 +00:00
7e5f28042f
I thought I compiled this before committing but apparnetly not
Tom Conkling
2009-07-17 18:44:34 +00:00
d4c3964b22
ObjectMap
Tom Conkling
2009-07-17 18:37:38 +00:00
b4599943c8
Bugfix: return to correct functioning behavior, with added functional fun, which is what mdb probably intended.
Ray Greenwell
2009-07-14 20:36:14 +00:00
ef600104e4
Unused import patrol
Dave Hoover
2009-07-13 17:22:04 +00:00
31eda1cfc9
Let's do that *after* we've checked sochan for nullity.
Michael Bayne
2009-07-13 02:12:57 +00:00
0cf6b6199e
Don't try writing overflow messages for an outgoing connection that is still waiting to connect.
Michael Bayne
2009-07-13 02:12:24 +00:00
231edfa66e
applyToNodes() is superfluous now that we have getNodeObjects().
Michael Bayne
2009-07-13 00:59:32 +00:00
047dd3b871
Sprinkled some functional programming onto node object handling.
Michael Bayne
2009-07-13 00:55:03 +00:00
9cdd93ee11
Publish our server startup time in our NodeObject.
Michael Bayne
2009-07-13 00:34:19 +00:00
646b438404
We need commons-collections as well for our velocity-using tools.
Michael Bayne
2009-07-13 00:29:59 +00:00
c6ba34a129
You'd think that calling isConnectionPending() would return true on a channel that would throw a NotYetConnectedException when you tried to write to it. Yes, you'd definitely think that.
Michael Bayne
2009-07-13 00:22:24 +00:00
4bcc8ab7c4
Less spammy ant task error reporting, further narya-tools dependencies.
Michael Bayne
2009-07-12 22:19:22 +00:00
f7152e9ac6
Throw a build exception if Velocity freaks out.
Michael Bayne
2009-07-12 22:05:39 +00:00
1e2b48deb2
Shorten the property file name.
Michael Bayne
2009-07-12 22:02:49 +00:00
1e5b1e5a7f
Place all of our tools into narya-tools along with all of their dependencies. Provide an ant properties file that defines all of our tasks in one fell swoop.
Michael Bayne
2009-07-12 22:00:36 +00:00
e9f3d53a76
Nix commons dependencies.
Michael Bayne
2009-07-12 21:14:37 +00:00
83ce3f004e
Added ByteEnum interface to ActionScript, and ByteEnumUtil. Use this if you want your enums to persist to a byte reliably. Coming soonesque: narya streaming support for ByteEnum.
Ray Greenwell
2009-07-11 00:08:41 +00:00
6dbdf8d413
Killed fromOrdinal(). Not available in Java, and generally a bad idea. Pretend ordinal() doesn't exist, unless you're writing EnumSet, or something.
Ray Greenwell
2009-07-11 00:06:23 +00:00
10c1da22bd
case-insensitive String comparison util
Tom Conkling
2009-07-10 20:24:45 +00:00
6d740bf7b3
Truth in commenting.
Michael Bayne
2009-07-10 06:31:49 +00:00
95bae1dec8
We need to distinguish between a connection that is still pending (which may be the case for an outgoing connection since we do our connection asynchronously) and a connection that is no longer connected because it once was open and now it's closed.
Michael Bayne
2009-07-10 06:30:41 +00:00
266595e2a0
Disallow access to atunit/lib/com/google in atunit.jar
Charlie Groves
2009-07-08 21:06:48 +00:00
03408cbda8
Don't allow the dummy DObject to be destroyed. That shouldn't happen in the normal course of operations, but previously if someone called destroy on an uninitialized DObject or called PresentsDObjectManager.destroyObject with its oid, it'd be destroyed. Subscribing to objects depends on that object existing, so if it's destroyed, the server will continue to function normally except that subscription requests will be silently dropped.
Charlie Groves
2009-07-05 23:18:51 +00:00
c260457c6e
Whoops
Tom Conkling
2009-07-04 23:06:07 +00:00
95a159016f
Utility function for converting from ordinal to Enum
Tom Conkling
2009-07-04 22:48:21 +00:00
21712c5883
Just say it
Charlie Groves
2009-07-04 00:07:22 +00:00
c835698e9f
We can't inject the PresentsDObjectMgr because that causes a circular dependency, but we can inject RunQueue which will Guice will magically defer to avoid the circularity.
Michael Bayne
2009-07-03 23:26:00 +00:00
4731294773
Instead of having to disable the periodic server reports with a cumbersome specialized ReportManager, let's just not activate them by default.
Michael Bayne
2009-07-03 23:09:04 +00:00
08292eec9e
Ehcache 1.6.0 requires an implementation of getScheme(). I'm not 100% clear what this is meant to do, but I'll sort that out once I have it up and running.
Michael Bayne
2009-07-02 20:59:04 +00:00
3eb6ee2a4f
Add comment for potentially non-obvious behavior
Tom Conkling
2009-07-02 19:14:55 +00:00
97befada23
We can just inject the injector.
Michael Bayne
2009-07-01 19:02:45 +00:00
f80e1f07d8
Break out command prefix checking
Charlie Groves
2009-06-30 22:39:31 +00:00
4d3f79d732
If we hit an exact match in looking for command handlers, return only it and ignore any other commands that are prefixes.
Charlie Groves
2009-06-30 22:15:20 +00:00
437c7a3b64
Some name cleanup (client -> session).
Michael Bayne
2009-06-23 18:21:19 +00:00
feb270d4d3
Let the client do funny things with authname in startSession().
Michael Bayne
2009-06-23 18:17:17 +00:00
7efa2c74a7
Tidy up name handling a bit more: when setUsername() is called on a PresentsSession, we don't need to or want to change our auth name, we can and should operate entirely on ClientObject.username. The ClientManager maintains two mappings: "current username" -> ClientObject (which is what needs to change when setUsername or updateUsername is called) and "authname" -> PresentsSession which has always been just the authname and has never changed during the course of a session. PresentsSession.getUsername() goes away and PresentsSession.getAuthName() always returns the name that was used to authenticate the session.
Michael Bayne
2009-06-23 06:20:31 +00:00
0df7b9681a
Instead of hiding a default for that switch up at comic, let's name all the legal values for that enum, yell in the one wacky case that shouldn't be possible, and let the compiler yell at us if we ever add more things to CurseFilter.Mode and forget them in that switch
Dave Hoover
2009-06-22 23:46:06 +00:00
de3e23baac
The JVM's heap status at server startup is not hugely useful.
Michael Bayne
2009-06-22 22:26:13 +00:00
2c2e28f5ed
Move our EHCache peer coordinator down here where other projects can use it.
Michael Bayne
2009-06-22 22:10:34 +00:00
fcda0f3156
Added internal hostname reporting, documented other PeerNode methods.
Michael Bayne
2009-06-22 22:05:06 +00:00
55f66f01da
Use AuthException.
Michael Bayne
2009-06-22 19:05:51 +00:00
dcc04247ab
Provide AuthException to simplify auth failure handling for Authenticator implementations.
Michael Bayne
2009-06-22 18:52:17 +00:00
7db51dafdb
Mark overrides
Dave Hoover
2009-06-22 17:36:32 +00:00
6e9077780c
Added/updated source headers.
Michael Bayne
2009-06-20 21:09:34 +00:00
a1aa2d77ae
Revamping/cleanup of how we handle authentication usernames as well as chained authenticators and chained session factories. We can share a lot more code this way and the implicit requirement that the default authenticator/factory had to be configured before anyone else configured a chanied author/factory is gone.
Michael Bayne
2009-06-20 00:56:01 +00:00
7d125bec73
KeepNoHistory is implemented by data objects, so it needs to live in data
Charlie Groves
2009-06-17 01:33:15 +00:00
501e62616c
Add a marker interface that Names can implement to indicate to SpeakUtil that they don't need chat history
Charlie Groves
2009-06-17 00:07:24 +00:00
09b965dae5
This may no longer be one of those since we can scroll the tabs on our config editor
Dave Hoover
2009-06-16 22:13:45 +00:00
3a2fe8329c
@Singleton annotations are not inherited (unfortunately), so it does not make sense to annotate an abstract class as a @Singleton. Guice 2.0 disallows it.
Michael Bayne
2009-06-15 22:17:56 +00:00
647897cd6d
This may cause small breakage for folks extending ChatDirector, but let's make these things that just add & remove from our collections of things return the values from their collections.
Dave Hoover
2009-06-10 21:17:51 +00:00
d85244e4e9
s/validator/filter/ in an appropriate place, and some other comment widening
Dave Hoover
2009-06-10 21:01:33 +00:00
c016fab8e8
Break a few parts out for use in subclasses
Dave Hoover
2009-06-09 21:00:21 +00:00
c3845a8b15
Fix simpleToString() per Tim's desire: Cope with a bogus passed-in property name.
Ray Greenwell
2009-06-09 18:16:16 +00:00
4d01f18906
We've got enough of these in yohoho now that with some text settings, you get two columns of tabs, which is...Bad.
Dave Hoover
2009-06-09 17:36:27 +00:00
201e0d0cd6
Random cleanup I had kicking around
Dave Hoover
2009-06-09 05:52:53 +00:00
3746b54343
Update RSL info, do not statically link them.
Ray Greenwell
2009-06-08 21:59:25 +00:00
a707fa6234
Let's get stack traces for these.
Andrzej Kapolka
2009-06-04 22:50:11 +00:00
37801c3cf0
Avoid creating sublist when unnecessary.
Andrzej Kapolka
2009-06-04 21:52:24 +00:00
1e6c35f9c1
If we have no socket or a closed socket when trying to write overflow queue messages, treat that like a network failure which will clear out that queue and shutdown the connection. Overflow queues are only meant to handle sockets that are backed up, not closed or non-existent.
Michael Bayne
2009-06-02 22:59:23 +00:00
52795a8664
Broke out speak handler creation so that we can customize it.
Michael Bayne
2009-06-02 20:59:58 +00:00
755c27c41c
Bring AdminService into line with the "a manager implements the provider" world order that came about ages ago.
Michael Bayne
2009-06-02 17:32:57 +00:00
8fd83e009a
Some handy Predicates. I did not add true() and false(), because WTF, YAGNI.
Ray Greenwell
2009-05-30 00:31:08 +00:00
ae6535583a
Use getKey() for updatePartial().
Michael Bayne
2009-05-29 19:14:34 +00:00
f565fa0e42
Update to match Depot API changes.
Michael Bayne
2009-05-29 00:19:32 +00:00
1ef1f31f1f
Get the config objects on add, rather than on construction. That way we can remove and re-add the same panel (if it's in a tabbed pane, for instance).
Andrzej Kapolka
2009-05-27 21:38:37 +00:00
ff4e05749f
Make Lifecycle a singleton without having to introduce a Guice dependency in samskivert.
Michael Bayne
2009-05-27 20:39:32 +00:00
3f19fcacf2
Moved Lifecycle to samskivert (my initial desire to do this came from a non-work project). I promise to stop fooling around now.
Michael Bayne
2009-05-27 19:16:49 +00:00
e87c86dc2c
Let's make the Lifecycle a bit more abstract and decouple it from all the server business. I'd move the whole kit and kaboodle to samskivert but that would mean moving the DependencyGraph as well...
Michael Bayne
2009-05-27 19:09:47 +00:00
d855eb184a
Oops, nix duplicated method.
Michael Bayne
2009-05-27 18:38:44 +00:00
0a20b36c8e
Out with ShutdownManager, in with LifecycleManager which handles both initialization and shutdown. This will obviate the need for a lot of manual wiring up. ShutdownManager still works and passes through to LifecycleManager, but switching to the new deal is encouraged.
Michael Bayne
2009-05-27 18:32:45 +00:00
eb77929940
As on the server, provide a means to detect whether we can transmit datagrams.
Andrzej Kapolka
2009-05-26 20:10:46 +00:00
510e6982bf
Note actual transport on the client, too.
Andrzej Kapolka
2009-05-26 19:57:00 +00:00
b222eed2fd
A healthy dash of google-collections
Dave Hoover
2009-05-23 01:04:08 +00:00
1bdb2cae16
Added methods and @Intern annotation to stream pooled strings (a la String.intern) as we do class names, by sending the value the first time and a short code thereafter (with special handling for datagrams, where me must continue sending the mapping until we know they've been received). This is mostly useful for the lengthy config names and parameter names of Project X, but it could conceivably also be used for things like NamedEvents, which stream the same object field names many times in the course of a stream.
Andrzej Kapolka
2009-05-22 22:43:19 +00:00
e5172053c8
The utility of printing out the message as a byte array seems limited.
Andrzej Kapolka
2009-05-21 23:47:47 +00:00
13251b0d79
Accessor for datagram transmission flag.
Andrzej Kapolka
2009-05-21 23:36:18 +00:00
31e9807c05
Note the actual transport with which events are transmitted.
Andrzej Kapolka
2009-05-21 18:41:42 +00:00
d45b0bdb00
Added an option to bind the datagram socket to a specific hostname, in hopes of fixing the issue with receiving datagrams from the staging server.
Andrzej Kapolka
2009-05-21 18:04:09 +00:00
6dd16483be
Added an extra step to the datagram negotation process. Before the server starts sending datagrams willy-nilly, it must wait for a (reliable) go-ahead from the client. Otherwise, it's possible that the server may be successfully receiving datagrams but not sending them.
Andrzej Kapolka
2009-05-21 04:16:41 +00:00
0f70a5c8d2
Much like NamedSetAdapter, we had this kicking around in yohoho, also.
Dave Hoover
2009-05-19 19:29:29 +00:00
8dd6472824
Allow client code to detect whether or not the client is connected, since isLoggedOn returns true during the dispatch of CLIENT_DID_LOGOFF. This will allow msoy to prevent the display of room change popups when the client is disconnected.
Jamie Doornbos
2009-05-19 18:05:07 +00:00
a6c43b3436
Enough of this verbosity.
Michael Bayne
2009-05-19 05:16:34 +00:00
3b574d3f0e
Make TabbedDSetEditor smart enough to add tabs as needed when values in the dset change (and slap in the todo to make it smart enough to prune tabs if they should go away, though not showing a now-empty tab is far less important than actually letting you get at new values)
Dave Hoover
2009-05-18 17:44:46 +00:00
01721df0b8
Split those up because I'm doing evil things in yohoho & need to override part of it.
Dave Hoover
2009-05-18 17:43:33 +00:00
cb5398c9e8
Time is now specified in milliseconds, as is the norm for times. Added a note.
Ray Greenwell
2009-05-13 19:19:48 +00:00
c6dd5ba201
Add imports for generic types in method arguments
Charlie Groves
2009-05-13 08:40:28 +00:00