[infinispan-commits] Infinispan SVN: r1059 - trunk/demos/ec2/src/main/resources.
infinispan-commits at lists.jboss.org
infinispan-commits at lists.jboss.org
Thu Oct 29 00:40:50 EDT 2009
Author: noelo
Date: 2009-10-29 00:40:50 -0400 (Thu, 29 Oct 2009)
New Revision: 1059
Added:
trunk/demos/ec2/src/main/resources/README-EC2-demo.txt
trunk/demos/ec2/src/main/resources/infinispan-config.xml
trunk/demos/ec2/src/main/resources/jgroups-gossiprouter-aws.xml
trunk/demos/ec2/src/main/resources/jgroups-s3_ping-aws.xml
trunk/demos/ec2/src/main/resources/runEC2Demo-all.sh
trunk/demos/ec2/src/main/resources/runEC2Demo-influenza.sh
trunk/demos/ec2/src/main/resources/runEC2Demo-nucleotide.sh
trunk/demos/ec2/src/main/resources/runEC2Demo-protein.sh
trunk/demos/ec2/src/main/resources/runEC2Demo-query.sh
trunk/demos/ec2/src/main/resources/runEC2Demo-reader.sh
trunk/demos/ec2/src/main/resources/smooks-config.xml
Log:
Initial addition to SVN
Added: trunk/demos/ec2/src/main/resources/README-EC2-demo.txt
===================================================================
--- trunk/demos/ec2/src/main/resources/README-EC2-demo.txt (rev 0)
+++ trunk/demos/ec2/src/main/resources/README-EC2-demo.txt 2009-10-29 04:40:50 UTC (rev 1059)
@@ -0,0 +1,39 @@
+Infinispan EC2 demo
+-------------------
+
+The purpose of this demo is to illustrate how to setup and use a non-trivial distributed cache using Amazon Web Services for the underlying infrastructure.
+The demo itself consists of a number of script files which run different java processes which either load or query the distributed caches.
+The caches themselves are populated with data extracted from the Influenza gene database which is one of the freely available data sets hosted by Amazon
+(see http://developer.amazonwebservices.com/connect/entry.jspa?externalID=2419&categoryID=279)
+This data is stored in etc/Amazon-TestData in gzipped format. Unzip before using.
+
+There are three caches created
+InfluenzaCache -> populated with data read from the Influenza.dat file, approx 82k entries
+ProteinCache -> populated with data read from the Influenza_aa.dat file, approx 102k entries
+NucleotideCache-> populated with data read from the Influenza_na.dat file, approx 82k entries
+
+The data relationship is as follows, each influenza cache entry has a related nucleotide and each nucleotide has one or more proteins.
+To query the cache there is a query script which prompts the user to enter a influenza GAN (first column in influenza.dat) and if found the related data is extracted
+from the other caches and displayed.
+A future enhancement will provide a web UI to perform the search and display the results.
+
+Setup
+--------------
+Out of the box this demo uses the jgroups S3_ping functionality to create the cluster. This feature uses an storage bucket on the Amazon S3 service to store the cluster details.
+This configuration is contained in etc/jgroups-s3_ping-aws.xml. This file requires the users aws key and secret aws key to be filled out before it can connect to S3 successfully.
+To do this just modify the following line in the file with the correct values<S3_PING secret_access_key="my secret access key" access_key="my access key" location="my s3 bucket name" />
+
+The location of the jgroups configuration file is specified using the EC2Demo-jgroups-config system property.
+It jgroups S3_ping configuration can be replaced with a gossip router if required, a sample jgroups configuraton file is in the etc directory, jgroups-gossiprouter-aws.xml
+
+Scripts
+-------
+runEC2Demo-all - creates the caches and loads the contents of the data files into the cache
+runEC2Demo-influenza - creates the influenza cache and load the data from the influenza.dat file
+runEC2Demo-protein - creates the protein cache and load the data from the influenza_aa.dat file
+runEC2Demo-nucleotide - creates the nucleotide cacahe and load the data from the influenza_na.dat file
+runEC2Demo-query - attaches to the clustered caches, prompts the user for the influenza virus id and then searches the caches for the relevant data
+runEC2Demo-reader - attaches to the clustered caches and displays the number of elements in the cache
+
+
+
Property changes on: trunk/demos/ec2/src/main/resources/README-EC2-demo.txt
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: trunk/demos/ec2/src/main/resources/infinispan-config.xml
===================================================================
--- trunk/demos/ec2/src/main/resources/infinispan-config.xml (rev 0)
+++ trunk/demos/ec2/src/main/resources/infinispan-config.xml 2009-10-29 04:40:50 UTC (rev 1059)
@@ -0,0 +1,96 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<infinispan xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:infinispan:config:4.0">
+ <global>
+ <asyncListenerExecutor factory="org.infinispan.executors.DefaultExecutorFactory">
+ <properties>
+ <property name="maxThreads" value="15" />
+ <property name="threadNamePrefix" value="AsyncListenerThread" />
+ </properties>
+ </asyncListenerExecutor>
+ <asyncTransportExecutor factory="org.infinispan.executors.DefaultExecutorFactory">
+ <properties>
+ <property name="maxThreads" value="25" />
+ <property name="threadNamePrefix" value="AsyncSerializationThread" />
+ </properties>
+ </asyncTransportExecutor>
+ <evictionScheduledExecutor factory="org.infinispan.executors.DefaultScheduledExecutorFactory">
+ <properties>
+ <property name="threadNamePrefix" value="EvictionThread" />
+ </properties>
+ </evictionScheduledExecutor>
+ <replicationQueueScheduledExecutor factory="org.infinispan.executors.DefaultScheduledExecutorFactory">
+ <properties>
+ <property name="threadNamePrefix" value="ReplicationQueueThread" />
+ </properties>
+ </replicationQueueScheduledExecutor>
+ <globalJmxStatistics enabled="true" jmxDomain="infinispan" />
+
+ <transport transportClass="org.infinispan.remoting.transport.jgroups.JGroupsTransport" />
+ <transport clusterName="infinispan-cluster" distributedSyncTimeout="50000">
+ <properties>
+ <property name="configurationFile" value="jgroups-s3_ping-aws.xml" />
+ </properties>
+ </transport>
+ <serialization marshallerClass="org.infinispan.marshall.VersionAwareMarshaller" version="1.0" />
+ <shutdown hookBehavior="DEFAULT" />
+ </global>
+
+ <!-- *************************** -->
+ <!-- Default "template" settings -->
+ <!-- *************************** -->
+ <!-- this is used as a "template" configuration for all caches in the system. -->
+ <default>
+ <!-- <locking isolationLevel="REPEATABLE_READ" lockAcquisitionTimeout="20000" writeSkewCheck="false"
+ concurrencyLevel="500" />
+ <transaction transactionManagerLookupClass="org.infinispan.transaction.lookup.GenericTransactionManagerLookup"
+ syncRollbackPhase="false" syncCommitPhase="false" useEagerLocking="false" />
+ <jmxStatistics enabled="true" />
+ <lazyDeserialization enabled="false" />
+ <unsafe unreliableReturnValues="true" />
+ <invocationBatching enabled="true" />
+ <l1 enabled="true" lifespan="600000" />
+ -->
+ <clustering mode="distribution">
+ <sync replTimeout="200000" />
+ <stateRetrieval timeout="20000" fetchInMemoryState="false" />
+ <hash numOwners="3" rehashWait="60000" rehashRpcTimeout="600000" />
+
+ </clustering>
+ </default>
+
+ <!-- ************************************** -->
+ <!-- Individually configured "named" caches -->
+ <!-- ************************************** -->
+ <!-- <namedCache name="InfluenzaCache">
+ <unsafe unreliableReturnValues="true" />
+ <invocationBatching enabled="true" />
+ <clustering mode="distribution">
+ <sync replTimeout="200000" />
+ <stateRetrieval timeout="20000" fetchInMemoryState="false" />
+ <hash numOwners="2" rehashWait="60000" rehashRpcTimeout="600000" />
+ <l1 enabled="true" lifespan="600000" />
+ </clustering>
+ </namedCache>
+
+ <namedCache name="NucleotideCache">
+ <unsafe unreliableReturnValues="true" />
+ <invocationBatching enabled="true" />
+ <clustering mode="distribution">
+ <sync replTimeout="20000" />
+ <stateRetrieval timeout="20000" fetchInMemoryState="false" />
+ <hash numOwners="2" rehashWait="120000" rehashRpcTimeout="600000" />
+ <l1 enabled="true" lifespan="600000" />
+ </clustering>
+ </namedCache>
+
+ <namedCache name="ProteinCache">
+ <unsafe unreliableReturnValues="true" />
+ <invocationBatching enabled="true" />
+ <clustering mode="distribution">
+ <sync replTimeout="20000" />
+ <stateRetrieval timeout="200000" fetchInMemoryState="false" />
+ <hash numOwners="2" rehashWait="60000" rehashRpcTimeout="600000" />
+ <l1 enabled="true" lifespan="600000" />
+ </clustering>
+ </namedCache>-->
+</infinispan>
Property changes on: trunk/demos/ec2/src/main/resources/infinispan-config.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: trunk/demos/ec2/src/main/resources/jgroups-gossiprouter-aws.xml
===================================================================
--- trunk/demos/ec2/src/main/resources/jgroups-gossiprouter-aws.xml (rev 0)
+++ trunk/demos/ec2/src/main/resources/jgroups-gossiprouter-aws.xml 2009-10-29 04:40:50 UTC (rev 1059)
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<config>
+ <TCP />
+ <TCPGOSSIP initial_hosts="10.245.221.221[12001]" gossip_refresh_rate="10000" num_initial_members="3" />
+ <MERGE2 max_interval="30000" min_interval="10000" />
+ <FD_SOCK />
+ <FD timeout="10000" max_tries="5" shun="true" />
+ <VERIFY_SUSPECT timeout="1500" />
+ <pbcast.NAKACK use_mcast_xmit="false" gc_lag="0" retransmit_timeout="300,600,1200,2400,4800"
+ discard_delivered_msgs="true" />
+ <UNICAST timeout="300,600,1200,2400,3600" />
+ <pbcast.STABLE stability_delay="1000" desired_avg_gossip="50000" max_bytes="400000" />
+ <pbcast.GMS print_local_addr="true" join_timeout="3000" shun="false" view_bundling="true" />
+ <FC max_credits="20000000" min_threshold="0.10" />
+ <FRAG2 frag_size="60000" />
+ <pbcast.STATE_TRANSFER />
+</config>
+
+
+
Property changes on: trunk/demos/ec2/src/main/resources/jgroups-gossiprouter-aws.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: trunk/demos/ec2/src/main/resources/jgroups-s3_ping-aws.xml
===================================================================
--- trunk/demos/ec2/src/main/resources/jgroups-s3_ping-aws.xml (rev 0)
+++ trunk/demos/ec2/src/main/resources/jgroups-s3_ping-aws.xml 2009-10-29 04:40:50 UTC (rev 1059)
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<config>
+ <TCP bind_port="7800" />
+ <S3_PING secret_access_key="replace with your secret access key" access_key="replace with your access key"
+ location="replace with your s3 bucket name" />
+ <MERGE2 max_interval="30000" min_interval="10000" />
+ <FD_SOCK />
+ <FD timeout="10000" max_tries="5" />
+ <VERIFY_SUSPECT timeout="1500" />
+ <pbcast.NAKACK use_mcast_xmit="false" gc_lag="0" retransmit_timeout="300,600,1200,2400,4800"
+ discard_delivered_msgs="true" />
+ <UNICAST timeout="300,600,1200,2400,3600" />
+ <pbcast.STABLE stability_delay="1000" desired_avg_gossip="50000" max_bytes="400000" />
+ <VIEW_SYNC avg_send_interval="60000" />
+ <pbcast.GMS print_local_addr="true" join_timeout="60000" view_bundling="true" />
+ <FC max_credits="20000000" min_threshold="0.10" />
+ <FRAG2 frag_size="60000" />
+ <pbcast.STATE_TRANSFER />
+ <pbcast.FLUSH timeout="0" />
+</config>
Property changes on: trunk/demos/ec2/src/main/resources/jgroups-s3_ping-aws.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: trunk/demos/ec2/src/main/resources/runEC2Demo-all.sh
===================================================================
--- trunk/demos/ec2/src/main/resources/runEC2Demo-all.sh (rev 0)
+++ trunk/demos/ec2/src/main/resources/runEC2Demo-all.sh 2009-10-29 04:40:50 UTC (rev 1059)
@@ -0,0 +1,44 @@
+#!/bin/bash
+
+DIRNAME=`dirname $0`
+
+# Setup ISPN_HOME
+if [ "x$ISPN_HOME" = "x" ]; then
+ # get the full path (without any relative bits)
+ ISPN_HOME=`cd $DIRNAME/..; pwd`
+fi
+export ISPN_HOME
+
+CP=${CP}:${ISPN_HOME}/etc
+
+#add the modules/ec2 dir
+for i in ${ISPN_HOME}/modules/ec2/*.jar ; do
+ CP=${i}:${CP}
+done
+
+#add the modules/ec2/libs
+for i in ${ISPN_HOME}/modules/ec2/lib/*.jar ; do
+ CP=${i}:${CP}
+done
+
+for i in ${ISPN_HOME}/modules/core/*.jar ; do
+ CP=${i}:${CP}
+done
+
+for i in ${ISPN_HOME}/modules/core/lib/*.jar ; do
+ CP=${i}:${CP}
+done
+
+JVM_PARAMS="${JVM_PARAMS} -Djava.net.preferIPv4Stack=true -Dlog4j.configuration=file:${ISPN_HOME}/etc/log4j.xml"
+JVM_PARAMS="${JVM_PARAMS} -DEC2Demo-jgroups-config=${ISPN_HOME}/etc/jgroups-s3_ping-aws.xml"
+
+# Sample JPDA settings for remote socket debuging
+#JVM_PARAMS="$JVM_PARAMS -Xrunjdwp:transport=dt_socket,address=8686,server=y,suspend=n"
+
+#Load protein file => -p e.g. -p /opt/influenza-data-files/influenza_aa.dat
+#Load nucleotide file => -n e.g. -n /opt/influenza-data-files/influenza_na.dat
+#Load Influenze virus file => -i e.g. -i /opt/influenza-data-files/influenza.dat
+DEMO_ARGS="-p ${ISPN_HOME}/etc/Amazon-TestData/influenza_aa.dat"
+DEMO_ARGS="${DEMO_ARGS} -n ${ISPN_HOME}/etc/Amazon-TestData/influenza_na.dat"
+DEMO_ARGS="${DEMO_ARGS} -i ${ISPN_HOME}/etc/Amazon-TestData/influenza.dat"
+java -cp ${CP} ${JVM_PARAMS} org.infinispan.ec2demo.InfinispanFluDemo ${DEMO_ARGS}
Property changes on: trunk/demos/ec2/src/main/resources/runEC2Demo-all.sh
___________________________________________________________________
Name: svn:executable
+ *
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: trunk/demos/ec2/src/main/resources/runEC2Demo-influenza.sh
===================================================================
--- trunk/demos/ec2/src/main/resources/runEC2Demo-influenza.sh (rev 0)
+++ trunk/demos/ec2/src/main/resources/runEC2Demo-influenza.sh 2009-10-29 04:40:50 UTC (rev 1059)
@@ -0,0 +1,42 @@
+#!/bin/bash
+
+DIRNAME=`dirname $0`
+
+# Setup ISPN_HOME
+if [ "x$ISPN_HOME" = "x" ]; then
+ # get the full path (without any relative bits)
+ ISPN_HOME=`cd $DIRNAME/..; pwd`
+fi
+export ISPN_HOME
+
+CP=${CP}:${ISPN_HOME}/etc
+
+#add the modules/ec2 dir
+for i in ${ISPN_HOME}/modules/ec2/*.jar ; do
+ CP=${i}:${CP}
+done
+
+#add the modules/ec2/libs
+for i in ${ISPN_HOME}/modules/ec2/lib/*.jar ; do
+ CP=${i}:${CP}
+done
+
+for i in ${ISPN_HOME}/modules/core/*.jar ; do
+ CP=${i}:${CP}
+done
+
+for i in ${ISPN_HOME}/modules/core/lib/*.jar ; do
+ CP=${i}:${CP}
+done
+
+JVM_PARAMS="${JVM_PARAMS} -Djava.net.preferIPv4Stack=true -Dlog4j.configuration=file:${ISPN_HOME}/etc/log4j.xml"
+JVM_PARAMS="${JVM_PARAMS} -DEC2Demo-jgroups-config=${ISPN_HOME}/etc/jgroups-s3_ping-aws.xml"
+
+# Sample JPDA settings for remote socket debuging
+#JVM_PARAMS="$JVM_PARAMS -Xrunjdwp:transport=dt_socket,address=8686,server=y,suspend=n"
+
+#Load protein file => -p e.g. -p /opt/influenza-data-files/influenza_aa.dat
+#Load nucleotide file => -n e.g. -n /opt/influenza-data-files/influenza_na.dat
+#Load Influenze virus file => -i e.g. -i /opt/influenza-data-files/influenza.dat
+DEMO_ARGS="-i ${ISPN_HOME}/etc/Amazon-TestData/influenza.dat"
+java -cp ${CP} ${JVM_PARAMS} org.infinispan.ec2demo.InfinispanFluDemo ${DEMO_ARGS}
Property changes on: trunk/demos/ec2/src/main/resources/runEC2Demo-influenza.sh
___________________________________________________________________
Name: svn:executable
+ *
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: trunk/demos/ec2/src/main/resources/runEC2Demo-nucleotide.sh
===================================================================
--- trunk/demos/ec2/src/main/resources/runEC2Demo-nucleotide.sh (rev 0)
+++ trunk/demos/ec2/src/main/resources/runEC2Demo-nucleotide.sh 2009-10-29 04:40:50 UTC (rev 1059)
@@ -0,0 +1,42 @@
+#!/bin/bash
+
+DIRNAME=`dirname $0`
+
+# Setup ISPN_HOME
+if [ "x$ISPN_HOME" = "x" ]; then
+ # get the full path (without any relative bits)
+ ISPN_HOME=`cd $DIRNAME/..; pwd`
+fi
+export ISPN_HOME
+
+CP=${CP}:${ISPN_HOME}/etc
+
+#add the modules/ec2 dir
+for i in ${ISPN_HOME}/modules/ec2/*.jar ; do
+ CP=${i}:${CP}
+done
+
+#add the modules/ec2/libs
+for i in ${ISPN_HOME}/modules/ec2/lib/*.jar ; do
+ CP=${i}:${CP}
+done
+
+for i in ${ISPN_HOME}/modules/core/*.jar ; do
+ CP=${i}:${CP}
+done
+
+for i in ${ISPN_HOME}/modules/core/lib/*.jar ; do
+ CP=${i}:${CP}
+done
+
+JVM_PARAMS="${JVM_PARAMS} -Djava.net.preferIPv4Stack=true -Dlog4j.configuration=file:${ISPN_HOME}/etc/log4j.xml"
+JVM_PARAMS="${JVM_PARAMS} -DEC2Demo-jgroups-config=${ISPN_HOME}/etc/jgroups-s3_ping-aws.xml"
+
+# Sample JPDA settings for remote socket debuging
+#JVM_PARAMS="$JVM_PARAMS -Xrunjdwp:transport=dt_socket,address=8686,server=y,suspend=n"
+
+#Load protein file => -p e.g. -p /opt/influenza-data-files/influenza_aa.dat
+#Load nucleotide file => -n e.g. -n /opt/influenza-data-files/influenza_na.dat
+#Load Influenze virus file => -i e.g. -i /opt/influenza-data-files/influenza.dat
+DEMO_ARGS="-n ${ISPN_HOME}/etc/Amazon-TestData/influenza_na.dat"
+java -cp ${CP} ${JVM_PARAMS} org.infinispan.ec2demo.InfinispanFluDemo ${DEMO_ARGS}
Property changes on: trunk/demos/ec2/src/main/resources/runEC2Demo-nucleotide.sh
___________________________________________________________________
Name: svn:executable
+ *
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: trunk/demos/ec2/src/main/resources/runEC2Demo-protein.sh
===================================================================
--- trunk/demos/ec2/src/main/resources/runEC2Demo-protein.sh (rev 0)
+++ trunk/demos/ec2/src/main/resources/runEC2Demo-protein.sh 2009-10-29 04:40:50 UTC (rev 1059)
@@ -0,0 +1,42 @@
+#!/bin/bash
+
+DIRNAME=`dirname $0`
+
+# Setup ISPN_HOME
+if [ "x$ISPN_HOME" = "x" ]; then
+ # get the full path (without any relative bits)
+ ISPN_HOME=`cd $DIRNAME/..; pwd`
+fi
+export ISPN_HOME
+
+CP=${CP}:${ISPN_HOME}/etc
+
+#add the modules/ec2 dir
+for i in ${ISPN_HOME}/modules/ec2/*.jar ; do
+ CP=${i}:${CP}
+done
+
+#add the modules/ec2/libs
+for i in ${ISPN_HOME}/modules/ec2/lib/*.jar ; do
+ CP=${i}:${CP}
+done
+
+for i in ${ISPN_HOME}/modules/core/*.jar ; do
+ CP=${i}:${CP}
+done
+
+for i in ${ISPN_HOME}/modules/core/lib/*.jar ; do
+ CP=${i}:${CP}
+done
+
+JVM_PARAMS="${JVM_PARAMS} -Djava.net.preferIPv4Stack=true -Dlog4j.configuration=file:${ISPN_HOME}/etc/log4j.xml"
+JVM_PARAMS="${JVM_PARAMS} -DEC2Demo-jgroups-config=${ISPN_HOME}/etc/jgroups-s3_ping-aws.xml"
+
+# Sample JPDA settings for remote socket debuging
+#JVM_PARAMS="$JVM_PARAMS -Xrunjdwp:transport=dt_socket,address=8686,server=y,suspend=n"
+
+#Load protein file => -p e.g. -p /opt/influenza-data-files/influenza_aa.dat
+#Load nucleotide file => -n e.g. -n /opt/influenza-data-files/influenza_na.dat
+#Load Influenze virus file => -i e.g. -i /opt/influenza-data-files/influenza.dat
+DEMO_ARGS="-p ${ISPN_HOME}/etc/Amazon-TestData/influenza_aa.dat"
+java -cp ${CP} ${JVM_PARAMS} org.infinispan.ec2demo.InfinispanFluDemo ${DEMO_ARGS}
Property changes on: trunk/demos/ec2/src/main/resources/runEC2Demo-protein.sh
___________________________________________________________________
Name: svn:executable
+ *
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: trunk/demos/ec2/src/main/resources/runEC2Demo-query.sh
===================================================================
--- trunk/demos/ec2/src/main/resources/runEC2Demo-query.sh (rev 0)
+++ trunk/demos/ec2/src/main/resources/runEC2Demo-query.sh 2009-10-29 04:40:50 UTC (rev 1059)
@@ -0,0 +1,42 @@
+#!/bin/bash
+
+DIRNAME=`dirname $0`
+
+# Setup ISPN_HOME
+if [ "x$ISPN_HOME" = "x" ]; then
+ # get the full path (without any relative bits)
+ ISPN_HOME=`cd $DIRNAME/..; pwd`
+fi
+export ISPN_HOME
+
+CP=${CP}:${ISPN_HOME}/etc
+
+#add the modules/ec2 dir
+for i in ${ISPN_HOME}/modules/ec2/*.jar ; do
+ CP=${i}:${CP}
+done
+
+#add the modules/ec2/libs
+for i in ${ISPN_HOME}/modules/ec2/lib/*.jar ; do
+ CP=${i}:${CP}
+done
+
+for i in ${ISPN_HOME}/modules/core/*.jar ; do
+ CP=${i}:${CP}
+done
+
+for i in ${ISPN_HOME}/modules/core/lib/*.jar ; do
+ CP=${i}:${CP}
+done
+
+JVM_PARAMS="${JVM_PARAMS} -Djava.net.preferIPv4Stack=true -Dlog4j.configuration=file:${ISPN_HOME}/etc/log4j.xml"
+JVM_PARAMS="${JVM_PARAMS} -DEC2Demo-jgroups-config=${ISPN_HOME}/etc/jgroups-s3_ping-aws.xml"
+
+# Sample JPDA settings for remote socket debuging
+#JVM_PARAMS="$JVM_PARAMS -Xrunjdwp:transport=dt_socket,address=8686,server=y,suspend=n"
+
+#Load protein file => -p e.g. -p /opt/influenza-data-files/influenza_aa.dat
+#Load nucleotide file => -n e.g. -n /opt/influenza-data-files/influenza_na.dat
+#Load Influenze virus file => -i e.g. -i /opt/influenza-data-files/influenza.dat
+DEMO_ARGS="-q "
+java -cp ${CP} ${JVM_PARAMS} org.infinispan.ec2demo.InfinispanFluDemo ${DEMO_ARGS}
Property changes on: trunk/demos/ec2/src/main/resources/runEC2Demo-query.sh
___________________________________________________________________
Name: svn:executable
+ *
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: trunk/demos/ec2/src/main/resources/runEC2Demo-reader.sh
===================================================================
--- trunk/demos/ec2/src/main/resources/runEC2Demo-reader.sh (rev 0)
+++ trunk/demos/ec2/src/main/resources/runEC2Demo-reader.sh 2009-10-29 04:40:50 UTC (rev 1059)
@@ -0,0 +1,41 @@
+#!/bin/bash
+
+DIRNAME=`dirname $0`
+
+# Setup ISPN_HOME
+if [ "x$ISPN_HOME" = "x" ]; then
+ # get the full path (without any relative bits)
+ ISPN_HOME=`cd $DIRNAME/..; pwd`
+fi
+export ISPN_HOME
+
+CP=${CP}:${ISPN_HOME}/etc
+
+#add the modules/ec2 dir
+for i in ${ISPN_HOME}/modules/ec2/*.jar ; do
+ CP=${i}:${CP}
+done
+
+#add the modules/ec2/libs
+for i in ${ISPN_HOME}/modules/ec2/lib/*.jar ; do
+ CP=${i}:${CP}
+done
+
+for i in ${ISPN_HOME}/modules/core/*.jar ; do
+ CP=${i}:${CP}
+done
+
+for i in ${ISPN_HOME}/modules/core/lib/*.jar ; do
+ CP=${i}:${CP}
+done
+
+JVM_PARAMS="${JVM_PARAMS} -Djava.net.preferIPv4Stack=true -Dlog4j.configuration=file:${ISPN_HOME}/etc/log4j.xml"
+JVM_PARAMS="${JVM_PARAMS} -DEC2Demo-jgroups-config=${ISPN_HOME}/etc/jgroups-s3_ping-aws.xml"
+
+# Sample JPDA settings for remote socket debuging
+#JVM_PARAMS="$JVM_PARAMS -Xrunjdwp:transport=dt_socket,address=8686,server=y,suspend=n"
+
+#Load protein file => -p e.g. -p /opt/influenza-data-files/influenza_aa.dat
+#Load nucleotide file => -n e.g. -n /opt/influenza-data-files/influenza_na.dat
+#Load Influenze virus file => -i e.g. -i /opt/influenza-data-files/influenza.dat
+java -cp ${CP} ${JVM_PARAMS} org.infinispan.ec2demo.InfinispanFluDemo
Property changes on: trunk/demos/ec2/src/main/resources/runEC2Demo-reader.sh
___________________________________________________________________
Name: svn:executable
+ *
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: trunk/demos/ec2/src/main/resources/smooks-config.xml
===================================================================
--- trunk/demos/ec2/src/main/resources/smooks-config.xml (rev 0)
+++ trunk/demos/ec2/src/main/resources/smooks-config.xml 2009-10-29 04:40:50 UTC (rev 1059)
@@ -0,0 +1,8 @@
+<?xml version="1.0"?>
+<smooks-resource-list xmlns="http://www.milyn.org/xsd/smooks-1.1.xsd"
+ xmlns:csv="http://www.milyn.org/xsd/smooks/csv-1.2.xsd">
+ <csv:reader fields="GenbankAccessionNumber,Host,GenomeSequenceNumber,SubType,country,YearFound,SequenceLength,VirusName,HostAge,HostGender,FullLengthSequence" separator="	">
+ <csv:listBinding beanId="customerList" class="org.infinispan.ec2demo.Nucleotide_Protein_Element"/>
+ </csv:reader>
+
+</smooks-resource-list>
Property changes on: trunk/demos/ec2/src/main/resources/smooks-config.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
More information about the infinispan-commits
mailing list