mdb
573ce7859b
Added the ability to clear a unit profile.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1578 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-01-24 17:15:40 +00:00
mdb
bd11a19d15
Track and report the time units spend waiting on the queue; track the
...
total elapsed time and report the average time in our profiles.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1577 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-01-24 17:13:07 +00:00
mdb
d3108041ce
Added increment().
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1576 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-01-19 21:47:33 +00:00
eric
549ed08a6b
Added support for exists(key) in the I18nTool.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1575 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-01-19 21:13:18 +00:00
mdb
7429fcf836
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1574 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-01-14 18:03:30 +00:00
mdb
e2b90d6f7b
Added some other date formatting conveniences.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1573 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-01-14 18:00:58 +00:00
mdb
4f13eb8571
More documentation cleanup.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1572 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-01-14 16:05:19 +00:00
mdb
233fc6db0a
Javadoc fixes.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1571 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-01-14 15:54:33 +00:00
ray
8faf57a446
Small optimization: reduced access to our volatile variable _task.
...
Also, realized that there was potential for a runaway task if two threads
called schedule() and cancel() simultaneously and the planets are aligned.
Cancel any de-fanged task in case it is a runaway.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1570 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-01-13 02:12:39 +00:00
ray
c8ef17c7cc
Added clarifying method header documentation.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1569 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-01-11 23:49:38 +00:00
ray
c20d6f2108
Output UTF8 encoded strings.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1568 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-01-08 23:46:31 +00:00
ray
a100b234ab
Lazy-create the Runnable that expires us on the RunQueue.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1567 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-01-07 22:51:04 +00:00
eric
a6eb8ef8d7
Moved Ray's safeJigger into JDBCUtil so it can be shared with the world.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1566 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-01-07 03:14:04 +00:00
mdb
78582d3cbc
samskivert is a standalone third party library. It doesn't magically
...
integrate with our build environment any more than the Apache libraries
do.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1565 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-01-06 01:07:46 +00:00
ray
a91f9d008c
Don't choke if the specified password is null (because we're automatically
...
logging someone in).
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1564 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-01-05 23:58:23 +00:00
ray
687afd6f59
Fixed NPE with creating new accounts.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1563 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-01-05 23:27:43 +00:00
ray
877d063b5b
Allow us to set up a java.libraries location like the threerings project does.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1562 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-01-05 22:54:16 +00:00
ray
b21c25a09f
Removed debugging line.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1561 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-01-03 19:41:04 +00:00
ray
cfb86a99e6
Create a special Runnable for posting to the RunQueue, rather than checking
...
to see if we're on the RunQueue twice each firing.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1560 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-01-03 19:40:19 +00:00
ray
3aa4be39a3
TimerTask is already Runnable.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1559 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-12-23 21:16:26 +00:00
ray
3bdf982c8a
We don't need to synchronize if we just catch the one non-critical NPE that
...
might happen once in a blue moon if we don't.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1558 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-12-23 18:57:01 +00:00
ray
51e29bf09e
Edited comments.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1557 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-12-23 01:33:51 +00:00
ray
c8cdfbeab1
I read some of Chapter 17, but started to go cross-eyed. I did get to
...
the part about volatile variables, and that led me to this simpler
implementation.
Interval is no longer Runnable (good because it won't tempt people to post
the interval themselves), and I got rid of the less-than-sweet _fired
and _expired variables. The trade off? schedule() and cancel() are
synchronized, not a big deal, and the task needs to check if it is
being run on the dispatch thread, which shouldn't be a big deal.
The major plus is that the code is easier to understand.
The same amount of objects are created, and we don't do anything silly
like create a new object every time the interval fires.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1556 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-12-22 23:56:54 +00:00
ray
ccd1e2a278
Added a note about one known weakness that arises from the wonderful complexity of asynchronous execution.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1555 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-12-22 19:53:39 +00:00
ray
77f9c0fa11
The great Interval revamp. Cleaner, better, easier to use.
...
There may be chapter 17 issues, but I'm fairly certain that if there are we can iron those out without changing the API.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1554 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-12-22 19:18:23 +00:00
ray
15bff32e71
Changed RunQueue to be called BasicRunQueue.
...
RunQueue is now an interface that is very simple- it serially runs Runnables.
Removed Invoker.ResultReceiver, the invoker now takes a RunQueue.
The method to post a Runnable to RunQueue is called postRunnable(), rather
than the legacy postUnit(). postUnit() is the method name of the Invoker
to post Invoker.Unit objects, and I just figured it was better to keep those
distinct, since an Invoker.Unit is also a Runnable, it could be very easy
to post an Invoker.Unit to the wrong thing if not careful.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1553 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-12-22 19:17:06 +00:00
ray
f9b876998d
Bye bye, useless redundant code.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1552 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-12-22 00:01:19 +00:00
mdb
a495745c67
Yay! Yet another change to the password system. This time we're switching
...
entirely from old-and-busted crypt() to the new hotness MD5. This allows
us to interoperate cleanly with our soon-to-be new forum system which MD5
encodes a user's password before it ever leaves the web browser. Those
security conscious little devils.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1551 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-12-18 02:33:10 +00:00
mdb
37858624b8
Further magic to support loading Velocity templates from the file system
...
during webapp development.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1550 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-12-18 01:01:44 +00:00
ray
2d1e549454
Fixed minor layout weirdness with GroupLayout- if stretching, the size
...
of the stretchy components was computed as the maximum size of all
the components, even the fixed ones, and they already have their size
accounted for.
Changed to also track the maximum size of the free components and use that
instead.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1549 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-12-15 03:28:08 +00:00
mdb
28d4dd8be3
Wrote a log formatter for the built-in Java logging that formats things
...
more readably and concisely.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1548 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-12-14 22:04:27 +00:00
samskivert@gmail.com
2086cc43cb
Fixed bogosity.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1547 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-12-14 22:04:00 +00:00
ray
83684deb5e
Fire a property change event when we remove a configuration value.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1546 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-12-14 02:40:56 +00:00
ray
01c77d204d
Allow the removal of a configuration value.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1545 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-12-14 02:34:53 +00:00
ray
ae896e9b5b
Also don't choke expanding a zero size array.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1544 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-12-13 06:43:50 +00:00
ray
11c7589db5
Don't choke trying to accomodate when the initial array size was 0.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1543 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-12-13 06:42:53 +00:00
mdb
058aa86400
Provide a sensible default resource loader for applications which don't
...
need the over-engineered per-site-resource-loading system.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1542 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-12-10 23:50:26 +00:00
ray
09e1634711
Support long[] values.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1541 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-12-09 01:33:43 +00:00
ray
5777070d57
Added parseLongArray().
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1540 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-12-09 01:33:33 +00:00
mdb
8cd5ea5f0d
Allow an application to get in on the Velocity configuration process.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1539 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-12-08 01:46:54 +00:00
samskivert@gmail.com
51bcd06a15
Code bloat! The functionality of this class could be implemented fairly
...
easily in java 1.5 by using a ThreadPoolExecutor with 1 thread in the
pool and a special queue implementation that merged like entries,
but we want this special functionality now.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1538 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-12-06 21:58:00 +00:00
mdb
19fc217b07
A (fairly) general purpose implementation of Dijkstra's shortest path
...
algorithm.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1537 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-12-03 00:51:03 +00:00
mdb
8652a7e749
A bridge between samskivert's (old old old) logging facilities and Java's
...
(new new new) built-in logging system.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1536 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-11-27 18:07:58 +00:00
mdb
3cf1a564d1
A LGPL header to add to source files in this project.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1535 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-11-27 18:07:22 +00:00
mdb
6c65b9877a
Fixed formatting.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1534 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-11-27 06:55:00 +00:00
mdb
64b8b1ab9f
Initialize velocity in the proper way.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1533 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-11-26 22:57:59 +00:00
mdb
6cc7786aa6
Moved unStudlyName() into StringUtil from where other deserving callers
...
can make use of it.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1532 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-11-25 00:34:01 +00:00
mdb
5ec20fe9d9
Oops, we meant for that to be static.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1531 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-11-25 00:08:34 +00:00
mdb
b12839560b
A utility for creating a VelocityEngine that's all set up to be used from
...
within a tool in a sensible manner (loading templates from the classpath,
not logging boatloads of informational messages, not complaining about a
non-existent "macro library").
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1530 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-11-25 00:07:16 +00:00
mdb
7ede7ff62e
Having the context path around always will help us to avoid ever hard
...
coding it.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1529 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-11-19 17:36:47 +00:00