public class DistributedLoader extends Loader
batchSize, enqueuedJobs, errorJobs, finishedJobs, loadingJobs, queries, threadsNumber| Constructor and Description |
|---|
DistributedLoader(String graphName,
Collection<String> hosts) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkForStatusLoop()
Loop checking the status of the hosts every 30 seconds.
|
void |
resetAvailabilityMap() |
void |
resetJobsTerminated() |
void |
sendQueriesToLoader(Collection<InsertQuery> queries)
Method to load data into the graph.
|
void |
setPollingFrequency(long number)
Amount of time to wait before checking number completed jobs with slaves
|
Loader |
setThreadsNumber(int number)
Set the number of thread that will execute insert transactions at a time
|
void |
waitToFinish()
Block the main thread until all of the transactions have finished loading
|
add, flush, getBatchSize, handleError, printLoaderState, setBatchSizepublic DistributedLoader(String graphName, Collection<String> hosts)
public Loader setThreadsNumber(int number)
LoadersetThreadsNumber in class Loaderpublic void resetAvailabilityMap()
public void resetJobsTerminated()
public void setPollingFrequency(long number)
public void waitToFinish()
waitToFinish in class Loaderpublic void sendQueriesToLoader(Collection<InsertQuery> queries)
LoadersendQueriesToLoader in class Loaderpublic void checkForStatusLoop()
Copyright © 2016 Grakn Labs Ltd. All rights reserved.