DS-1241 Statistics Implementation in Elastic Search

Copied in Implementation of Elastic Search, and wired it into DSpace.
I changed the ES Node to be a nodeClient, and also one that runs locally
within tomcat's JVM. For OSU, we had used either transport-client, or
node-client, and both of which required that the server also be running a
seperate elastic search instance. By bundling this into DSpace, it should
make this a bit more turn-key to get started using Elastic Search.

By default, Elastic Search is ON with this commit.
This commit is contained in:
Peter Dietz
2012-08-10 13:56:23 -04:00
committed by Peter Dietz
parent 3b1cc06e0d
commit 59d1970f1c
44 changed files with 4460 additions and 10 deletions

View File

@@ -7,13 +7,13 @@
*/
package org.dspace.content;
import java.sql.SQLException;
import org.dspace.core.Constants;
import org.dspace.core.Context;
import org.dspace.eperson.EPerson;
import org.dspace.eperson.Group;
import java.sql.SQLException;
/**
* Abstract base class for DSpace objects
*/
@@ -65,6 +65,15 @@ public abstract class DSpaceObject
*/
public abstract int getType();
/**
* Provide the text name of the type of this DSpaceObject. It is most likely all uppercase.
* @return Object type as text
*/
public String getTypeText()
{
return Constants.typeText[this.getType()];
}
/**
* Get the internal ID (database primary key) of this object
*