Examples of BufferChannel


Examples of com.hp.hpl.jena.tdb.base.file.BufferChannel

                blkMgr.overwrite(blk) ;
                return true ;
            }  
            case Buffer:
            {
                BufferChannel chan = sConf.bufferChannels.get(e.getFileRef()) ;
                ByteBuffer bb = e.getByteBuffer() ;
                log.debug("Replay: {} {}",e.getFileRef(), bb) ;
                chan.write(bb, 0) ; // YUK!
                return true ;
            }
               
            case Commit:
                return false ;
View Full Code Here

Examples of com.hp.hpl.jena.tdb.base.file.BufferChannel

        return FileOps.exists(journalFilename(location)) ;
    }
   
    public static Journal create(Location location)
    {
        BufferChannel chan ;
        String channelName = journalFilename(location) ;
        if ( location.isMem() )
            chan = BufferChannelMem.create(channelName) ;
        else
            chan = BufferChannelFile.create(channelName) ;
View Full Code Here

Examples of com.hp.hpl.jena.tdb.base.file.BufferChannel

                blkMgr.overwrite(blk) ;
                return true ;
            }  
            case Buffer:
            {
                BufferChannel chan = sConf.bufferChannels.get(e.getFileRef()) ;
                ByteBuffer bb = e.getByteBuffer() ;
                log.debug("Replay: {} {}",e.getFileRef(), bb) ;
                chan.write(bb, 0) ; // YUK!
                return true ;
            }
               
            case Commit:
                return false ;
View Full Code Here

Examples of com.hp.hpl.jena.tdb.base.file.BufferChannel

        return FileOps.exists(journalFilename(location)) ;
    }
   
    public static Journal create(Location location)
    {
        BufferChannel chan ;
        if ( location.isMem() )
            chan = BufferChannelMem.create() ;
        else
            chan = BufferChannelFile.create(journalFilename(location)) ;
        return new Journal(chan) ;
View Full Code Here

Examples of com.hp.hpl.jena.tdb.base.file.BufferChannel

//                blkMgr.write(e.getBlock()) ;
                return true ;
            }  
            case Buffer:
            {
                BufferChannel chan = dsg.getConfig().bufferChannels.get(e.getFileRef()) ;
                ByteBuffer bb = e.getByteBuffer() ;
                log.debug("Replay: {} {}",e.getFileRef(), bb) ;
                chan.write(bb, 0) ; // YUK!
                return true ;
            }
               
            case Commit:
                return false ;
View Full Code Here

Examples of com.hp.hpl.jena.tdb.base.file.BufferChannel

        return FileOps.exists(journalFilename(location)) ;
    }
   
    public static Journal create(Location location)
    {
        BufferChannel chan ;
        if ( location.isMem() )
            chan = BufferChannelMem.create() ;
        else
            chan = BufferChannelFile.create(journalFilename(location)) ;
        return new Journal(chan) ;
View Full Code Here

Examples of com.hp.hpl.jena.tdb.base.file.BufferChannel

   
    @Override
    protected ObjectFile make()
    {
        FileOps.deleteSilent(filename) ;
        BufferChannel chan = new BufferChannelFile(filename) ;
        // No buffering.
        return new ObjectFileStorage(chan, -1) ;
    }
View Full Code Here

Examples of com.hp.hpl.jena.tdb.base.file.BufferChannel

    static FileRef testRef2 = FileRef.create("TEST2") ;
   
    Journal journal ;
    @Before public void before()
    {
        BufferChannel mem = BufferChannelMem.create("journal") ;
        journal = new Journal(mem) ;
        bb1.clear() ;
        bb2.clear() ;
        bb3.clear() ;
    }
View Full Code Here

Examples of com.hp.hpl.jena.tdb.base.file.BufferChannel

//        String fn = loc.getPath(basename) ;
//        FileOps.deleteSilent(fn) ;
//        BufferChannel chan = new BufferChannelFile(fn) ;
//        return new ObjectFileStorage(chan) ;
       
        BufferChannel chan = BufferChannelMem.create() ;
        // Small buffer
        return new ObjectFileStorage(chan,10) ;
       
    }
View Full Code Here

Examples of com.hp.hpl.jena.tdb.base.file.BufferChannel

public class TestObjectFileBuffering extends BaseTest
{
    protected ObjectFile make(int bufferSize)
    {
        BufferChannel chan = BufferChannelMem.create() ;
        return new ObjectFileStorage(chan, bufferSize) ;
    }
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.