Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add configuration files for OSGi deployment
  • Loading branch information
acoburn authored and Andrew Woods committed Aug 4, 2015
1 parent a7545cc commit 62d6b2e
Show file tree
Hide file tree
Showing 14 changed files with 261 additions and 1 deletion.
19 changes: 19 additions & 0 deletions fcrepo-audit-triplestore/pom.xml
Expand Up @@ -86,6 +86,8 @@
<artifactId>maven-compiler-plugin</artifactId>
</plugin>

<!-- reserve network ports for integration testing -->
<!-- add configuration file to artifact set for OSGi deployment -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
Expand All @@ -94,6 +96,23 @@
<portName>fuseki.dynamic.test.port</portName>
</portNames>
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>attach-artifact</goal>
</goals>
<configuration>
<artifacts>
<artifact>
<file>src/main/cfg/org.fcrepo.camel.audit.cfg</file>
<type>cfg</type>
<classifier>configuration</classifier>
</artifact>
</artifacts>
</configuration>
</execution>
</executions>
</plugin>

<plugin>
Expand Down
21 changes: 21 additions & 0 deletions fcrepo-audit-triplestore/src/main/cfg/org.fcrepo.camel.audit.cfg
@@ -0,0 +1,21 @@
# The name of the container where internal audit events are created (if using
# http://github.com/fcrepo4-labs/fcrepo-audit). Events about
# resources in this container are ignored.
audit.container=/audit

# In the event of failure, the maximum number of times a redelivery will be attempted.
error.maxRedeliveries=10

# The baseUri to use for event URIs in the triplestore. A `UUID` will be appended
# to this value, forming, for instance: `http://example.com/event/{UUID}`
event.baseUri=http://example.com/event

# The connection URI used to connect to a local or remote ActiveMQ broker
jms.brokerUrl=tcp://localhost:61616

# The camel URI for the incoming message stream.
input.stream=activemq:topic:fedora

# The base URL of the triplestore being used.
triplestore.baseUrl=localhost:3030/test/update

18 changes: 18 additions & 0 deletions fcrepo-fixity/pom.xml
Expand Up @@ -105,6 +105,7 @@
</plugin>

<!-- reserve network ports for integration testing -->
<!-- add configuration file to artifact set for OSGi deployment -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
Expand All @@ -116,6 +117,23 @@
<portName>jetty.dynamic.stop.port</portName>
</portNames>
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>attach-artifact</goal>
</goals>
<configuration>
<artifacts>
<artifact>
<file>src/main/cfg/org.fcrepo.camel.fixity.cfg</file>
<type>cfg</type>
<classifier>configuration</classifier>
</artifact>
</artifacts>
</configuration>
</execution>
</executions>
</plugin>

<!-- integration testing -->
Expand Down
31 changes: 31 additions & 0 deletions fcrepo-fixity/src/main/cfg/org.fcrepo.camel.fixity.cfg
@@ -0,0 +1,31 @@
# In the event of a failure, the maxiumum number of times a redelivery will be attempted
error.maxRedeliveries=10

# If the fedora repository requires authentication, the following variables can be set:
fcrepo.authUsername=
fcrepo.authPassword=
fcrepo.authHost=

# The baseUrl for the fedora repository
fcrepo.baseUrl=localhost:8080/fcrepo/rest

# The JMS connection URL, used as a default input stream (queue)
jms.brokerUrl=tcp://localhost:61616

# The camel URI for the incoming message stream
fixity.stream=activemq:queue:fixity

# Because fixity checking can put a significant load on a server, it can be convenient
# to introduce a delay between each fixity check. That delay is measured in milliseconds.
fixity.delay=0

# Most importantly, it is possible to configure what should happen when a fixity check fails.
# In the default example below, the fixity output is written to a file in `/tmp/fixityErrors.log`. But this can
# be changed to send a message to an email address (`fixity.failure=smtp:admin@example.org?subject=Fixity`)
# or use just about any other camel component.
fixity.failure=file:/tmp/?fileName=fixityErrors.log&fileExist=Append

