The Store is used to register the node so other nodes in the same perftest formation can access it.
Checks if this Store has started.
- true if started, false otherwise
Gets the runner instance information from the store as a map of their keys to
their Runner information.
- the keys mapped to Runner information
Gets the runner instance information from the store as a map of keys Runner instances.
runner a runner to exclude from results (none if null)
- the keys mapped to Runner instance
Downloads a file from the store by key, and places it in a temporary file returning
the file. Use this to download big things like war files or results.
tempDir the temporary directory to use
runnerWar the path
- the File object referencing the temporary file
- IOException if there's a problem accessing the stream
Downloads files from the store as a folder structure under the specified
results directory with the top most folder being the bucket name.
resultsDirectory the directory to dump all results and summaries into
prefix the key or path prefix to use, null applies no prefix
filter a filter used to filter out desired candidates to download
- Exception if there are problems downloading any items
Stores the summary and results file for a chop test run into the store.
project the project associated with the run
summary the summary information associated with the test run
resultsFile the results log file
testClass the chopped test class
Stores the project test information.
project the Project object to be serialized and stored
Tries to load a Project file based on prepackaged runner metadata: the runner's
loadKey. If it cannot find it, null is returned.
runnerWar the load key for the runner war
- the Project object if it exists in the store or null if it does not
Registers this runner instance by adding its instance information into the
store as a properties file using the following key format:
runner the runner's configuration instance to be registered
Removes this Runner's registration.
runner the runners information
Scans for projects with test information under the bucket as:
- a set of keys as Strings for test information
Deletes all the projects in the store.
Deletes all the runner registrations outside of the provided collection.
activeRunners the hostnames of the active runners that should NOT be deleted
Checks to see if a runner has deposited run summary information for a chopped test in
runner the runner to check for chop completion
project the project being run
runNumber the run number
testClass the chopped test to check for completion on
- true if the summary information has been deposited, false otherwise
Checks the store to find the next available run number starting at 1. This method
needs to be used with extreme caution. It should only be used when starting up a
runner's controller. The intention is to be able to enable Judo Chop to restart
runner containers between runs to refresh the Tomcat container.
WARNING: It should not be used at any time other than runner initialization since if
used with many runners concurrently during test dumps to the store, it could result
in race conditions. During runner initialization this is not a possibility on the
project the project configuration
- the next available run number