Commit Graph

192 Commits

Author SHA1 Message Date
mdb 3d51ed64e8 Added ability to bind to particular interface; cleaned up debugging.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@144 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-06-05 16:52:55 +00:00
mdb 51a33f14fd Created simple prototype music chooser (playlist manager).
git-svn-id: https://samskivert.googlecode.com/svn/trunk@143 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-06-05 16:42:38 +00:00
mdb 6db5867eba Created simple class for communicating with music daemon.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@142 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-06-05 16:42:17 +00:00
mdb 393da669fc Created a script for running the chooser.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@141 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-06-05 16:41:31 +00:00
mdb 32a30546fa More ideas.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@140 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-06-05 16:41:12 +00:00
mdb 6d6eed4fc7 Added PLAYING, made PLAY more sophisticated, added some debugging.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@139 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-06-05 16:40:53 +00:00
mdb 0f9f4f2e5c Handle new invoke() signature, wrap remaining db ops in invoke().
git-svn-id: https://samskivert.googlecode.com/svn/trunk@138 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-06-02 02:22:55 +00:00
mdb 627a309482 Modified Repository.Operation.invoke() to return a value so that it can be
used easily for database lookups as well as database stores.

Modified UserRepository to conform to the new signature as well as to use
execute() for all database operations.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@137 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-06-01 07:27:59 +00:00
mdb 930fa64bab Removed exception map that turned out not to be valid.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@136 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-06-01 07:15:05 +00:00
mdb 57aa7bf3c3 Added another transient exception string to the list.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@135 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-05-30 17:02:52 +00:00
mdb 71a521fae7 Add recognition of another transient error type.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@134 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-05-30 03:18:32 +00:00
mdb 6ae4154689 Put didShutdown() in a finally block so that it is called even if
iterate() or willStart() throws some runtime exception.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@133 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-05-30 00:25:53 +00:00
mdb adcb322b83 Created a Tuple class for passing around pairs of objects.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@132 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-05-29 03:29:54 +00:00
mdb 15a78e501e Created a base class that handles basic stuff for threads that loop
repeatedly, processing events or somesuch.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@131 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-05-29 03:29:44 +00:00
mdb 03c140cb38 Wasn't taking into account off-axis insets in certain cases.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@130 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-05-28 18:26:27 +00:00
mdb 48dedcfbcc Changed getEncodedLocation() to getLocationEncoded() because I like it
more.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@129 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-05-26 23:20:38 +00:00
mdb 37a83abc67 Whoops. deliverMail() should be static.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@128 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-05-26 23:18:30 +00:00
mdb c8ec99a93b Created RequestUtils, a place for HTTP request related utility functions.
Added getLocation() and getLocationEncoded() which reconstruct the URL
used to make this request (complete with query parameters if there are
any). Modified UserManager to use getLocationEncoded() rather than doing
it itself.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@127 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-05-26 23:18:11 +00:00
mdb ea519467c2 Modified to use new Queue member function names.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@126 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-05-26 23:16:56 +00:00
mdb 1c559d79ed Added simple test case.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@125 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-05-26 07:10:09 +00:00
mdb 78b7a5deb5 Commented out debug logging.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@124 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-05-26 07:10:00 +00:00
mdb ed6ecaeb2e Close our JDBC statement when we're done with it.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@123 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-05-26 07:09:38 +00:00
mdb a2f6c52828 Created a utility class for email related stuff. Currently supports
(primitive) delivery and address syntax checking.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@122 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-05-26 07:08:00 +00:00
mdb a55f7a27f4 ensureConnection() and shutdown() should be synchronized as they can be
called by multiple threads and wouldn't cope well if they were.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@121 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-05-26 04:49:31 +00:00
mdb c8a925c524 Added the facilities for persistent sessions which last 30 days rather
than one day. Also fixed a bug with pruning expired sessions.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@120 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-05-26 04:37:35 +00:00
mdb f9163dc894 Fetch the templates via their path relative to the servlet root since we
now load everything through the servlet. This allows us to be totally
application root agnostic.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@119 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-05-26 03:24:19 +00:00
mdb e0136b4ad8 Make sure to call ensureConnection() before accessing the database
directly (most calls should be via execute() but those that are not must
be sure that the connection is established).


