Examples of LockFactory


Examples of org.apache.derby.iapi.services.locks.LockFactory

      if (!initialized)
      {
        LanguageConnectionContext lcc = ConnectionUtil.getCurrentLCC();

        tc = lcc.getTransactionExecute();
        LockFactory lf = tc.getAccessManager().getLockFactory();
        lockTable = lf.makeVirtualLockTable();
        initialized = true;
        tabInfo = new TableNameInfo(lcc, true);
      }

      currentRow = null;
View Full Code Here

Examples of org.apache.derby.iapi.services.locks.LockFactory

      {
        LanguageConnectionContext lcc = ConnectionUtil.getCurrentLCC();

        tc = lcc.getTransactionExecute();
        LanguageConnectionFactory lcf = lcc.getLanguageConnectionFactory();
        LockFactory lf = lcf.getAccessFactory().getLockFactory();
        lockTable = lf.makeVirtualLockTable();
        initialized = true;
        tabInfo = new TableNameInfo(lcc, true);
      }

      currentRow = null;
View Full Code Here

Examples of org.apache.derby.iapi.services.locks.LockFactory

      if (!initialized)
      {
        LanguageConnectionContext lcc = ConnectionUtil.getCurrentLCC();

        tc = lcc.getTransactionExecute();
        LockFactory lf = tc.getAccessManager().getLockFactory();
        lockTable = lf.makeVirtualLockTable();
        initialized = true;
        tabInfo = new TableNameInfo(lcc, true);
      }

      currentRow = null;
View Full Code Here

Examples of org.apache.derby.iapi.services.locks.LockFactory

      if (!initialized)
      {
        LanguageConnectionContext lcc = ConnectionUtil.getCurrentLCC();

        tc = lcc.getTransactionExecute();
        LockFactory lf = tc.getAccessManager().getLockFactory();
        lockTable = lf.makeVirtualLockTable();
        initialized = true;
        tabInfo = new TableNameInfo(lcc, true);
      }

      currentRow = null;
View Full Code Here

Examples of org.apache.derby.iapi.services.locks.LockFactory

      {
        LanguageConnectionContext lcc = ConnectionUtil.getCurrentLCC();

        tc = lcc.getTransactionExecute();
        LanguageConnectionFactory lcf = lcc.getLanguageConnectionFactory();
        LockFactory lf = lcf.getAccessFactory().getLockFactory();
        lockTable = lf.makeVirtualLockTable();
        initialized = true;
        tabInfo = new TableNameInfo(lcc, true);
      }

      currentRow = null;
View Full Code Here

Examples of org.apache.lucene.store.LockFactory

   */
  public synchronized void startup() throws PersistenceException {
    try {
      if (fDirectory == null) {
        String path = Activator.getDefault().getStateLocation().toOSString();
        LockFactory lockFactory = new NativeFSLockFactory(path);
        fDirectory = FSDirectory.getDirectory(path, lockFactory);
      }

      if (fIndexer == null)
        fIndexer = new Indexer(this, fDirectory);
View Full Code Here

Examples of org.apache.lucene.store.LockFactory

   */
  public void startup() throws PersistenceException {
    try {
      if (fDirectory == null) {
        String path = Activator.getDefault().getStateLocation().toOSString();
        LockFactory lockFactory = new NativeFSLockFactory(path);
        fDirectory = FSDirectory.getDirectory(path, lockFactory);
      }

      if (fIndexer == null)
        fIndexer = new Indexer(this, fDirectory);
View Full Code Here

Examples of org.apache.lucene.store.LockFactory

   * @param indexDir The directory where to write a new index
   * @return the created FSDirectory
   * @throws IOException
   */
  public static FSDirectory createFSIndex(File indexDir, Properties dirConfiguration) throws IOException {
    LockFactory lockFactory = createLockFactory(indexDir, dirConfiguration);
    FSDirectory fsDirectory = FSDirectory.open( indexDir, null );
    // must use the setter (instead of using the constructor) to set the lockFactory, or Lucene will
    // throw an exception if it's different than a previous setting.
    fsDirectory.setLockFactory( lockFactory );
    if ( ! IndexReader.indexExists( fsDirectory ) ) {
View Full Code Here

Examples of org.apache.lucene.store.LockFactory

    }
    if (config != null) {
      String lockFactoryClass = config.getString(LOCK_FACTORY_CLASS_KEY);
      if (lockFactoryClass != null && !"".equals(lockFactoryClass)) {
       
        LockFactory lockFactory = (LockFactory) Instanciator.getInstance(lockFactoryClass, new Object[][] {
            new Object[] {},
            new Object[] {config}
        });
        if (lockFactory != null) {
          try {
View Full Code Here

Examples of org.apache.lucene.store.LockFactory

    assertEquals("Directory should be a FSDirectory", fs instanceof FSDirectory, true);

    tmp = ((FSDirectory) fs).getDirectory();
   
    LockFactory lf = fs.getLockFactory();
   
    assertEquals("LockFactory should be a SimpleFSLockFactory", lf instanceof SimpleFSLockFactory, true);
   
    fs.close();
    tmp.delete();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.