org.teiid.common.buffer.impl
Class FileStorageManager.DiskStore

java.lang.Object
  extended by org.teiid.common.buffer.FileStore
      extended by org.teiid.common.buffer.impl.FileStorageManager.DiskStore
Enclosing class:
FileStorageManager

public class FileStorageManager.DiskStore
extends FileStore


Nested Class Summary
 
Nested classes/interfaces inherited from class org.teiid.common.buffer.FileStore
FileStore.FileStoreOutputStream
 
Constructor Summary
FileStorageManager.DiskStore(java.lang.String name)
           
 
Method Summary
 int readDirect(long fileOffset, byte[] b, int offSet, int length)
          Concurrent reads are possible, but only after writing is complete.
 void removeDirect()
           
 void writeDirect(byte[] bytes, int offset, int length)
          Concurrent writes are prevented by FileStore, but in general should not happen since processing is single threaded.
 
Methods inherited from class org.teiid.common.buffer.FileStore
createInputStream, createOutputStream, createOutputStream, getLength, read, readFully, remove, setCleanupReference, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileStorageManager.DiskStore

public FileStorageManager.DiskStore(java.lang.String name)
Method Detail

readDirect

public int readDirect(long fileOffset,
                      byte[] b,
                      int offSet,
                      int length)
               throws TeiidComponentException
Concurrent reads are possible, but only after writing is complete.

Specified by:
readDirect in class FileStore
Throws:
TeiidComponentException

writeDirect

public void writeDirect(byte[] bytes,
                        int offset,
                        int length)
                 throws TeiidComponentException
Concurrent writes are prevented by FileStore, but in general should not happen since processing is single threaded.

Specified by:
writeDirect in class FileStore
Throws:
TeiidComponentException

removeDirect

public void removeDirect()
Specified by:
removeDirect in class FileStore


Copyright © 2010. All Rights Reserved.