# It is also possible to trigger an action on success (by default, this is a no-op):
fixity.success=mock:fixity.success


9 changes: 9 additions & 0 deletions fcrepo-indexing-solr/README.md
Expand Up @@ -89,6 +89,10 @@ The camel URI for the incoming message stream.

input.stream=activemq:topic:fedora

The camel URI for handling reindexing events.

solr.reindex.stream=activemq:queue:solr.reindex

The baseUrl for the Solr server. If using Solr 4.x or better, the URL should include
the core name.

Expand All @@ -98,6 +102,11 @@ The timeframe (in milliseconds) within which new items should be committed to th

solr.commitWithin=10000

The location of the internal Audit trail, if using the `fcrepo-audit` extension module.
Nodes at this location will not be indexed.

audit.container=/audit

By editing this file, any currently running routes will be immediately redeployed
with the new values.

Expand Down
18 changes: 18 additions & 0 deletions fcrepo-indexing-solr/pom.xml
Expand Up @@ -120,6 +120,7 @@
</plugin>

<!-- reserve network ports for integration testing -->
<!-- add configuration file to artifact set for OSGi deployment -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
Expand All @@ -131,6 +132,23 @@
<portName>jetty.dynamic.stop.port</portName>
</portNames>
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>attach-artifact</goal>
</goals>
<configuration>
<artifacts>
<artifact>
<file>src/main/cfg/org.fcrepo.camel.indexing.solr.cfg</file>
<type>cfg</type>
<classifier>configuration</classifier>
</artifact>
</artifacts>
</configuration>
</execution>
</executions>
</plugin>

<!-- integration testing -->
Expand Down
@@ -0,0 +1,38 @@
# In the event of failure, the maximum number of times a redelivery will be attempted.
error.maxRedeliveries=10

# If the fedora repository requires authentication, the following values can be set:
fcrepo.authUsername=
fcrepo.authPassword=
fcrepo.authHost=

# The baseUrl for the fedora repository.
fcrepo.baseUrl=localhost:8080/fcrepo/rest

# The default `LDPath` transformation to use. This is overridden on a per-object
# basis with the `indexing:hasIndexingTransformation` predicate.
fcrepo.defaultTransform=default

# If you would like to index only those objects with a type `indexing:Indexable`,
# set this property to `true`
indexing.predicate=false

# The JMS connection URI, used for connecting to a local or remote ActiveMQ broker.
jms.brokerUrl=tcp://localhost:61616

# The camel URI for the incoming message stream.
input.stream=activemq:topic:fedora

# The camel URI for handling reindexing events.
solr.reindex.stream=activemq:queue:solr.reindex

# The baseUrl for the Solr server. If using Solr 4.x or better, the URL should include
# the core name.
solr.baseUrl=localhost:8983/solr/collection1

# The timeframe (in milliseconds) within which new items should be committed to the solr index.
solr.commitWithin=10000

# The location of the internal Audit trail if using the fcrepo-audit extension module.
# Nodes at this location will not be indexed.
audit.container=/audit
9 changes: 9 additions & 0 deletions fcrepo-indexing-triplestore/README.md
Expand Up @@ -69,6 +69,10 @@ The camel URI for the incoming message stream.

input.stream=activemq:topic:fedora

The camel URI for handling reindexing events.

triplestore.reindex.stream=activemq:queue:triplestore.reindex

The base URL of the triplestore being used.

triplestore.baseUrl=localhost:3030/test/update
Expand All @@ -78,6 +82,11 @@ not left blank, should be a valid URI.

triplestore.namedGraph=

The location of the internal Audit trail, if using the `fcrepo-audit` extension module.
Nodes at this location will not be indexed.

audit.container=/audit

By editing this file, any currently running routes will be immediately redeployed
with the new values.

Expand Down
18 changes: 18 additions & 0 deletions fcrepo-indexing-triplestore/pom.xml
Expand Up @@ -119,6 +119,7 @@
</plugin>

