org.openrdf.elmo.tapestry
Class HiveMindSesameRepository

java.lang.Object
  extended by org.openrdf.elmo.tapestry.HiveMindSesameRepository
All Implemented Interfaces:
EventListener, RegistryShutdownListener, Repository

public class HiveMindSesameRepository
extends Object
implements Repository, RegistryShutdownListener

HiveMind aware Repository, the repository is closed when HiveMind shutdowns.

Author:
James Leigh

Constructor Summary
HiveMindSesameRepository(Repository repository)
           
 
Method Summary
 RepositoryConnection getConnection()
           
 File getDataDir()
           
protected  Repository getRepository(File dir, String id)
           
 ValueFactory getValueFactory()
           
 void initialize()
           
 boolean isWritable()
           
 void registryDidShutdown()
           
 void setApplicationId(String applicationId)
           
 void setDataDir(File dataDir)
           
 void setInitData(Resource initData)
           
 void setRepositoryId(String repositoryId)
           
 void shutDown()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HiveMindSesameRepository

public HiveMindSesameRepository(Repository repository)
Method Detail

setApplicationId

public void setApplicationId(String applicationId)

getDataDir

public File getDataDir()
Specified by:
getDataDir in interface Repository

setDataDir

public void setDataDir(File dataDir)
Specified by:
setDataDir in interface Repository

setInitData

public void setInitData(Resource initData)

setRepositoryId

public void setRepositoryId(String repositoryId)

initialize

public void initialize()
Specified by:
initialize in interface Repository

getRepository

protected Repository getRepository(File dir,
                                   String id)
                            throws RepositoryException,
                                   RepositoryConfigException
Throws:
RepositoryException
RepositoryConfigException

getValueFactory

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

isWritable

public boolean isWritable()
                   throws RepositoryException
Specified by:
isWritable in interface Repository
Throws:
RepositoryException

getConnection

public RepositoryConnection getConnection()
                                   throws RepositoryException
Specified by:
getConnection in interface Repository
Throws:
RepositoryException

registryDidShutdown

public void registryDidShutdown()
Specified by:
registryDidShutdown in interface RegistryShutdownListener

shutDown

public void shutDown()
              throws RepositoryException
Specified by:
shutDown in interface Repository
Throws:
RepositoryException


Copyright © 2004-2008 Aduna. All Rights Reserved.