public class Neo4jHttpPersistWriter extends SimpleHTTPPostPersistWriter
Modifier and Type | Field and Description |
---|---|
protected ReadWriteLock |
lock |
static String |
STREAMS_ID |
authHeader, httpclient, uriBuilder
Constructor and Description |
---|
Neo4jHttpPersistWriter()
GraphHttpPersistWriter constructor - resolve GraphHttpConfiguration from JVM 'graph'.
|
Neo4jHttpPersistWriter(Neo4jConfiguration configuration)
GraphHttpPersistWriter constructor - use supplied GraphHttpConfiguration.
|
Modifier and Type | Method and Description |
---|---|
void |
cleanUp() |
protected com.fasterxml.jackson.databind.node.ObjectNode |
executePost(org.apache.http.client.methods.HttpPost httpPost) |
void |
prepare(Object configurationObject) |
protected com.fasterxml.jackson.databind.node.ObjectNode |
preparePayload(StreamsDatum entry) |
getId, prepareHttpPost, prepareParams, prepareURI, write
public static final String STREAMS_ID
protected final ReadWriteLock lock
public Neo4jHttpPersistWriter()
public Neo4jHttpPersistWriter(Neo4jConfiguration configuration)
configuration
- GraphHttpConfigurationprotected com.fasterxml.jackson.databind.node.ObjectNode preparePayload(StreamsDatum entry) throws Exception
preparePayload
in class SimpleHTTPPostPersistWriter
Exception
protected com.fasterxml.jackson.databind.node.ObjectNode executePost(org.apache.http.client.methods.HttpPost httpPost)
executePost
in class SimpleHTTPPostPersistWriter
public void prepare(Object configurationObject)
prepare
in interface StreamsOperation
prepare
in class SimpleHTTPPostPersistWriter
public void cleanUp()
cleanUp
in interface StreamsOperation
cleanUp
in class SimpleHTTPPostPersistWriter
Copyright © 2018 The Apache Software Foundation. All rights reserved.