Tabnine Logo
PageManager.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
jdbm.recman.PageManager
constructor

Best Java code snippets using jdbm.recman.PageManager.<init> (Showing top 6 results out of 315)

origin: stackoverflow.com

 var pManager = new PageManager ();
pManager.timeoutHandler();

function PageManager () {
var ret  = (function(self) { 
  return function() { self.timeoutHandler(); };
})(this);

this.timeoutHandler = function () {
  $.ajax ({
    url: '/echo/json/',
    type: 'post',
    cache: false,
    success: function (data) {
      setTimeout (ret, 750);
    }
  });
};
}
origin: stackoverflow.com

 function PageManager () {
  var callback  = (function(self) { 
    return function() { self.timeoutHandler(); };
  })(this); // only one callback

  this.timeoutHandler = function () {
    $.ajax ({
      url: '/echo/json/',
      type: 'post',
      cache: false,
      data: {a:Math.random() },
      success: function (data) {
        //var xmlDoc = $($.parseXML (data));
        // Processing of XML
        //alert("data");
        setTimeout (callback, 750);
      }
    });
  };
}

var pm = new PageManager ();
pm.timeoutHandler();
origin: org.apache.directory.jdbm/apacheds-jdbm2

/**
 * Creates a record manager for the indicated file
 *
 * @throws IOException when the file cannot be opened or is not
 *         a valid file content-wise.
 */
public BaseRecordManager( String filename ) throws IOException
{
  recordFile = new RecordFile( filename );
  pageMgr = new PageManager( recordFile );
  physMgr = new PhysicalRowIdManager( pageMgr );
  logMgr = new LogicalRowIdManager( pageMgr );
  lockElements = new ConcurrentHashMap<Long, LockElement>();
}
origin: org.apache.directory.jdbm/apacheds-jdbm1

/**
 * Creates a record manager for the indicated file
 *
 * @throws IOException when the file cannot be opened or is not
 *         a valid file content-wise.
 */
public BaseRecordManager( String filename ) throws IOException
{
  recordFile = new RecordFile( filename );
  pageMgr = new PageManager( recordFile );
  physMgr = new PhysicalRowIdManager( pageMgr );
  logMgr = new LogicalRowIdManager( pageMgr );
}
origin: org.apache.directory.server/apacheds-jdbm

/**
 * Creates a record manager for the indicated file
 *
 * @throws IOException when the file cannot be opened or is not
 *         a valid file content-wise.
 */
public BaseRecordManager( String filename ) throws IOException
{
  recordFile = new RecordFile( filename );
  pageMgr = new PageManager( recordFile );
  physMgr = new PhysicalRowIdManager( recordFile, pageMgr );
  logMgr = new LogicalRowIdManager( recordFile, pageMgr );
}
origin: org.fusesource.jdbm/jdbm

private void reopen() throws IOException {
  _physFileFree = new RecordFile( _filename +  DBF, FREE_BLOCK_SIZE);
  _physPagemanFree = new PageManager(_physFileFree);    	
  _physFile = new RecordFile( _filename + DBR, DATA_BLOCK_SIZE);
  _physPageman = new PageManager( _physFile );
  _physMgr = new PhysicalRowIdManager( _physFile, _physPageman, 
      new FreePhysicalRowIdPageManager(_physFileFree, _physPagemanFree));
      
  _logicFileFree= new RecordFile( _filename +IDF,FREE_BLOCK_SIZE );
  _logicPagemanFree = new PageManager( _logicFileFree );
  if(TRANS_BLOCK_SIZE>256*8)
    throw new InternalError(); //to big page, slot number would not fit into page
  _logicFile = new RecordFile( _filename +IDR,TRANS_BLOCK_SIZE );
  _logicPageman = new PageManager( _logicFile );
  _logicMgr = new LogicalRowIdManager( _logicFile, _logicPageman, 
      new FreeLogicalRowIdPageManager(_logicFileFree, _logicPagemanFree));
  long versionNumber = getRoot(STORE_VERSION_NUMBER_ROOT);
  if(versionNumber>STORE_FORMAT_VERSION)
    throw new IOException("Unsupported version of store. Please update JDBM. Minimal supported ver:"+STORE_FORMAT_VERSION+", store ver:"+versionNumber);
  setRoot(STORE_VERSION_NUMBER_ROOT, STORE_FORMAT_VERSION);
}
jdbm.recmanPageManager<init>

Javadoc

Creates a new page manager using the indicated record file.

Popular methods of PageManager

  • allocate
    Allocates a page of the indicated type. Returns recid of the page.
  • close
    Closes the page manager. This flushes the page manager and releases the lock on the header.
  • commit
    Commit all pending (in-memory) data by flushing the page manager. This forces a flush of all outstan
  • free
    Frees a page of the indicated type.
  • getFileHeader
    Returns the file header.
  • getFirst
    Returns the first page on the indicated list.
  • getLast
    Returns the last page on the indicated list.
  • getNext
    Returns the page following the indicated block
  • getPrev
    Returns the page before the indicated block
  • rollback
    Flushes the page manager. This forces a flush of all outstanding blocks (this it's an implicit Recor
  • getRecordFile
  • getRecordFile

Popular in Java

  • Making http post requests using okhttp
  • getSharedPreferences (Context)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • onCreateOptionsMenu (Activity)
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now