git-svn-id: https://samskivert.googlecode.com/svn/trunk@118 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-05-26 03:23:22 +00:00
mdb d2c770dafd Added a main() that allows one to generate an encrypted password given a
username and the plaintext password.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@117 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-05-26 03:22:49 +00:00
mdb 98b01bd225 Modified the code to initiate the connection before the first action and
to ensure that we are connected before every database operation. This
allows our connection to transiently fail even after the first operation,
but then be properly established once the database is again available.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@116 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-05-26 03:22:25 +00:00
mdb 1b26f235c1 Removed Item from the method names (getItem() becomes get(), etc.).
git-svn-id: https://samskivert.googlecode.com/svn/trunk@115 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-05-25 18:44:39 +00:00
mdb b3f2c29d12 Added the ability to invoke methods on objects directly (using
reflection).


git-svn-id: https://samskivert.googlecode.com/svn/trunk@114 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-05-25 18:44:01 +00:00
mdb d8a3e42b26 Created a class to make throttling operations simpler.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@113 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-05-25 18:43:20 +00:00
mdb 7f70824e42 Fail if we can't connect to the music daemon and get the music daemon host
and port from the environment if they're in there.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@112 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-03-22 03:00:25 +00:00
mdb ed6424b58c Bind to all interfaces.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@111 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-03-22 02:59:13 +00:00
mdb 5ca07d34f5 Generate mp3 file names with leading zeros (ie. xx/ID/05.mp3) so that they
are easier to deal with.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@110 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-03-22 02:45:13 +00:00
mdb 0f249ee49f Output something sane when we aren't playing any songs. Added a "SKIP"
command which allows the currently playing song to be skipped.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@109 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-03-22 02:44:26 +00:00
mdb 7ff3ddc7ac Wrote an mp3 music playing server that can be remotely controlled via TCP
connections using perl and MPEG::MP3Play. Ah how easy it can be to write
things in glue languages.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@108 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-03-22 02:41:36 +00:00
mdb 219d25a195 Simple script for running the importer class.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@107 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-03-22 02:40:52 +00:00
mdb 4c7d34bcca Center the primary window. Created a "finished" panel which allows you to
go back and rip another CD or (soon) to edit/categorize the CD you just
ripped. Cleaned up various other kibbles.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@106 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-03-21 00:41:03 +00:00
mdb 485a2e118f Whoops. Forgot to return from invokeTask() if the task completed
successfully.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@105 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-03-20 04:33:11 +00:00
mdb 40484d1f57 Created a utility for invoking tasks such that they can be retried by the
user if they fail (presumably after making some external change like
changing file permissions or restarting a database).


git-svn-id: https://samskivert.googlecode.com/svn/trunk@104 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-03-19 23:03:56 +00:00
mdb e13e406cfd Added the ability to retry operations if a transient failure occurs. Also
cleaned up connection handling so that the connection to the database can
properly be closed and reestablished on transient failure.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@103 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-03-19 22:59:08 +00:00
mdb a6854ab613 Only try to close our connection object if it has successfully been
created in the first place.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@102 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-03-19 22:58:06 +00:00
mdb 69f51a8559 Finished up the importer and fixed various things along the way.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@101 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-03-18 06:58:55 +00:00
mdb d9df144cbf Look in dist/classes rather than src/java now for our classes,
etc. because we build with ANT.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@100 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-03-15 19:34:06 +00:00
mdb 23cce67346 Dispatch task completions on the swing event thread.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@99 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-03-15 19:34:06 +00:00
mdb 53d7315932 Added getParameter().
git-svn-id: https://samskivert.googlecode.com/svn/trunk@98 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-03-15 19:33:37 +00:00
mdb f0d5d50fe3 invoke() now takes an Application parameter.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@97 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-03-15 19:33:14 +00:00
mdb 557b8073a7 Switching to ant build system.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@96 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-03-12 01:27:37 +00:00
mdb 0b7a29c7ed Exit after launching unless we're being compiled in applet mode (which
isn't fully reinstated yet anyway).


git-svn-id: https://samskivert.googlecode.com/svn/trunk@95 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-03-10 20:43:57 +00:00