org.openrdf.sail.federation
Class Federation

java.lang.Object
  extended by org.openrdf.sail.helpers.SailBase
      extended by org.openrdf.sail.federation.Federation
All Implemented Interfaces:
Executor, Sail

public class Federation
extends SailBase
implements Executor

Union multiple (possibly remote) Repositories into a single RDF store.

Author:
James Leigh, Arjohn Kampman

Field Summary
 
Fields inherited from class org.openrdf.sail.helpers.SailBase
connectionTimeOut, DEFAULT_CONNECTION_TIMEOUT, logger
 
Constructor Summary
Federation()
           
 
Method Summary
 void addMember(Repository member)
           
 void execute(Runnable command)
           
protected  SailConnection getConnectionInternal()
           
 PrefixHashSet getLocalPropertySpace()
           
 ValueFactory getValueFactory()
           
 void initialize()
           
 boolean isDistinct()
           
 boolean isReadOnly()
           
 boolean isWritable()
           
 void setDistinct(boolean distinct)
           
 void setLocalPropertySpace(Collection<String> localPropertySpace)
           
 void setReadOnly(boolean readOnly)
           
protected  void shutDownInternal()
           
 
Methods inherited from class org.openrdf.sail.helpers.SailBase
connectionClosed, debugEnabled, getConnection, getDataDir, setDataDir, shutDown, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Federation

public Federation()
Method Detail

getValueFactory

public ValueFactory getValueFactory()
Specified by:
getValueFactory in interface Sail

isWritable

public boolean isWritable()
                   throws SailException
Specified by:
isWritable in interface Sail
Throws:
SailException

addMember

public void addMember(Repository member)

getLocalPropertySpace

public PrefixHashSet getLocalPropertySpace()
Returns:
PrefixHashSet or null

setLocalPropertySpace

public void setLocalPropertySpace(Collection<String> localPropertySpace)

isDistinct

public boolean isDistinct()

setDistinct

public void setDistinct(boolean distinct)

isReadOnly

public boolean isReadOnly()

setReadOnly

public void setReadOnly(boolean readOnly)

initialize

public void initialize()
                throws SailException
Specified by:
initialize in interface Sail
Throws:
SailException

shutDownInternal

protected void shutDownInternal()
                         throws SailException
Specified by:
shutDownInternal in class SailBase
Throws:
SailException

execute

public void execute(Runnable command)
Specified by:
execute in interface Executor

getConnectionInternal

protected SailConnection getConnectionInternal()
                                        throws SailException
Specified by:
getConnectionInternal in class SailBase
Throws:
SailException


Copyright © 2004-2009 James Leigh Services Inc.. All Rights Reserved.