Commits

dloy committed 790db4f Draft

bitbucket

Comments (0)

Files changed (3)

+
+* Requirements
+JDK 1.6(+)
+Java servlet container that accepts .war (e.g. tomcat, resin, jetta, ...)
+ant
+maven 2
+________________________________
+
+* Create basic d-flat repository using base/storage/mrt.local.properties
+Edit  - these ant properties that define the
+new Storage Microservice 
+
+Properties:
+-storage.node=[absolute file path to storage node that will be constructed by script]
+Example: storage.node=/home/me/store
+Required
+
+-can.node=[absolute file path to CAN node that will be constructed by script]
+The actual storage of the pairtree/dflat architecture will occur under ths directory.
+Example: can.node=/home/me/node
+Required
+
+-can.info.identifier=[any number - used in restful interface]
+The Storage Service restful calls use this number which must be unique to the
+Storage service.
+Example: can.info.identifier=10
+Required
+
+-store.info.baseURI=[Absolute URL that will be used for the Storage Service]
+This is the URL for your Storage Service calls.
+Example: http:storge.myhost.org:8080/storage
+Required
+
+-exists.storage.node=delete
+if present then delete storage service every time clean/build is done in maven
+Default: do not delete
+
+-exists.can.node=delete
+if present then delete CAN every time clean/build is done in maven
+Default: do not delete
+
+NOTE: If you are using Windows for your Storage Service, then the file paths that you
+set in the properties need to be specified in a unix style format with forward slashes:
+C:/Documents and Settings/dloy/...
+
+* run maven
+cd to downloaded version of mrt-storeCloud
+mvn install -Pdemo
+
+This should build a working storage service
+
+________________________________
+
+* Building a working servlet
+After running the previous step a storage.war file will now exist that can be used
+on the Storage Service defined by the previous step.
+
+The .war is base/store-war/war/storage.war
+
+Place this .war in a java container (tomcat/webapps, resin/webapps, jetta, ...) and start the container.
+
+The restful interface should now be available at[store.info.baseURI]
+
+Test:
+- [store.info.baseURI]/state 
+Example: http:storge.myhost.org:8080/storage/state - Storage Service state
+
+- [store.info.baseURI]/state/[[store.info.baseURI]
+Example: http:storge.myhost.org:8080/storage/state/10 - CAN state
+
+
+============================================
+Note:
+- Storage service URLs are sensitive to slashes (/) so URL encoding is required for any
+URL element containing a slash:
+http://storge.myhost.org:8080/storage/state/15/ark%3A%2F13030%2Fabcd

example.mrt.local.properties

+#Note the presents  storage/mrt.local.properties level will create a new
+#test storage repository.
+#For description of use see README-SETUP.txt
+storage.node=/home/smith/MRTMaven/repository/mrt-test/store
+can.node=/home/smith/MRTMaven/repository/mrt-test/node
+can.info.identifier=10
+store.info.baseURI=http://myhost.cdlib.org:50550/storage
+
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+    <modelVersion>4.0.0</modelVersion>
+    <artifactId>mrt-storecloud</artifactId>
+    <groupId>org.cdlib.mrt</groupId>
+
+    <packaging>pom</packaging>
+    <version>1.0-SNAPSHOT</version>
+    <name>UC3-mrtStoreCloud</name>
+    <description>UC3 Merritt Micro-Services</description>
+    <url>http://uc3.cdlib.org</url>
+
+    <!-- let profiles determine which conf module to run -->
+    <profiles>
+        <profile>
+            <id>notUC3</id>
+            <activation>
+                <activeByDefault>true</activeByDefault>
+            </activation>   
+            <modules>
+                <module>store-init</module>
+                <module>store-conf</module>
+                <module>store-src</module>
+                <!--<module>store-cmd</module>-->
+                <module>store-war</module>
+                <!--<module>store-demo</module>-->
+            </modules>
+        </profile>
+        <profile>
+            <id>nodeWar</id>
+            <modules>
+                <module>store-init</module>
+                <module>store-conf-uc3</module>
+                <module>store-src</module>
+                <module>node-war-uc3</module>
+            </modules>
+        </profile>
+        <profile>
+          <id>uc3</id> 
+            <modules>
+                <module>store-init</module>
+                <module>store-conf-uc3</module>
+                <module>store-src</module>
+                <!--<module>store-cmd</module>-->
+                <module>store-war</module>
+            </modules>
+        </profile>
+        <profile>
+          <id>demo</id> 
+            <modules>
+                <module>store-init</module>
+                <module>store-demo</module>
+                <module>store-conf</module>
+                <module>store-src</module>
+                <!--<module>store-cmd</module>-->
+                <module>store-war</module>
+            </modules>
+        </profile>
+     </profiles>
+    
+</project>
+
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.