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, writepublic 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 SimpleHTTPPostPersistWriterExceptionprotected com.fasterxml.jackson.databind.node.ObjectNode executePost(org.apache.http.client.methods.HttpPost httpPost)
executePost in class SimpleHTTPPostPersistWriterpublic void prepare(Object configurationObject)
prepare in interface StreamsOperationprepare in class SimpleHTTPPostPersistWriterpublic void cleanUp()
cleanUp in interface StreamsOperationcleanUp in class SimpleHTTPPostPersistWriterCopyright © 2018 The Apache Software Foundation. All rights reserved.