Commit Graph

103 Commits

Author SHA1 Message Date
Michael Bayne 86c5cf7c75 [maven-release-plugin] prepare for next development iteration 2015-03-12 11:46:43 -07:00
Michael Bayne 1dccfa1d58 [maven-release-plugin] prepare release narya-1.15 2015-03-12 11:46:40 -07:00
Michael Bayne bbecc4c2fb Objects deprecated, use MoreObjects. 2015-03-12 11:44:12 -07:00
Michael Bayne 8493c455fb Various javadoc fixes. 2015-03-12 11:41:06 -07:00
Michael Bayne be22838013 Version upgrades in prep for release. 2015-03-12 11:34:07 -07:00
Ray J. Greenwell e275c2ceda Added commented-out Java 6 improvements. 2015-01-21 10:26:52 -08:00
Ray J. Greenwell 39d1356e56 Occam's razor.
These String methods have been around since jdk1.1...
2015-01-20 17:23:20 -08:00
Jamie Doornbos 34f98e1c46 Javadoc fixes. 2014-11-14 10:20:11 -08:00
Michael Bayne 9d25489af1 Factor out wire format test.
We can't include things with unpredictable iteration order (sets, maps) in our
wire test, but we still want to test those things in our GIANT STREAMABLE CLASS
OF DOOM test. So we now have a separate wire format test which just ensures
that we don't spuriously break the encoding of things that should be
predictable.
2014-10-21 14:17:00 -07:00
Ray J. Greenwell e7537349c3 Document these constants better.
I've got half a mind to change the default to ORDINAL and let yohoho cope.
2014-08-06 10:44:21 -07:00
Ray J. Greenwell a1dc0730af Preparing for 1.15-SNAPSHOT development. 2014-04-01 16:40:30 -07:00
Ray J. Greenwell 116e1bdf36 Preparing for narya-parent-1.14.3 release. 2014-04-01 16:34:34 -07:00
Sylvain Royer 7105977c49 Fix Narya build. 2014-03-21 14:38:48 -07:00
Sylvain Royer 5afb22cd6c Have default be a final constant, pass in message into chat identifier in case they need to check message type or something. 2014-03-21 14:10:12 -07:00
Sylvain Royer fb01d1d79a Remove import. 2014-03-21 13:05:54 -07:00
Sylvain Royer b9a3efc0b7 Add a source item in the chat history. This allows us to determine from which speak object this chat originated from. 2014-03-21 13:04:40 -07:00
Ray J. Greenwell 43d7e5b726 Drive-by: use one Entry for all logs. 2014-03-20 14:16:00 -07:00
Michael Bayne 8f94d9c329 Cast differently. 2014-01-23 14:24:26 -08:00
Michael Bayne 71e52d355e Added toArrayList().
If we're going to tell you to use an ArrayList instead of toArray(), let's make
that easy. This would be unnecessary if there was an ArrayList constructor that
took Iterable, but there isn't. And DSet is not a Collection.
2014-01-22 13:38:14 -08:00
Michael Bayne 5fb7ca15fc tools.properties should be in the tools submodule. 2014-01-22 13:04:38 -08:00
Michael Bayne 82d9c54ed8 Nix unused imports. 2014-01-20 14:22:20 -08:00
Michael Bayne 65dee239c7 Can't @Override on iface method if we're 1.5 compat. 2014-01-20 14:20:10 -08:00
Mark Johnson f720f10df5 Preparing for 1.15-SNAPSHOT development. 2013-12-10 14:50:38 -08:00
Mark Johnson 6746bcef83 Preparing for narya-parent-1.14.2 release. 2013-12-10 14:43:48 -08:00
Ray J. Greenwell 25cb866cc0 Or maybe just interrupt the reader thread.
This seems to work. I'm going with this unless I hear otherwise.
2013-12-05 14:19:28 -08:00
Ray J. Greenwell cea4b3cfd8 RFC: Fix for datagram reader not shutting down.
Every time a client logs on and back off, another DatagramReader thread
is left around. This seems to fix it, but this method should be called
when either the reader or writer shut down..

Also: the didExit methods look funny:

    /**
     * Callback called by the datagram writer thread when it goes away.
     */
    protected synchronized void datagramWriterDidExit ()
    {
        // clear out our writer reference
        _datagramWriter = null;

        if (_datagramReader == null) {
            closeDatagramChannel();
        }

        log.debug("Datagram writer thread exited.");
    }

Why would it only try to shut things down if there's no reader?
Perhaps the idea here is that it won't shut down the channel until
both the reader and writer exit? It's not documented...
2013-12-05 14:07:51 -08:00
Ray J. Greenwell e842439bd0 Reduce logging.
On success this is followed by a "Session resumed" message, and
something should always be logged on failure too.
2013-10-28 22:27:01 -07:00
Ray J. Greenwell 3bbe3a6330 Suppress logging of common peer condition.
This has been happening for a while on PX and I've been meaning to track
it down. When a peer shuts down an object that's proxied on other peers,
the other peers receive an ObjectDestroyedEvent, and clear the object
from their omgrs. Other listeners may also receive the event and will need
to clear the proxying information, but that causes an unsubscribe to be
queued up, which when it runs will find the DObject already gone, and log
an error.

