Examples of MemoryStorageManager


Examples of org.teiid.common.buffer.impl.MemoryStorageManager

                fsm.setMaxOpenFiles(maxOpenFiles);
                fsm.setMaxBufferSpace(maxBufferSpace*MB);
                fsm.initialize();       
                this.bufferMgr.setStorageManager(fsm);
            } else {
              this.bufferMgr.setStorageManager(new MemoryStorageManager());
            }
           
        } catch(TeiidComponentException e) {
            throw new TeiidRuntimeException(e, RuntimePlugin.Util.getString("LocalBufferService.Failed_initializing_buffer_manager._8")); //$NON-NLS-1$
        } catch(IOException e) {
View Full Code Here

Examples of org.teiid.common.buffer.impl.MemoryStorageManager

        bufferMgr.setConnectorBatchSize(batchSize);
        bufferMgr.setProcessorBatchSize(batchSize);
        bufferMgr.initialize();

        // Add unmanaged memory storage manager
        bufferMgr.setStorageManager(new MemoryStorageManager());

        return bufferMgr;
    }
View Full Code Here

Examples of org.teiid.common.buffer.impl.MemoryStorageManager

        return bufferManager;
    }
   
   
    private static StorageManager createFakeDatabaseStorageManager() {
        return new MemoryStorageManager();       
    }
View Full Code Here

Examples of org.teiid.common.buffer.impl.MemoryStorageManager

          return;
        }

      }, null);
      server.registerClientService(FakeService.class, new TestSocketRemoting.FakeServiceImpl(), null);
      storageManager = new MemoryStorageManager();
      listener = new SocketListener(addr.getPort(), addr.getAddress().getHostAddress(), 1024, 1024, 1, config, server, storageManager);
     
      SocketListenerStats stats = listener.getStats();
      assertEquals(0, stats.maxSockets);
      assertEquals(0, stats.objectsRead);
View Full Code Here

Examples of org.teiid.common.buffer.impl.MemoryStorageManager

    } catch (TeiidComponentException e) {
      throw new RuntimeException(e);
    }

    // Add unmanaged memory storage manager
    bufferMgr.setStorageManager(new MemoryStorageManager());
    return bufferMgr;
  }
View Full Code Here

Examples of sil.storagemanager.MemoryStorageManager

    int maxNodeEntries = Integer.parseInt(props.getProperty("MaxNodeEntries", "0"));
   
    float fillFactor = (float) minNodeEntries / (float) maxNodeEntries;
   
    // create a memory-based storage manager
    storageManager = new MemoryStorageManager();
    PropertySet propertySet = new PropertySet();
    propertySet.setProperty("FillFactor", new Double(fillFactor));
    propertySet.setProperty("IndexCapacity", new Integer(maxNodeEntries));
    propertySet.setProperty("LeafCapacity", new Integer(maxNodeEntries));
    propertySet.setProperty("Dimension", new Integer(2));
View Full Code Here

Examples of sil.storagemanager.MemoryStorageManager

    return null;
  }

  public static IStorageManager createMemoryStorageManager(PropertySet ps)
  {
    IStorageManager sm = (IStorageManager) new MemoryStorageManager();
    return sm;
  }
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.