org.dspace.statistics
Class ElasticSearchLogger
java.lang.Object
org.dspace.statistics.ElasticSearchLogger
public class ElasticSearchLogger
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
ElasticSearchLogger
public ElasticSearchLogger()
ElasticSearchLogger
public ElasticSearchLogger(boolean doInitialize)
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.