<!-- reserve network ports for integration testing -->
<!-- add configuration file to artifact set for OSGi deployment -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
Expand All @@ -131,6 +132,23 @@
<portName>jetty.dynamic.stop.port</portName>
</portNames>
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>attach-artifact</goal>
</goals>
<configuration>
<artifacts>
<artifact>
<file>src/main/cfg/org.fcrepo.camel.indexing.triplestore.cfg</file>
<type>cfg</type>
<classifier>configuration</classifier>
</artifact>
</artifacts>
</configuration>
</execution>
</executions>
</plugin>

<!-- integration testing -->
Expand Down
@@ -0,0 +1,34 @@
# In the event of failure, the maximum number of times a redelivery will be attempted.
error.maxRedeliveries=10

# If the fedora repository requires authentication, the following values can be set:
fcrepo.authUsername=
fcrepo.authPassword=
fcrepo.authHost=

# The baseUrl for the fedora repository.
fcrepo.baseUrl=localhost:8080/fcrepo/rest

# If you would like to index only those objects with a type `indexing:Indexable`,
# set this property to `true`
indexing.predicate=false

# The JMS connection URI, used for connecting to a local or remote ActiveMQ broker.
jms.brokerUrl=tcp://localhost:61616

# The camel URI for the incoming message stream.
input.stream=activemq:topic:fedora

# The camel URI for handling reindexing events.
triplestore.reindex.stream=activemq:queue:triplestore.reindex

# The base URL of the triplestore being used.
triplestore.baseUrl=localhost:3030/test/update

# A named graph for any objects being indexed in the triplestore. This value, if
# not left blank, should be a valid URI.
triplestore.namedGraph=

# The location of the internal Audit trail if using the fcrepo-audit extension module.
# Nodes at this location will not be indexed.
audit.container=/audit
18 changes: 18 additions & 0 deletions fcrepo-reindexing/pom.xml
Expand Up @@ -124,6 +124,7 @@
</plugin>

<!-- reserve network ports for integration testing -->
<!-- add configuration file to artifact set for OSGi deployment -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
Expand All @@ -136,6 +137,23 @@
<portName>jetty.dynamic.stop.port</portName>
</portNames>
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>attach-artifact</goal>
</goals>
<configuration>
<artifacts>
<artifact>
<file>src/main/cfg/org.fcrepo.camel.reindexing.cfg</file>
<type>cfg</type>
<classifier>configuration</classifier>
</artifact>
</artifacts>
</configuration>
</execution>
</executions>
</plugin>

<!-- integration testing -->
Expand Down
22 changes: 22 additions & 0 deletions fcrepo-reindexing/src/main/cfg/org.fcrepo.camel.reindexing.cfg
@@ -0,0 +1,22 @@
# In the event of failure, the maximum number of times a redelivery will be attempted.
error.maxRedeliveries=10

# If the fedora repository requires authentication, the following values can be set:
fcrepo.authUsername=
fcrepo.authPassword=
fcrepo.authHost=

# The baseUrl for the fedora repository.
fcrepo.baseUrl=localhost:8080/fcrepo/rest

# The JMS connection URI, used for connecting to a local or remote ActiveMQ broker.
jms.brokerUrl=tcp://localhost:61616

# The camel URI for the internal reindexing queue.
reindexing.stream=activemq:queue:reindexing

# The URL path prefix for the reindexing endpoint.
rest.prefix=/reindexing

# The port at which reindexing requests can be sent.
rest.port=9080
2 changes: 1 addition & 1 deletion pom.xml
Expand Up @@ -636,7 +636,7 @@
<runOnlyAtExecutionRoot>true</runOnlyAtExecutionRoot>
<artifacts>
<artifact>
<file>target/classes/features.xml</file>
<file>${project.basedir}/target/classes/features.xml</file>
<type>xml</type>
<classifier>features</classifier>
</artifact>
Expand Down

0 comments on commit 62d6b2e

Please sign in to comment.