Skip to content
This repository has been archived by the owner on Jan 3, 2019. It is now read-only.

Commit

Permalink
Fix javadoc errors and add javadoc to Travis
Browse files Browse the repository at this point in the history
  • Loading branch information
robyj authored and Andrew Woods committed Jun 1, 2015
1 parent 05ba120 commit 98b6953
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 3 deletions.
11 changes: 9 additions & 2 deletions .travis.yml
Expand Up @@ -5,9 +5,16 @@ before_script:
- "echo $JAVA_OPTS"
- "export JAVA_OPTS=-Xmx512m"
install: JAVA_OPTS=-Xmx512m mvn install -DskipTests=true

branches:
only:
- master
only:
- master
- /^fcrepo-*/

script:
- mvn javadoc:jar
- mvn javadoc:test-aggregate

notifications:
irc: "irc.freenode.org#fcrepo"
email:
Expand Down
6 changes: 6 additions & 0 deletions README.md
@@ -1,3 +1,9 @@
fcrepo-message-consumer
=======================

[![Build Status](https://travis-ci.org/fcrepo4/fcrepo-message-consumer.png?branch=master)](https://travis-ci.org/fcrepo4/fcrepo-message-consumer)


This is a fcrepo 4.x indexer that listens to the Fedora JMS topic, retrieves a message including pid and eventType, looks up object properties, gets and passes the transformed or untransformed properties on to any number of registered handlers. It is built relying heavily on Spring machinery, including:

* spring-lang
Expand Down
Expand Up @@ -80,6 +80,9 @@ public Boolean call() throws Exception {

/**
* Test whether an update message has been received for a PID.
*
* @param id Pid to check for updates
* @return true if one or more messasges were received for this Pid
**/
public boolean receivedUpdate(final URI id) {
LOGGER.debug("Checked whether we received an update for: {}, {}", id,
Expand All @@ -89,6 +92,9 @@ public boolean receivedUpdate(final URI id) {

/**
* Test whether a remove message has been received for a PID.
*
* @param id Pid to check if a remove message has been received
* @return true if one or more remove messages have been received
**/
public boolean receivedRemove(final URI id) {
LOGGER.debug("Checked whether we received a remove for: {}, {}", id,
Expand Down
Expand Up @@ -41,7 +41,7 @@ private SparqlIndexerITHelper() {
/**
* Count the number of triples in the triplestore for a Fedora object.
*
* @param uri
* @param uri URI to object to perform this action on
* @return the number of triples
*/
public static int countDescribeTriples(final String uri) {
Expand All @@ -58,6 +58,9 @@ public static int countDescribeTriples(final String uri) {

/**
* Perform a SPARQL search and return the number of triples returned.
*
* @param searchQuery The SPARQL query to perform
* @return the number of triples found by the query
*/
public static int countQueryTriples(final String searchQuery) {
// perform query
Expand Down
4 changes: 4 additions & 0 deletions pom.xml
Expand Up @@ -363,6 +363,10 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
</plugin>
<plugin>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.10.3</version>
</plugin>
</plugins>
</build>

Expand Down

0 comments on commit 98b6953

Please sign in to comment.