Commit a7c86140 authored by Florian Fittkau's avatar Florian Fittkau

init

parents
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="test"/>
<classpathentry kind="lib" path="devlib/ant-junit.jar"/>
<classpathentry kind="lib" path="devlib/ant-launcher.jar"/>
<classpathentry kind="lib" path="devlib/ant.jar"/>
<classpathentry kind="lib" path="devlib/cglib-nodep-2.1_3.jar"/>
<classpathentry kind="lib" path="devlib/emma_ant.jar"/>
<classpathentry kind="lib" path="devlib/emma.jar"/>
<classpathentry kind="lib" path="devlib/jmock-1.0.1.jar"/>
<classpathentry kind="lib" path="devlib/jmock-cglib-1.0.1.jar"/>
<classpathentry kind="lib" path="devlib/junit.jar"/>
<classpathentry kind="lib" path="devlib/servlet.jar"/>
<classpathentry kind="lib" path="lib/antlr.jar"/>
<classpathentry kind="lib" path="lib/beanaction.jar"/>
<classpathentry kind="lib" path="lib/commons-beanutils.jar"/>
<classpathentry kind="lib" path="lib/commons-digester.jar"/>
<classpathentry kind="lib" path="lib/commons-fileupload.jar"/>
<classpathentry kind="lib" path="lib/commons-logging.jar"/>
<classpathentry kind="lib" path="lib/commons-validator.jar"/>
<classpathentry kind="lib" path="lib/hsqldb.jar"/>
<classpathentry kind="lib" path="lib/ibatis-common-2.jar"/>
<classpathentry kind="lib" path="lib/ibatis-dao-2.jar"/>
<classpathentry kind="lib" path="lib/ibatis-sqlmap-2.jar"/>
<classpathentry kind="lib" path="lib/jakarta-oro.jar"/>
<classpathentry kind="lib" path="lib/struts.jar"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="output" path="build-eclipse"/>
</classpath>
/bin
/build-eclipse
/dist
/reports
/xtend-gen
Thumbs.db
*.trace
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>JPetStore-instrumented</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>
call setenv.bat
"%JAVA_HOME%\bin\java" -classpath "%BUILD_CP%" org.apache.tools.ant.Main -buildfile build.xml %1
@ECHO off
call ant.bat all
PAUSE
\ No newline at end of file
<project name="JPetStore" default="all" basedir=".">
<property name="web" value="../web"/>
<property name="src" value="../src"/>
<property name="test" value="../test"/>
<property name="lib" value="../lib"/>
<property name="devlib" value="../devlib"/>
<property name="wars" value="wars"/>
<property name="warfile" value="${wars}/jpetstore.war"/>
<property name="webapp" value="webapp"/>
<property name="weblib" value="${webapp}/WEB-INF/lib/"/>
<property name="webclasses" value="${webapp}/WEB-INF/classes/"/>
<property name="reports" value="reports"/>
<property name="junitreports" value="${reports}/junit/"/>
<property name="coveragereports" value="${reports}/coverage/"/>
<property name="work" value="work"/>
<property name="classes" value="${work}/classes/"/>
<property name="testclasses" value="${work}/testclasses/"/>
<property name="instrumentedclasses" value="${work}/instrumentedclasses/"/>
<path id="classpath">
<pathelement location="${instrumentedclasses}"/>
<pathelement location="${classes}"/>
<pathelement location="${testclasses}"/>
<pathelement location="${src}"/>
<pathelement location="${test}"/>
<fileset dir="${lib}" includes="**/*.jar"/>
<fileset dir="${devlib}" includes="**/*.jar"/>
</path>
<taskdef name="junit" classname="org.apache.tools.ant.taskdefs.optional.junit.JUnitTask"/>
<taskdef resource="emma_ant.properties" classpathref="classpath"/>
<target name="clean">
<delete dir="${reports}"/>
<delete dir="${work}"/>
<delete dir="${wars}"/>
<delete dir="${webapp}"/>
<delete file="coverage.ec"/>
<delete>
<fileset dir="${src}">
<include name="**/*.class"/>
</fileset>
</delete>
<delete>
<fileset dir="${test}">
<include name="**/*.class"/>
</fileset>
</delete>
</target>
<target name="prepare" depends="clean">
<mkdir dir="${classes}"/>
<mkdir dir="${testclasses}"/>
<mkdir dir="${instrumentedclasses}"/>
<mkdir dir="${junitreports}"/>
<mkdir dir="${coveragereports}"/>
<mkdir dir="${webclasses}"/>
<mkdir dir="${weblib}"/>
<mkdir dir="${wars}"/>
</target>
<target name="compile" depends="prepare">
<javac srcdir="${src}" destdir="${classes}" deprecation="on" debug="on">
<classpath refid="classpath"/>
</javac>
<javac srcdir="${test}" destdir="${testclasses}" deprecation="on" debug="on">
<classpath refid="classpath"/>
</javac>
</target>
<target name="coverage.instrument" depends="compile">
<emma enabled="yes">
<instr instrpath="${classes}"
destdir="${instrumentedclasses}"
metadatafile="./coverage.ec"
merge="true"
>
</instr>
</emma>
</target>
<target name="test" depends="coverage.instrument">
<junit printsummary="yes" haltonfailure="no">
<classpath refid="classpath"/>
<formatter type="xml"/>
<batchtest fork="yes" todir="${junitreports}">
<fileset dir="${test}">
<include name="**/*Test*.java"/>
<exclude name="**/AllTests.java"/>
</fileset>
</batchtest>
</junit>
</target>
<target name="test.report" depends="test" >
<junitreport todir="${junitreports}">
<fileset dir="${junitreports}">
<include name="TEST-*.xml"/>
</fileset>
<report format="frames" todir="${junitreports}"/>
</junitreport>
</target>
<target name="coverage.report" depends="test" >
<emma enabled="yes">
<report sourcepath="${src}"
sort="+block,+name,+method,+class"
metrics="method:70,block:80,line:80,class:100"
>
<fileset dir="./">
<include name="*.ec"/>
</fileset>
<html outfile="${coveragereports}/coverage.html"
depth="method"
columns="name,class,method,block,line"
/>
</report>
</emma>
</target>
<target name="assemble" depends="test">
<copy todir="${webclasses}">
<fileset dir="${src}">
<exclude name="**/*.java"/>
<exclude name="**/*.class"/>
</fileset>
</copy>
<copy todir="${webclasses}">
<fileset dir="${classes}"/>
</copy>
<copy todir="${weblib}">
<fileset dir="${lib}"/>
</copy>
<copy todir="${webapp}">
<fileset dir="${web}"/>
</copy>
</target>
<target name="assembleWebapp">
<copy todir="${webapp}">
<fileset dir="${web}"/>
</copy>
</target>
<target name="war" depends="assemble">
<jar jarfile="${warfile}">
<fileset dir="${webapp}">
<include name="**/*"/>
</fileset>
</jar>
</target>
<target name="all" depends="test.report, coverage.report, war"/>
</project>
@ECHO off
call ant.bat clean
PAUSE
\ No newline at end of file
<!DOCTYPE aspectj PUBLIC "-//AspectJ//DTD//EN" "http://www.aspectj.org/dtd/aspectj_1_5_0.dtd">
<aspectj>
<weaver options="">
<include within="com.ibatis.jpetstore..*" />
<include within="com.ibatis..*" />
<include within="org.apache.struts..*" />
<include within="org.apache.struts.action.ActionServlet" />
</weaver>
<aspects>
<!-- Aspect for monitoring every method execution. -->
<concrete-aspect name="explorviz.live_trace_processing.probe.ConcreteAspect"
extends="explorviz.live_trace_processing.probe.distributed.DistributedMonitoringAspect" >
<pointcut name="monitoredOperation" expression="execution(* *..*(..))" />
<pointcut name="monitoredConstructor" expression="execution(*..*.new(..))" />
</concrete-aspect>
<!-- Aspects for monitoring send and receive methods -->
<!-- <aspect name="explorviz.live_trace_processing.probe.distributed.concrete.ActiveMQProbe"/> -->
<!-- <aspect name="explorviz.live_trace_processing.probe.distributed.concrete.HSQLDBProbe"/> -->
<!-- <aspect name="explorviz.live_trace_processing.probe.distributed.concrete.JAXWSProbeAdder"/> -->
<!-- <aspect name="explorviz.live_trace_processing.probe.distributed.concrete.ServletProbe"/> -->
<!-- <aspect name="explorviz.live_trace_processing.probe.distributed.concrete.HttpURLConnectionProbe"/> -->
</aspects>
</aspectj>
######################## Common ########################
explorviz.live_trace_processing.writer_target_ip=127.0.0.1
explorviz.live_trace_processing.writer_target_port=10133
explorviz.live_trace_processing.writer_load_balancing_enabled=true
explorviz.live_trace_processing.writer_load_balancing_ip=10.50.0.24
explorviz.live_trace_processing.writer_load_balancing_port=10200
explorviz.live_trace_processing.writer_load_balancing_wait_time=20000
explorviz.live_trace_processing.writer_load_balancing_scaling_group=analysis
explorviz.live_trace_processing.sending_buffer_size=65536
######################## Monitoring ########################
explorviz.live_trace_processing.system_name=
explorviz.live_trace_processing.ip_address=
explorviz.live_trace_processing.host_name=
explorviz.live_trace_processing.application_name=
explorviz.live_trace_processing.programming_language=Java
explorviz.live_trace_processing.debug=false
explorviz.live_trace_processing.android_monitoring=false
explorviz.live_trace_processing.monitoring_enabled=true
explorviz.live_trace_processing.system_monitoring_enabled=false
explorviz.live_trace_processing.continous_monitoring_enabled=true
explorviz.live_trace_processing.monitoring_controller_disruptor_size=32
######################## Analysis ########################
explorviz.live_trace_processing.worker_enabled=true
explorviz.live_trace_processing.reader_listening_port=10133
explorviz.live_trace_processing.tcp_reader_output_buffer_size=8192
explorviz.live_trace_processing.tcp_reader_disruptor_size=32
explorviz.live_trace_processing.trace_reconstruction_output_buffer_size=64
explorviz.live_trace_processing.trace_reconstruction_disruptor_size=16
explorviz.live_trace_processing.trace_reconstruction_buffer_initial_size=1024
explorviz.live_trace_processing.trace_summarization_output_buffer_size=64
explorviz.live_trace_processing.trace_summarization_disruptor_size=16
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.6.1
Created-By: 1.4.2_04-b05 (Sun Microsystems Inc.)
Specification-Title: HSQLDB
Specification-Version: 1.8.0
Specification-Vendor: The HSQLDB Development Group
Implementation-Title: Standard runtime
Implementation-Version: private-2005/08/20-07:08:29
Implementation-Vendor: ft
Main-Class: org.hsqldb.util.SqlTool
# default data-type-create-parameters
SIZED=length
DECIMAL=precision,scale
\ No newline at end of file
# default data-type-names
ARRAY=ARRAY
BIGINT=BIGINT
BIGINT_IDENTITY=BIGINT IDENTITY
BINARY=BINARY
BOOLEAN=BOOLEAN
BLOB=BLOB
CHAR=CHAR
CLOB=CLOB
DATALINK=DATALINK
DATE=DATE
DECIMAL=DECIMAL
DISTINCT=DISTINCT
DOUBLE=DOUBLE
FLOAT=FLOAT
INTEGER=INTEGER
INTEGER_IDENTITY=INTEGER IDENTITY
JAVA_OBJECT=JAVA_OBJECT
LONGVARBINARY=LONGVARBINARY
LONGVARCHAR=LONGVARCHAR
NULL=NULL
NUMERIC=NUMERIC
OTHER=OTHER
REAL=REAL
REF=REF
SMALLINT=SMALLINT
STRUCT=STRUCT
TIME=TIME
TIMESTAMP=TIMESTAMP
TINYINT=TINYINT
VARBINARY=VARBINARY
VARCHAR_IGNORECASE=VARCHAR_IGNORECASE
VARCHAR=VARCHAR
XML=XML
# default data-type-remarks
BINARY=legal literal character range: { '0'..'9' | 'a'..'f' | 'A'..'F' }; must be a case-insensitive hex value string consisting of a whole number of octets, e.g. '00af0b12'
DATALINK=legal literal formats: '[scheme:]scheme-specific-part[#fragment]' (see http://www.ietf.org/rfc/rfc2396.txt and http://www.ietf.org/rfc/rfc2732.txt)
DATE=legal literal formats: [ {d ] 'yyyy-mm-dd' [ } ]
OTHER=legal literal character range: { '0'..'9' | 'a'..'f' | 'A'..'F' }; must be a case-insentivie hex value string consisting of a whole number of octets representing a valid serialization of a Java object
TIME=legal literal formats: [ {t ] 'hh:mm:ss' [ } ]
TIMESTAMP=legal literal formats: [ {ts ] 'yyyy-mm-dd[ hh:mm:ss[.fffffffff]]' [ } ]
XML=legal literal formats: '...'; must be a valid XML document with SQL<=>XML encodings as descibed in WG3:DRS-020 = H2-2002-365, WD 9075-14 (SQL/XML), August, 2002
jarLoad(java.sql.Connection,java.lang.String)=Loads the resources stored in the specified archive into the database specified by the <CODE>conn</CODE> argument. <p> Only entries that pass an acceptance test are actually stored. For instance, entries whose content is Java bytecode are accepted only if the classes they define are not in a java.* package. Similarly, all entries of the jar archive special form "META-INF/*" are rejected. Also, for each loading entry that has a resource with the same name already loaded, the MD5 hash values of the contents are compared; if the hash values are equal, then loading entry is ignored.
jarLoad(java.sql.Connection,java.lang.String)@0=A <CODE>Result</CODE> object describing the result of loading the archive
jarLoad(java.sql.Connection,java.lang.String)@1=conn - A <CODE>Connection</CODE> object identifying the target database
jarLoad(java.sql.Connection,java.lang.String)@2=name - the name of the archive; this may be either a jar protocol URL string or a bare file path
jarUnload(java.sql.Connection,java.lang.String)=Removes the resources in the archive identified by the from <CODE>name</CODE> argument from the database specified by the <CODE>conn</CODE> argument.
jarUnload(java.sql.Connection,java.lang.String)@0=A <CODE>Result</CODE> object describing the result of unloading the archive
jarUnload(java.sql.Connection,java.lang.String)@1=conn - A <CODE>Connection</CODE> object identifying the target database
jarUnload(java.sql.Connection,java.lang.String)@2=name - the name of the archive; this may be either a jar protocol URL string or a bare file path
callMain(java.sql.Connection,java.lang.String,java.lang.String)=Invokes the special <CODE>public static void main(String[] args)</CODE> method of the Java <CODE>Class</CODE> indentified by the <CODE>className</CODE> argument.
callMain(java.sql.Connection,java.lang.String,java.lang.String)@1=conn - A <CODE>Connection</CODE> object identifying the execution context in which to invoke the method
callMain(java.sql.Connection,java.lang.String,java.lang.String)@2=className - the fully qualified name of a Java <CODE>Class</CODE>
callMain(java.sql.Connection,java.lang.String,java.lang.String)@3=args - a comma-separated list of argument strings
# Sample ResourceBundle properties file
server.help = Usage: java org.hsqldb.Server [options]\n\
\n\
+----------------+-------------+----------+------------------------------+\n\
| OPTION | TYPE | DEFAULT | DESCRIPTION |\n\
+----------------+-------------+----------+------------------------------|\n\
| -? | -- | -- | prints this message |\n\
| -address | name|number | any | server inet address |\n\
| -port | number | 9001/544 | port at which server listens |\n\
| -database.i | [type]spec | 0=test | name of database i |\n\
| -dbname.i | alias | -- | url alias for database i |\n\
| -silent | true|false | true | false => display all queries |\n\
| -trace | true|false | false | display JDBC trace messages |\n\
| -tls | true|false | false | TLS/SSL (secure) sockets |\n\
| -no_system_exit| true|false | false | do not issue System.exit() |\n\
+----------------+-------------+----------+------------------------------+\n\
\n\
The server looks for a 'server.properties' file in the current directory and\n\
loads properties from it if it exists. \n\
\n\
Here is an example 'server.properties' file:\n\
\n\
server.port=1234\n\
#mounts a file-based (persistent) database with alias 'filetest'\n\
#database connection url would be 'jdbc:hsqldb:hsql://host:1234/filetest'\n\
#but '/filetest' can be omitted because database.0 is the default\n\
server.database.0=file:/mydatbasedir/test\n\
server.dbname.0=filetest\n\
#mounts a 'file_in_jar' database with alias 'restest'\n\
#database connection url would be 'jdbc:hsqldb:hsql://host:1234/restest'\n\
server.database.1=res:/mypackage/test\n\
server.dbname.1=restest\n\
#mounts a 100% in-memory (transient) database with alias 'memtest'\n\
#database connection url would be 'jdbc:hsqldb:hsql://host:1234/memtest'\n\
server.database.2=mem:test\n\
server.dbname.2=memtest\n\
...\n\
server.database.n=...\n\
server.dbname.n=...\n\
server.silent=true\n\
\n\
#end of 'server.properties' file\n\
\n\
Command line options override those loaded from the 'server.properties' file.\n\
\n\
The default port is 9001 if tls is false and 544 if it is true.\n\
When omitted, the value of tls is true iff the system property:\n\
\n\
\tjavax.net.ssl.keyStore\n\
\n\
is defined. An example command line invocation requesting TLS might look like:\n\
\n\
\tjava -Djavax.net.ssl.keyStore=x -Djavax.net.ssl.keyStorePassword=y org.hsqldb.Server [options]\n\
\n\
For information on secure sockets, see: http://java.sun.com/products/jsse/
webserver.help= Usage: java org.hsqldb.WebServer [options]\n\
\n\
+----------------+------------ +------------+------------------------------+\n\
| OPTION | TYPE | DEFAULT | DESCRIPTION |\n\
+----------------+-------------+------------+------------------------------|\n\
| -? | -- | -- | prints this message |\n\
| -address | name|number | any | server inet address |\n\
| -port | number | 80/443 | port at which server listens |\n\
| -database.i | [type]spec | 0=test | name of database i |\n\
| -dbname.i | alias | -- | url alias for database i |\n\
| -root | path | ./ | path to web root |\n\
| -default_page | file | index.html | default web page |\n\
| -silent | true|false | true | false => display all queries |\n\