org.dspace.statistics
Class ElasticSearchLogger

java.lang.Object
  extended by org.dspace.statistics.ElasticSearchLogger

public class ElasticSearchLogger
extends Object


Nested Class Summary
static class ElasticSearchLogger.ClientType
           
 
Field Summary
static String address
           
static String clusterName
           
static String DATE_FORMAT_8601
           
static String DATE_FORMAT_DCDATE
           
static String indexName
           
static String indexType
           
static int port
           
 
Constructor Summary
ElasticSearchLogger()
           
ElasticSearchLogger(boolean doInitialize)
           
 
Method Summary
 void buildParents(DSpaceObject dso, HashMap<String,ArrayList<Integer>> parents)
           
 org.elasticsearch.client.Client createNodeClient(ElasticSearchLogger.ClientType clientType)
           
 void createTransportClient()
           
static String getAddress()
           
 org.elasticsearch.client.Client getClient()
           
 org.elasticsearch.client.Client getClient(ElasticSearchLogger.ClientType clientType)
           
static String getClusterName()
           
 String getConfigurationStringWithFallBack(String module, String configurationKey, String defaultFallbackValue)
           
static String getIndexName()
           
static String getIndexType()
           
static ElasticSearchLogger getInstance()
           
 HashMap<String,ArrayList<Integer>> getParents(DSpaceObject dso)
           
static int getPort()
           
 void initializeElasticSearch()
           
 boolean isUseProxies()
           
 void post(DSpaceObject dspaceObject, javax.servlet.http.HttpServletRequest request, EPerson currentUser)
           
static void setAddress(String address)
           
static void setClusterName(String clusterName)
           
static void setIndexName(String indexName)
           
static void setIndexType(String indexType)
           
static void setPort(int port)
           
 void storeParents(org.elasticsearch.common.xcontent.XContentBuilder docBuilder, HashMap<String,ArrayList<Integer>> parents)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DATE_FORMAT_8601

public static final String DATE_FORMAT_8601
See Also:
Constant Field Values

DATE_FORMAT_DCDATE

public static final String DATE_FORMAT_DCDATE
See Also:
Constant Field Values

clusterName

public static String clusterName

indexName

public static String indexName

indexType

public static String indexType

address

public static String address

port

public static int port
Constructor Detail

ElasticSearchLogger

public ElasticSearchLogger()

ElasticSearchLogger

public ElasticSearchLogger(boolean doInitialize)
Method Detail

getInstance

public static ElasticSearchLogger getInstance()

initializeElasticSearch

public void initializeElasticSearch()

post

public void post(DSpaceObject dspaceObject,
                 javax.servlet.http.HttpServletRequest request,
                 EPerson currentUser)

getClusterName

public static String getClusterName()

setClusterName

public static void setClusterName(String clusterName)

getIndexName

public static String getIndexName()

setIndexName

public static void setIndexName(String indexName)

getIndexType

public static String getIndexType()

setIndexType

public static void setIndexType(String indexType)

getAddress

public static String getAddress()

setAddress

public static void setAddress(String address)

getPort

public static int getPort()

setPort

public static void setPort(int port)

buildParents

public void buildParents(DSpaceObject dso,
                         HashMap<String,ArrayList<Integer>> parents)
                  throws SQLException
Throws:
SQLException

getParents

public HashMap<String,ArrayList<Integer>> getParents(DSpaceObject dso)
                                              throws SQLException
Throws:
SQLException

storeParents

public void storeParents(org.elasticsearch.common.xcontent.XContentBuilder docBuilder,
                         HashMap<String,ArrayList<Integer>> parents)
                  throws IOException
Throws:
IOException

isUseProxies

public boolean isUseProxies()

createTransportClient

public void createTransportClient()

getClient

public org.elasticsearch.client.Client getClient()

getClient

public org.elasticsearch.client.Client getClient(ElasticSearchLogger.ClientType clientType)

createNodeClient

public org.elasticsearch.client.Client createNodeClient(ElasticSearchLogger.ClientType clientType)

getConfigurationStringWithFallBack

public String getConfigurationStringWithFallBack(String module,
                                                 String configurationKey,
                                                 String defaultFallbackValue)


Copyright © 2012 DuraSpace. All Rights Reserved.