|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bigdata.service.jini.master.TaskMaster<S,T,U>
com.bigdata.service.jini.master.MappedTaskMaster<S,T,L,U,V>
com.bigdata.rdf.load.MappedRDFDataLoadMaster<S,T,U,L,V>
public class MappedRDFDataLoadMaster<S extends MappedRDFDataLoadMaster.JobState,T extends AbstractAsynchronousClientTask<U,V,L>,U,L extends ClientLocator,V extends Serializable>
Distributed bulk loader for RDF data. Creates/(re-)opens the
AbstractTripleStore, loads the optional ontology, and starts the
clients. The clients will run until the master is canceled loading any data
found in the JobState#dataDir. Files are optionally deleted after
they have been successfully loaded. Closure may be optionally computed.
MappedTaskMaster.newClientTask(int) and
newJobState(String, Configuration) as necessary.| Nested Class Summary | |
|---|---|
static interface |
MappedRDFDataLoadMaster.ConfigurationOptions
Configuration options for the MappedRDFDataLoadMaster. |
static class |
MappedRDFDataLoadMaster.JobState
The job description for an MappedRDFDataLoadMaster. |
| Nested classes/interfaces inherited from class com.bigdata.service.jini.master.TaskMaster |
|---|
TaskMaster.DiscoveredServices |
| Field Summary | |
|---|---|
protected static org.apache.log4j.Logger |
log
|
| Fields inherited from class com.bigdata.service.jini.master.TaskMaster |
|---|
fed |
| Constructor Summary | |
|---|---|
MappedRDFDataLoadMaster(JiniFederation fed)
|
|
| Method Summary | |
|---|---|
protected void |
beginJob(S jobState)
Extended to open/create the KB. |
protected AbstractTripleStore |
createTripleStore()
Create the AbstractTripleStore specified by
MappedRDFDataLoadMaster.ConfigurationOptions.NAMESPACE using the properties
associated with the TaskMaster.JobState#component. |
protected StringBuilder |
getKBInfo(AbstractTripleStore tripleStore)
Return various interesting metadata about the KB state. |
protected void |
loadOntology(AbstractTripleStore tripleStore)
Loads the file or directory specified by MappedRDFDataLoadMaster.ConfigurationOptions.ONTOLOGY into the ITripleStore |
static void |
main(String[] args)
Runs the master. |
protected T |
newClientTask(INotifyOutcome<V,L> notifyProxy,
L locator)
The default creates RDFFileLoadTask instances. |
protected S |
newJobState(String component,
net.jini.config.Configuration config)
Return a TaskMaster.JobState. |
AbstractTripleStore |
openTripleStore()
Create/re-open the repository. |
protected void |
runJob()
Extended to support optional load, closure, and reporting. |
void |
showProperties(AbstractTripleStore tripleStore)
Dump some properties of interest. |
| Methods inherited from class com.bigdata.service.jini.master.MappedTaskMaster |
|---|
newClientTask, newResourceBuffer |
| Methods inherited from class com.bigdata.service.jini.master.TaskMaster |
|---|
allDone, attachPerformanceCounters, awaitAll, call, cancelAll, detachPerformanceCounters, error, execute, forceOverflow, getFederation, getJobState, innerMain, notifyOutcome, setupJob, startClients, success, tearDownJob |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final org.apache.log4j.Logger log
| Constructor Detail |
|---|
public MappedRDFDataLoadMaster(JiniFederation fed)
throws net.jini.config.ConfigurationException
net.jini.config.ConfigurationException| Method Detail |
|---|
public static void main(String[] args)
throws net.jini.config.ConfigurationException,
ExecutionException,
InterruptedException,
org.apache.zookeeper.KeeperException
-Dbigdata.component to
override the configuration component name.
args - The Configuration and any overrides.
net.jini.config.ConfigurationException
ExecutionException
InterruptedException
org.apache.zookeeper.KeeperException
protected void runJob()
throws Exception
runJob in class MappedTaskMaster<S extends MappedRDFDataLoadMaster.JobState,T extends AbstractAsynchronousClientTask<U,V,L>,L extends ClientLocator,U,V extends Serializable>Exception - Client execution problem.
InterruptedException - Master interrupted awaiting clients.protected StringBuilder getKBInfo(AbstractTripleStore tripleStore)
protected void beginJob(S jobState)
throws Exception
beginJob in class TaskMaster<S extends MappedRDFDataLoadMaster.JobState,T extends AbstractAsynchronousClientTask<U,V,L>,U>ExceptionTaskMaster.ConfigurationOptions.INDEX_DUMP_DIR,
TaskMaster.ConfigurationOptions.INDEX_DUMP_NAMESPACE
public AbstractTripleStore openTripleStore()
throws net.jini.config.ConfigurationException
net.jini.config.ConfigurationException
protected AbstractTripleStore createTripleStore()
throws net.jini.config.ConfigurationException
AbstractTripleStore specified by
MappedRDFDataLoadMaster.ConfigurationOptions.NAMESPACE using the properties
associated with the TaskMaster.JobState#component.
AbstractTripleStore
net.jini.config.ConfigurationException
protected void loadOntology(AbstractTripleStore tripleStore)
throws IOException
MappedRDFDataLoadMaster.ConfigurationOptions.ONTOLOGY into the ITripleStore
IOExceptionpublic void showProperties(AbstractTripleStore tripleStore)
protected T newClientTask(INotifyOutcome<V,L> notifyProxy,
L locator)
RDFFileLoadTask instances.
newClientTask in class MappedTaskMaster<S extends MappedRDFDataLoadMaster.JobState,T extends AbstractAsynchronousClientTask<U,V,L>,L extends ClientLocator,U,V extends Serializable>notifyProxy - The proxy for the object to which the client must deliver
notice of success or failure for each processed resource.locator - The locator for the client on which the task will be executed.
protected S newJobState(String component,
net.jini.config.Configuration config)
throws net.jini.config.ConfigurationException
TaskMasterTaskMaster.JobState.
newJobState in class TaskMaster<S extends MappedRDFDataLoadMaster.JobState,T extends AbstractAsynchronousClientTask<U,V,L>,U>component - The component.config - The configuration.
TaskMaster.JobState.
net.jini.config.ConfigurationException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||