public class ElasticSearchLoggerServiceImpl extends Object implements ElasticSearchLoggerService, org.springframework.beans.factory.InitializingBean
ElasticSearchLoggerService.ClientType| Modifier and Type | Field and Description |
|---|---|
protected String |
address |
protected org.elasticsearch.client.Client |
client |
protected String |
clusterName |
static String |
DATE_FORMAT_8601 |
static String |
DATE_FORMAT_DCDATE |
protected String |
indexName |
protected String |
indexType |
protected static com.maxmind.geoip.LookupService |
locationService |
protected int |
port |
protected boolean |
useProxies |
| Modifier | Constructor and Description |
|---|---|
protected |
ElasticSearchLoggerServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
void |
buildParents(DSpaceObject dso,
HashMap<String,ArrayList<String>> parents) |
org.elasticsearch.client.Client |
createNodeClient(ElasticSearchLoggerService.ClientType clientType) |
void |
createTransportClient() |
String |
getAddress() |
org.elasticsearch.client.Client |
getClient() |
org.elasticsearch.client.Client |
getClient(ElasticSearchLoggerService.ClientType clientType) |
String |
getClusterName() |
String |
getConfigurationStringWithFallBack(String module,
String configurationKey,
String defaultFallbackValue) |
String |
getIndexName() |
String |
getIndexType() |
HashMap<String,ArrayList<String>> |
getParents(DSpaceObject dso) |
int |
getPort() |
boolean |
isUseProxies() |
void |
post(DSpaceObject dspaceObject,
javax.servlet.http.HttpServletRequest request,
EPerson currentUser) |
void |
post(DSpaceObject dspaceObject,
String ip,
String userAgent,
String xforwardedfor,
EPerson currentUser) |
void |
setAddress(String address) |
void |
setClusterName(String clusterName) |
void |
setIndexName(String indexName) |
void |
setIndexType(String indexType) |
void |
setPort(int port) |
void |
storeParents(org.elasticsearch.common.xcontent.XContentBuilder docBuilder,
HashMap<String,ArrayList<String>> parents) |
protected boolean useProxies
public static final String DATE_FORMAT_8601
public static final String DATE_FORMAT_DCDATE
protected static com.maxmind.geoip.LookupService locationService
protected String clusterName
protected String indexName
protected String indexType
protected String address
protected int port
protected org.elasticsearch.client.Client client
public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanExceptionpublic void post(DSpaceObject dspaceObject, javax.servlet.http.HttpServletRequest request, EPerson currentUser)
post in interface ElasticSearchLoggerServicepublic void post(DSpaceObject dspaceObject, String ip, String userAgent, String xforwardedfor, EPerson currentUser)
post in interface ElasticSearchLoggerServicepublic String getClusterName()
getClusterName in interface ElasticSearchLoggerServicepublic void setClusterName(String clusterName)
setClusterName in interface ElasticSearchLoggerServicepublic String getIndexName()
getIndexName in interface ElasticSearchLoggerServicepublic void setIndexName(String indexName)
setIndexName in interface ElasticSearchLoggerServicepublic String getIndexType()
getIndexType in interface ElasticSearchLoggerServicepublic void setIndexType(String indexType)
setIndexType in interface ElasticSearchLoggerServicepublic String getAddress()
getAddress in interface ElasticSearchLoggerServicepublic void setAddress(String address)
setAddress in interface ElasticSearchLoggerServicepublic int getPort()
getPort in interface ElasticSearchLoggerServicepublic void setPort(int port)
setPort in interface ElasticSearchLoggerServicepublic void buildParents(DSpaceObject dso, HashMap<String,ArrayList<String>> parents) throws SQLException
buildParents in interface ElasticSearchLoggerServiceSQLExceptionpublic HashMap<String,ArrayList<String>> getParents(DSpaceObject dso) throws SQLException
getParents in interface ElasticSearchLoggerServiceSQLExceptionpublic void storeParents(org.elasticsearch.common.xcontent.XContentBuilder docBuilder,
HashMap<String,ArrayList<String>> parents)
throws IOException
storeParents in interface ElasticSearchLoggerServiceIOExceptionpublic boolean isUseProxies()
isUseProxies in interface ElasticSearchLoggerServicepublic void createTransportClient()
createTransportClient in interface ElasticSearchLoggerServicepublic org.elasticsearch.client.Client getClient()
getClient in interface ElasticSearchLoggerServicepublic org.elasticsearch.client.Client getClient(ElasticSearchLoggerService.ClientType clientType)
getClient in interface ElasticSearchLoggerServicepublic org.elasticsearch.client.Client createNodeClient(ElasticSearchLoggerService.ClientType clientType)
createNodeClient in interface ElasticSearchLoggerServicepublic String getConfigurationStringWithFallBack(String module, String configurationKey, String defaultFallbackValue)
getConfigurationStringWithFallBack in interface ElasticSearchLoggerServiceCopyright © 2016 DuraSpace. All Rights Reserved.