Added asterix project

git-svn-id: https://asterixdb.googlecode.com/svn/trunk/asterix@12 eaa15691-b419-025a-1212-ee371bd00084
diff --git a/asterix-app/scripts/idefix/deploy.hcli b/asterix-app/scripts/idefix/deploy.hcli
new file mode 100644
index 0000000..da73c8e
--- /dev/null
+++ b/asterix-app/scripts/idefix/deploy.hcli
@@ -0,0 +1,2 @@
+connect to "localhost";
+create application asterix "/home/nicnic/workspace/asterix/trunk/asterix/asterix-app/target/asterix-app-0.0.2-SNAPSHOT-binary-assembly.zip";
diff --git a/asterix-app/scripts/idefix/startcc.sh b/asterix-app/scripts/idefix/startcc.sh
new file mode 100755
index 0000000..e0b5059
--- /dev/null
+++ b/asterix-app/scripts/idefix/startcc.sh
@@ -0,0 +1,6 @@
+#/bin/bash	
+
+export JAVA_OPTS="-DAsterixConfigFileName=test.properties -DAsterixWebServerPort=20001 -Djava.util.logging.config.file=/home/nicnic/Work/Asterix/hyracks/logging.properties"
+export HYRACKS_HOME="/home/nicnic/workspace/hyracks/tags/hyracks-0.1.5"
+bash ${HYRACKS_HOME}/hyracks-server/target/appassembler/bin/hyrackscc 
+#bash /home/nicnic/workspace/hyracks/trunk/hyracks/hyracks-server/target/appassembler/bin/hyrackscc
diff --git a/asterix-app/scripts/idefix/startnc1.sh b/asterix-app/scripts/idefix/startnc1.sh
new file mode 100755
index 0000000..562b086
--- /dev/null
+++ b/asterix-app/scripts/idefix/startnc1.sh
@@ -0,0 +1,8 @@
+#/bin/bash
+
+#export JAVA_OPTS="-Xmx1024m -DAsterixConfigFileName=asterix-idefix.properties"
+#export JAVA_OPTS="-agentlib:hprof=cpu=samples,file=/tmp/q9.dump -Xmx1024m -DAsterixConfigFileName=asterix-idefix.properties"
+export JAVA_OPTS="-DAsterixConfigFileName=test.properties -Djava.util.logging.config.file=/home/nicnic/Work/Asterix/hyracks/logging.properties"
+export HYRACKS_HOME="/home/nicnic/workspace/hyracks/tags/hyracks-0.1.5"
+
+bash ${HYRACKS_HOME}/hyracks-server/target/appassembler/bin/hyracksnc -cc-host 127.0.0.1 -data-ip-address 127.0.0.1 -node-id "nc1" $* 
diff --git a/asterix-app/scripts/idefix/startnc2.sh b/asterix-app/scripts/idefix/startnc2.sh
new file mode 100755
index 0000000..b8b87ff
--- /dev/null
+++ b/asterix-app/scripts/idefix/startnc2.sh
@@ -0,0 +1,7 @@
+#/bin/bash
+
+export JAVA_OPTS="-DAsterixConfigFileName=test.properties -Djava.util.logging.config.file=/home/nicnic/Work/Asterix/hyracks/logging.properties"
+export HYRACKS_HOME="/home/nicnic/workspace/hyracks/tags/hyracks-0.1.5"
+
+bash ${HYRACKS_HOME}/hyracks-server/target/appassembler/bin/hyracksnc -cc-host 127.0.0.1 -data-ip-address 127.0.0.1 -node-id "nc2" $*
+
diff --git a/asterix-app/scripts/idefix/stopallncs.sh b/asterix-app/scripts/idefix/stopallncs.sh
new file mode 100755
index 0000000..5644d87
--- /dev/null
+++ b/asterix-app/scripts/idefix/stopallncs.sh
@@ -0,0 +1,6 @@
+#!/bin/bash
+
+PID=`/usr/bin/jps | grep NCDriver | awk '{print $1}'`
+
+echo $PID
+kill -9 $PID
diff --git a/asterix-app/scripts/idefix/stopcc.sh b/asterix-app/scripts/idefix/stopcc.sh
new file mode 100755
index 0000000..b13c454
--- /dev/null
+++ b/asterix-app/scripts/idefix/stopcc.sh
@@ -0,0 +1,6 @@
+#!/bin/bash
+
+PID=`/usr/bin/jps | grep CCDriver | awk '{print $1}'`
+
+echo $PID
+kill -9 $PID
diff --git a/asterix-app/scripts/idefix/undeploy.hcli b/asterix-app/scripts/idefix/undeploy.hcli
new file mode 100644
index 0000000..c23a026
--- /dev/null
+++ b/asterix-app/scripts/idefix/undeploy.hcli
@@ -0,0 +1,2 @@
+connect to "localhost";
+destroy application asterix;