Revert ClassDep to using URLClassLoader to reduce frequency of bug causing truncation of dep files, resulting in class files missing from jar's, causing ClassNotFoundException in tests.

git-svn-id: http://svn.apache.org/repos/asf/river/jtsk/skunk/qa_refactor/trunk@1589542 13f79535-47bb-0310-9956-ffa450edef68
RIVER-336 Refactoring of work done by Sim & Gregg.  Updated all River code in the main src distribution to utilize ClassLoading, instead of RMIClassLoader, including marshaling and unmarshaling of MarshalledObject's using MarshalledInstance, this ensures that the replacement service provider mechanism is fully utilized, instead of using RMIClassLoader.  Since both replacement provider classes for RMIClassLoader, proposed to date, have identical methods to RMIClassLoaderSpi, RMIClassLoaderSpi has been retained, to ensure that existing providers can be utilized without requiring recompilation.  ServiceLoader is used to load RMIClassLoaderSpi, however this is done directly by ClassLoading, not RMIClassLoader and clients may specify which instance they want from a list of available providers by setting the system property "net.jini.loader.ClassLoading.provider". 

ClassLoading was chosen to delegate to the provider, since it already contained two methods compatible with and delegated to RMIClassLoader and it only required two more static methods to replace RMIClassLoader functionality and delegate directly to an RMIClassLoaderSpi provider.

Tests that test PreferredClassProvider have been converted to utilize ClassLoading instead of RMIClassLoader.

ClassLoading also has a third method that delegates to the three argument version of Class.forName, this new method fixes a hotspot and source of lock contention in mahalo's RandomStressTest, by thread confining calls for each ClassLoader when loading classes, as a result the Class.forName hot spot has been reduced from 50% cpu to under 3% cpu.

In addition debug mode has been set back to false for transaction testing.

git-svn-id: http://svn.apache.org/repos/asf/river/jtsk/skunk/qa_refactor/trunk@1590000 13f79535-47bb-0310-9956-ffa450edef68
RIVER-336 Minor update to ClassLoading to allow modular frameworks to specify the ClassLoader used to load a RMIClassLoaderSpi provider.

git-svn-id: http://svn.apache.org/repos/asf/river/jtsk/skunk/qa_refactor/trunk@1590226 13f79535-47bb-0310-9956-ffa450edef68
RIVER-336 Minor update to ClassLoading.  Be careful with MarshalledObject obtained from ActivationGroupDesc

git-svn-id: http://svn.apache.org/repos/asf/river/jtsk/skunk/qa_refactor/trunk@1590241 13f79535-47bb-0310-9956-ffa450edef68
The net.jini.lookup classes should not be part of jsk-platform.jar

git-svn-id: http://svn.apache.org/repos/asf/river/jtsk/skunk/qa_refactor/trunk@1590276 13f79535-47bb-0310-9956-ffa450edef68
RIVER-336 Update to ClassLoading.  Convert remaining tests to utilise the new java.rmi.server.RMIClassLoaderSpi provider in ClassLoading

Reduce number of tasks executed in RandomStressTest to avoid OOME on 32 bit platforms.

Updated configuration.policy to ensure that all configuration files had sufficient permission to be tested,  broken.prop wasn't being tested, not sure how long this has been the case, but it's fixed now.

git-svn-id: http://svn.apache.org/repos/asf/river/jtsk/skunk/qa_refactor/trunk@1590379 13f79535-47bb-0310-9956-ffa450edef68
Removed import of net.jini.discovery.LookupLocatorDiscovery. The net.jini.discovery.LookupLocatorDiscovery class is not in the jsk-platform module, and causes a compile error when included as an import. The import is only required since it is used in the @see javadoc directive. Including the fully qualified net.jini.discovery.LookupLocatorDiscovery class in the @see directive resolves the issue.

git-svn-id: http://svn.apache.org/repos/asf/river/jtsk/skunk/qa_refactor/trunk@1590676 13f79535-47bb-0310-9956-ffa450edef68
The org.apache.river.api.lookup.* classes are not included into jsk-platform.jar, they reference classes that are found in jsk-lib.jar and/or jsk-dl.jar

git-svn-id: http://svn.apache.org/repos/asf/river/jtsk/skunk/qa_refactor/trunk@1590678 13f79535-47bb-0310-9956-ffa450edef68
Moved com.sun.jini.landlord.LeasedResource into jsk-dl.jar. This was done to accomodate outrigger-dl.jar's reliance on com.sun.jini.landlord.LeasedResource from com.sun.jini.outrigger.StorableResource. In the ant based build, LeasedResource was included using classdepandjar. Using a Maven build, outrigger-dl depends on river-dl (new name for jsk-dl). Adding LeasedResource to river-dl made sense. The approach taken to populate the source tree in the maven-zed structure is to load exiting jars, and for each entry in the loaded jar, copy the source files into each respective module's src directory, taking care not to duplicate any classes between modules. Making he change to jsk-dl.jar's build allows the river-dl module to be created correctly.

