public class DistributedLoader extends Loader
batch, batchSize, enqueuedJobs, errorJobs, finishedJobs, loadingJobs, threadsNumber| Constructor and Description |
|---|
DistributedLoader(String graphNameInit,
Collection<String> hosts) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkForStatusLoop()
Loop checking the status of the hosts every 30 seconds.
|
void |
setPollingFrequency(long number) |
void |
setThreadsNumber(int number) |
void |
submitBatch(Collection<Var> batch)
Method to load data into the graph.
|
void |
waitToFinish()
Block the main thread until all of the transactions have finished loading
|
addToQueue, addToQueue, addToQueue, flush, getBatchSize, printLoaderState, setBatchSizepublic DistributedLoader(String graphNameInit, Collection<String> hosts)
public void setThreadsNumber(int number)
setThreadsNumber in class Loaderpublic void setPollingFrequency(long number)
public void waitToFinish()
waitToFinish in class Loaderpublic void submitBatch(Collection<Var> batch)
LoadersubmitBatch in class Loaderpublic void checkForStatusLoop()
Copyright © 2016. All rights reserved.