At first I considered not queuing up the unsubscribe action if the object
is no longer present in the omgr, but in the case that I'm working with
we have 2 or more objects that will all be destroyed simultaneously.
Even if I test to see if the first object is around or not, this same
test would always pass for the second object even though its death event
is next on the queue. The unsubscribe would be enqueued after THAT, so
there's no test to detect that the two objects are linked.

Instead, just suppress this message if we're a peer client. I didn't
want to suppress it altogether because we might want this message logged for
normal client connections. Maybe not.

Perhaps there is a better way. Maybe the PeerNode should add its own
ObjectDeathListener and clear out the proxy information and ensure that
the proxied object is also destoyed, and clients need not unproxy manually
in that case.

RFC.
2013-10-26 18:33:53 -07:00
Ray J. Greenwell 408cf8aa6e Remove 'TEMP' logging from 2008-2009.
The proxy stuff shows up all the time in the px logs.
2013-10-26 18:27:13 -07:00
Michael Bayne f1f1b3bc7e Complain not about rawtypes here javac7. 2013-09-16 10:45:05 -07:00
Mark Johnson adf7c0f717 Preparing for 1.15-SNAPSHOT development. 2013-08-27 19:06:27 -07:00
Mark Johnson f685413037 Preparing for narya-parent-1.14.1 release. 2013-08-27 19:00:57 -07:00
Ray J. Greenwell de3ca2b2ef Final tweaks to the reboot manager.
Consolidate warnings and interval scheduling in doWarning().
Don't let the reboot time drift because of delays on the RunQueue.. each
warning is scheduled based on absolute time from _nextReboot.

doWarning() now takes two args so any subclasses that had overridden
it (unlikley beyond PX) will break...

PendingShutdownObservers will now get the actual milliseconds until reboot.

Basically: after all this, things should essentially work the same except
now there is a protected three-arg version of scheduleReboot that lets you
schedule an exact time, bypassing the normal round-up to the next highest warning time.
2013-08-23 16:34:35 -07:00
Ray J. Greenwell 84e074103b Allow scheduling reboots at exact times.
Previously a reboot time was only exact if it was further away than
the first warning. Otherwise, the time was rounded upwards to
the next warning time. This is probably still desired for manually
scheduled reboots, but when trying to coordinate reboots between
nodes we need to be able to schedule them exactly even if we're
already in the warning phase.
2013-08-23 15:25:45 -07:00
Ray J. Greenwell f3e24f5e89 Added cancelReboot(). 2013-08-23 14:26:47 -07:00
Ray J. Greenwell e67b9e224f Tweaks to the way the reboot manager computes scheduled reboots.
- Previously if you scheduled a reboot for 5am every day, but the
server came up at 3am, it would schedule the reboot for 5am the next
day. Subtract a day if the current time is before the rebootHour.
- When skipping weekends always push the time out rather than
pulling it in. Questionable, but so was the previous behavior.
If you set it to reboot daily but skip weekends, it would not
skip weekends.
2013-08-23 13:28:02 -07:00
Michael Bayne c54b158abd Notify client observers directly if we're already on the RunQueue thread.
This avoids a needless wait in the run queue for most notifications. Only
notifications that result directly from something one of the communicator
threads did will need to do a loop de loop.

This should close the hole where ClientObserver could be told that the
ClientObject was available *after* some events have come in on the ClientObject
(which they then miss). Now when the subscription response comes in for the
ClientObject, observers are notified immediately, and will be wired up and
ready for any messages that are themselves already in the queue ready to be
dispatched.
2013-08-23 10:29:48 -07:00
Michael Bayne 0f205c2e6d [maven-release-plugin] prepare for next development iteration 2013-05-07 14:26:02 -07:00
Michael Bayne 9e5f451fa6 [maven-release-plugin] prepare release narya-parent-1.14 2013-05-07 14:25:53 -07:00
Michael Bayne a878b744fc We need the latest gwt-utils to get rid of guava-jdk5. 2013-05-07 14:23:41 -07:00
Michael Bayne d62faf77c4 Depend on latest biz. 2013-05-07 14:16:00 -07:00
Ray J. Greenwell b89ea9452f Fail with an informative message if there are NO constructors.
Which shouldn't happen.
And re: the last commit, this is only called once for each class
so the deal wasn't so big.
2013-03-20 18:05:26 -07:00
Ray J. Greenwell 09ff91cbdb Let's just reflect once when there's no 0-arg constructor. 2013-03-20 18:02:36 -07:00
Mark Johnson a8271a782d Preparing for 1.14-SNAPSHOT development. 2013-02-12 15:35:37 -08:00
Mark Johnson 4388b79264 Preparing for narya-parent-1.13.2 release. 2013-02-12 15:29:15 -08:00
Mark Johnson e88ffcce66 Have PresentsServer pass itself to PresentsInvoker when starting the thread instead of being
injected directly into the invoker to prevent potential circular dependency issues.
2013-02-05 15:47:29 -08:00
Mark Johnson 86f5073d19 Preparing for 1.14-SNAPSHOT development. 2013-02-05 14:09:21 -08:00
Mark Johnson 6d0e7055d4 Preparing for narya-parent-1.13.1 release. 2013-02-05 14:03:56 -08:00
Mark Johnson d86c851856 Require passing in the DObjectManager for activatePeriodicReport instead of injecting it which was
causing a circular dependency
2013-02-05 13:48:57 -08:00
Mark Johnson 8d110fc23e Move to guice 3.0 2013-02-05 13:44:55 -08:00