git-svn-id: http://svn.apache.org/repos/asf/river/jtsk/skunk/qa_refactor/trunk@1590726 13f79535-47bb-0310-9956-ffa450edef68
Adding initial commit for the modularization of River. This approach uses a script to load existing River jars, iterate through the contents of each jar, and copy sources to a multi-module maven project. The multi-module maven project is a start, it does not contain all the requisite River modules. It includes river-platform, river-start, river-dl, river-lib, outrigger-dl, outrigger-service, outrigger-snaplogstore, reggie-dl, reggie-service, mahalo-dl, mahalo-service, mercury-dl, mercury-service, norm-dl and norm-service

git-svn-id: http://svn.apache.org/repos/asf/river/jtsk/skunk/qa_refactor/trunk@1590727 13f79535-47bb-0310-9956-ffa450edef68
Added support to generate PREFERRED.LISt files read from jars, and added support to create the river-resources module

git-svn-id: http://svn.apache.org/repos/asf/river/jtsk/skunk/qa_refactor/trunk@1590736 13f79535-47bb-0310-9956-ffa450edef68
Update to ClassLoading to prevent interaction with profilers.

Change RandomStressTest to utilize ExecutorService version of RetryTask, instead of deprecated TaskManager constructor, reduce number of transaction participants and tasks to sensible levels, higher levels stresses the test code, not Mahalo, the tests don't really phase Mahalo, which consumes less resources than the test code.

Fixed a hotspot in TcpServerEndpoint.

git-svn-id: http://svn.apache.org/repos/asf/river/jtsk/skunk/qa_refactor/trunk@1590959 13f79535-47bb-0310-9956-ffa450edef68
Added license headers to poms

git-svn-id: http://svn.apache.org/repos/asf/river/jtsk/skunk/qa_refactor/trunk@1591133 13f79535-47bb-0310-9956-ffa450edef68
Add classpath manifest entries for high-scale-lib and custard-apple

git-svn-id: http://svn.apache.org/repos/asf/river/jtsk/skunk/qa_refactor/trunk@1591146 13f79535-47bb-0310-9956-ffa450edef68
Added service parent poms

git-svn-id: http://svn.apache.org/repos/asf/river/jtsk/skunk/qa_refactor/trunk@1591155 13f79535-47bb-0310-9956-ffa450edef68
Stop using daemon threads for IO in services and platform, for cases where snapshots could be taken during jvm shutdown, use explicit shutdown handler for ThreadPool and interruption instead.
Close standard output in ClassDep at the end of main method call as per Gregg Wonderly's suggestion.
Eliminate a contention hotspot in ConnectionManager.
Increase default connection timeout in ConnectionManager for extended periods of high load.
Replace string concatenation in LeaseRenewDurRFE with StringBuilder
Reduce number of threads used in stress tests, too many threads cause contention and actually reduce the load on the components being tested.
Use RemoteEventComparator in NotifyOnSrvcLeaseExpiration.
Reduce unnecessary thread consumption in Mahalo, use number of processors to assist default number of threads used, if not specified in configuration.
Use a Collection<Permission> instead of Permissions, in PreferredClassLoader, Permissions caused contention in stress tests, where an unsynchronized non mutating final Collection<Permission> has no contention and is thread safe.
Various minor improvements including @Override annotations.
Remove UriString and associated tests.




git-svn-id: http://svn.apache.org/repos/asf/river/jtsk/skunk/qa_refactor/trunk@1593493 13f79535-47bb-0310-9956-ffa450edef68
Remove core dumps

git-svn-id: http://svn.apache.org/repos/asf/river/jtsk/skunk/qa_refactor/trunk@1593494 13f79535-47bb-0310-9956-ffa450edef68
Simplify complex nested locking in Phoenix Activation by using single layer ReentrantReadWriteLock
make fields in PhoenixStarter non final, since 'this' escapes during construction.
replace string concatenation with StringBuilder in ActivateWrapper.

git-svn-id: http://svn.apache.org/repos/asf/river/jtsk/skunk/qa_refactor/trunk@1593691 13f79535-47bb-0310-9956-ffa450edef68
Replace Vector with ArrayList in lookup tests, utilise Collections.sort and RemoteEventComparator, when events need to be ordered at the client before checking results.

git-svn-id: http://svn.apache.org/repos/asf/river/jtsk/skunk/qa_refactor/trunk@1593754 13f79535-47bb-0310-9956-ffa450edef68